diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-12 01:36:19 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-12 01:36:19 +0000 |
commit | 99a2774ca6f1cab334de5d43fe36fc44ae889a4c (patch) | |
tree | eff34cf0762227f6baf2a93e8fef48d4bed2651c /cervisia/checkoutdlg.cpp | |
parent | 1c104292188541106338d4940b0f04beeb4301a0 (diff) | |
download | tdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.tar.gz tdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.zip |
TQt4 convert kdesdk
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1236185 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'cervisia/checkoutdlg.cpp')
-rw-r--r-- | cervisia/checkoutdlg.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/cervisia/checkoutdlg.cpp b/cervisia/checkoutdlg.cpp index 32885e8e..e2b09697 100644 --- a/cervisia/checkoutdlg.cpp +++ b/cervisia/checkoutdlg.cpp @@ -43,9 +43,9 @@ using Cervisia::IsValidTag; CheckoutDialog::CheckoutDialog(KConfig& cfg, CvsService_stub* service, - ActionType action, TQWidget* parent, + ActionType action, TQWidget* tqparent, const char* name) - : KDialogBase(parent, name, true, TQString::null, + : KDialogBase(tqparent, name, true, TQString(), Ok | Cancel | Help, Ok, true) , act(action) , partConfig(cfg) @@ -55,9 +55,9 @@ CheckoutDialog::CheckoutDialog(KConfig& cfg, CvsService_stub* service, TQFrame* mainWidget = makeMainWidget(); - TQBoxLayout* layout = new TQVBoxLayout(mainWidget, 0, spacingHint()); + TQBoxLayout* tqlayout = new TQVBoxLayout(mainWidget, 0, spacingHint()); - TQGridLayout* grid = new TQGridLayout(layout); + TQGridLayout* grid = new TQGridLayout(tqlayout); grid->setColStretch(0, 1); grid->setColStretch(1, 20); for( int i = 0; i < ((action==Checkout)? 4 : 10); ++i ) @@ -66,7 +66,7 @@ CheckoutDialog::CheckoutDialog(KConfig& cfg, CvsService_stub* service, repo_combo = new TQComboBox(true, mainWidget); repo_combo->setFocus(); // make sure combobox is smaller than the screen - repo_combo->setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); + repo_combo->tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); grid->addWidget(repo_combo, 0, 1); TQLabel* repo_label = new TQLabel(repo_combo, i18n("&Repository:"), mainWidget); @@ -198,7 +198,7 @@ CheckoutDialog::CheckoutDialog(KConfig& cfg, CvsService_stub* service, TQStringList list2 = Repositories::readConfigFile(); TQStringList::ConstIterator it2; for (it2 = list2.begin(); it2 != list2.end(); ++it2) - if (!list1.contains(*it2)) + if (!list1.tqcontains(*it2)) repo_combo->insertItem(*it2); setHelp((act == Import) ? "importing" : "checkingout"); @@ -353,9 +353,9 @@ void CheckoutDialog::moduleButtonClicked() if (str.left(12) == "Unknown host") continue; - int pos = str.find(' '); + int pos = str.tqfind(' '); if (pos == -1) - pos = str.find('\t'); + pos = str.tqfind('\t'); if (pos == -1) pos = str.length(); TQString module( str.left(pos).stripWhiteSpace() ); @@ -386,7 +386,7 @@ void CheckoutDialog::branchButtonClicked() if( !cvsService->ok() ) return; - ProgressDialog dlg(this, "Remote Log", cvsJob, TQString::null, + ProgressDialog dlg(this, "Remote Log", cvsJob, TQString(), i18n("CVS Remote Log")); if( !dlg.execute() ) return; @@ -398,11 +398,11 @@ void CheckoutDialog::branchButtonClicked() if( line.isEmpty() || line[0] != '\t' ) continue; - if( (colonPos = line.find(':', 1)) < 0 ) + if( (colonPos = line.tqfind(':', 1)) < 0 ) continue; const TQString tag = line.mid(1, colonPos - 1); - if( !branchTagList.contains(tag) ) + if( !branchTagList.tqcontains(tag) ) branchTagList.push_back(tag); } |