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/watchersdlg.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/watchersdlg.cpp')
-rw-r--r-- | cervisia/watchersdlg.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cervisia/watchersdlg.cpp b/cervisia/watchersdlg.cpp index 157f154b..ea42f053 100644 --- a/cervisia/watchersdlg.cpp +++ b/cervisia/watchersdlg.cpp @@ -30,14 +30,14 @@ #include "progressdlg.h" -WatchersDialog::WatchersDialog(KConfig& cfg, TQWidget* parent, const char* name) - : KDialogBase(parent, name, false, TQString::null, +WatchersDialog::WatchersDialog(KConfig& cfg, TQWidget* tqparent, const char* name) + : KDialogBase(tqparent, name, false, TQString(), Close, ButtonCode(0), true) , partConfig(cfg) { TQFrame* mainWidget = makeMainWidget(); - TQBoxLayout *layout = new TQVBoxLayout(mainWidget, 0, spacingHint()); + TQBoxLayout *tqlayout = new TQVBoxLayout(mainWidget, 0, spacingHint()); table = new TQTable(mainWidget, "watchersTable"); table->setNumCols(5); @@ -57,9 +57,9 @@ WatchersDialog::WatchersDialog(KConfig& cfg, TQWidget* parent, const char* name) header->setLabel(3, i18n("Unedit")); header->setLabel(4, i18n("Commit")); - layout->addWidget(table, 1); + tqlayout->addWidget(table, 1); - setWFlags(Qt::WDestructiveClose | getWFlags()); + setWFlags(TQt::WDestructiveClose | getWFlags()); TQSize size = configDialogSize(partConfig, "WatchersDialog"); resize(size); @@ -103,15 +103,15 @@ bool WatchersDialog::parseWatchers(CvsService_stub* cvsService, table->setText(numRows, 1, list[1]); TQCheckTableItem* item = new TQCheckTableItem(table, ""); - item->setChecked(list.contains("edit")); + item->setChecked(list.tqcontains("edit")); table->setItem(numRows, 2, item); item = new TQCheckTableItem(table, ""); - item->setChecked(list.contains("unedit")); + item->setChecked(list.tqcontains("unedit")); table->setItem(numRows, 3, item); item = new TQCheckTableItem(table, ""); - item->setChecked(list.contains("commit")); + item->setChecked(list.tqcontains("commit")); table->setItem(numRows, 4, item); ++numRows; |