diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kmail/kmfolderseldlg.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4,
however Qt3 builds are OK. Any alterations this commit makes to kdepim
behaviour under Qt3 are unintentional and should be fixed.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/kmfolderseldlg.cpp')
-rw-r--r-- | kmail/kmfolderseldlg.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kmail/kmfolderseldlg.cpp b/kmail/kmfolderseldlg.cpp index 00849b6e7..b1df389ad 100644 --- a/kmail/kmfolderseldlg.cpp +++ b/kmail/kmfolderseldlg.cpp @@ -18,20 +18,20 @@ using namespace KMail; //----------------------------------------------------------------------------- -KMFolderSelDlg::KMFolderSelDlg( KMMainWidget * parent, const TQString& caption, +KMFolderSelDlg::KMFolderSelDlg( KMMainWidget * tqparent, const TQString& caption, bool mustBeReadWrite, bool useGlobalSettings ) - : KDialogBase( parent, "folder dialog", true, caption, + : KDialogBase( tqparent, "folder dialog", true, caption, Ok|Cancel|User1, Ok, true, KGuiItem(i18n("&New Subfolder..."), "folder_new", i18n("Create a new subfolder under the currently selected folder")) - ), // mainwin as parent, modal + ), // mainwin as tqparent, modal mUseGlobalSettings( useGlobalSettings ) { - KMFolderTree * ft = parent->folderTree(); + KMFolderTree * ft = tqparent->folderTree(); assert( ft ); TQString preSelection = mUseGlobalSettings ? - GlobalSettings::self()->lastSelectedFolder() : TQString::null; + GlobalSettings::self()->lastSelectedFolder() : TQString(); TQWidget * container = makeVBoxMainWidget(); new TQLabel( i18n("You can start typing to filter the list of folders"), container ); mTreeView = new KMail::SimpleFolderTree( container, ft, @@ -40,17 +40,17 @@ KMFolderSelDlg::KMFolderSelDlg( KMMainWidget * parent, const TQString& caption, } //---------------------------------------------------------------------------- -KMFolderSelDlg::KMFolderSelDlg( TQWidget * parent, KMFolderTree * tree, +KMFolderSelDlg::KMFolderSelDlg( TQWidget * tqparent, KMFolderTree * tree, const TQString& caption, bool mustBeReadWrite, bool useGlobalSettings ) - : KDialogBase( parent, "folder dialog", true, caption, + : KDialogBase( tqparent, "folder dialog", true, caption, Ok|Cancel|User1, Ok, true, KGuiItem(i18n("&New Subfolder..."), "folder_new", i18n("Create a new subfolder under the currently selected folder")) - ), // mainwin as parent, modal + ), // mainwin as tqparent, modal mUseGlobalSettings( useGlobalSettings ) { TQString preSelection = mUseGlobalSettings ? - GlobalSettings::self()->lastSelectedFolder() : TQString::null; + GlobalSettings::self()->lastSelectedFolder() : TQString(); TQWidget * container = makeVBoxMainWidget(); new TQLabel( i18n("You can start typing to filter the list of folders"), container ); mTreeView = new KMail::SimpleFolderTree( container, tree, @@ -65,7 +65,7 @@ void KMFolderSelDlg::init() connect( mTreeView, TQT_SIGNAL( doubleClicked( TQListViewItem*, const TQPoint&, int ) ), this, TQT_SLOT( slotSelect() ) ); connect( mTreeView, TQT_SIGNAL( selectionChanged() ), - this, TQT_SLOT( slotUpdateBtnStatus() ) ); + this, TQT_SLOT( slotUpdateBtntqStatus() ) ); readConfig(); } @@ -107,7 +107,7 @@ void KMFolderSelDlg::slotUser1() } //----------------------------------------------------------------------------- -void KMFolderSelDlg::slotUpdateBtnStatus() +void KMFolderSelDlg::slotUpdateBtntqStatus() { enableButton( User1, folder() && ( !folder()->noContent() && !folder()->noChildren() ) ); |