ksortoptiondlg.ui.h

Go to the documentation of this file.
00001 /****************************************************************************
00002 ** ui.h extension file, included from the uic-generated form implementation.
00003 **
00004 ** If you wish to add, delete or rename functions or slots use
00005 ** Qt Designer which will update this file, preserving your code. Create an
00006 ** init() function in place of a constructor, and a destroy() function in
00007 ** place of a destructor.
00008 *****************************************************************************/
00009 
00010 // ----------------------------------------------------------------------------
00011 // QT Includes
00012 
00013 // ----------------------------------------------------------------------------
00014 // KDE Includes
00015 
00016 #include <kstdguiitem.h>
00017 
00018 // ----------------------------------------------------------------------------
00019 // Project Includes
00020 
00021 
00022 void KSortOptionDlg::init()
00023 {
00024   m_okButton->setGuiItem(KStdGuiItem::ok());
00025   m_cancelButton->setGuiItem(KStdGuiItem::cancel());
00026   m_helpButton->setGuiItem(KStdGuiItem::help());
00027 }
00028 
00029 void KSortOptionDlg::setSortOption(const QString& option, const QString& def)
00030 {
00031   if(option.isEmpty()) {
00032     m_sortOption->setSettings(def);
00033     m_useDefault->setChecked(true);
00034   } else {
00035     m_sortOption->setSettings(option);
00036     m_useDefault->setChecked(false);
00037   }
00038 }
00039 
00040 QString KSortOptionDlg::sortOption(void) const
00041 {
00042   QString rc;
00043   if(!m_useDefault->isChecked()) {
00044     rc = m_sortOption->settings();
00045   }
00046   return rc;
00047 }
00048 
00049 void KSortOptionDlg::hideDefaultButton(void)
00050 {
00051   m_useDefault->hide();
00052 }
00053  

Generated on Wed Jan 26 13:03:18 2011 for KMyMoney by  doxygen 1.5.6