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/watchdlg.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/watchdlg.cpp')
-rw-r--r-- | cervisia/watchdlg.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/cervisia/watchdlg.cpp b/cervisia/watchdlg.cpp index 1ea42da6..2e1fc74e 100644 --- a/cervisia/watchdlg.cpp +++ b/cervisia/watchdlg.cpp @@ -28,45 +28,45 @@ #include <klocale.h> -WatchDialog::WatchDialog(ActionType action, TQWidget *parent, const char *name) - : KDialogBase(parent, name, true, TQString::null, +WatchDialog::WatchDialog(ActionType action, TQWidget *tqparent, const char *name) + : KDialogBase(tqparent, name, true, TQString(), Ok | Cancel | Help, Ok, true) { setCaption( (action==Add)? i18n("CVS Watch Add") : i18n("CVS Watch Remove") ); TQFrame* mainWidget = makeMainWidget(); - TQBoxLayout *layout = new TQVBoxLayout(mainWidget, 0, spacingHint()); + TQBoxLayout *tqlayout = new TQVBoxLayout(mainWidget, 0, spacingHint()); - TQLabel *textlabel = new QLabel + TQLabel *textlabel = new TQLabel ( (action==Add)? i18n("Add watches for the following events:") : i18n("Remove watches for the following events:"), mainWidget ); - layout->addWidget(textlabel, 0); + tqlayout->addWidget(textlabel, 0); all_button = new TQRadioButton(i18n("&All"), mainWidget); all_button->setFocus(); all_button->setChecked(true); - layout->addWidget(all_button); + tqlayout->addWidget(all_button); only_button = new TQRadioButton(i18n("&Only:"), mainWidget); - layout->addWidget(only_button); + tqlayout->addWidget(only_button); - TQGridLayout *eventslayout = new TQGridLayout(layout); - eventslayout->addColSpacing(0, 20); - eventslayout->setColStretch(0, 0); - eventslayout->setColStretch(1, 1); + TQGridLayout *eventstqlayout = new TQGridLayout(tqlayout); + eventstqlayout->addColSpacing(0, 20); + eventstqlayout->setColStretch(0, 0); + eventstqlayout->setColStretch(1, 1); commitbox = new TQCheckBox(i18n("&Commits"), mainWidget); commitbox->setEnabled(false); - eventslayout->addWidget(commitbox, 0, 1); + eventstqlayout->addWidget(commitbox, 0, 1); editbox = new TQCheckBox(i18n("&Edits"), mainWidget); editbox->setEnabled(false); - eventslayout->addWidget(editbox, 1, 1); + eventstqlayout->addWidget(editbox, 1, 1); uneditbox = new TQCheckBox(i18n("&Unedits"), mainWidget); uneditbox->setEnabled(false); - eventslayout->addWidget(uneditbox, 2, 1); + eventstqlayout->addWidget(uneditbox, 2, 1); TQButtonGroup* group = new TQButtonGroup(mainWidget); group->hide(); |