From 99a2774ca6f1cab334de5d43fe36fc44ae889a4c Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 12 Jun 2011 01:36:19 +0000 Subject: 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 --- cervisia/updatedlg.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'cervisia/updatedlg.cpp') diff --git a/cervisia/updatedlg.cpp b/cervisia/updatedlg.cpp index 4cd4367c..71e88ebe 100644 --- a/cervisia/updatedlg.cpp +++ b/cervisia/updatedlg.cpp @@ -34,21 +34,21 @@ UpdateDialog::UpdateDialog(CvsService_stub* service, - TQWidget *parent, const char *name) - : KDialogBase(parent, name, true, i18n("CVS Update"), + TQWidget *tqparent, const char *name) + : KDialogBase(tqparent, name, true, i18n("CVS Update"), Ok | Cancel, Ok, true), cvsService(service) { int const iComboBoxMinWidth(40 * fontMetrics().width('0')); - int const iWidgetIndent(style().pixelMetric(TQStyle::PM_ExclusiveIndicatorWidth, 0) + 6); + int const iWidgetIndent(tqstyle().tqpixelMetric(TQStyle::PM_ExclusiveIndicatorWidth, 0) + 6); TQFrame* mainWidget = makeMainWidget(); - TQBoxLayout *layout = new TQVBoxLayout(mainWidget, 0, spacingHint()); + TQBoxLayout *tqlayout = new TQVBoxLayout(mainWidget, 0, spacingHint()); bybranch_button = new TQRadioButton(i18n("Update to &branch: "), mainWidget); bybranch_button->setChecked(true); - layout->addWidget(bybranch_button); + tqlayout->addWidget(bybranch_button); branch_combo = new TQComboBox(true, mainWidget); branch_combo->setMinimumWidth(iComboBoxMinWidth); @@ -57,13 +57,13 @@ UpdateDialog::UpdateDialog(CvsService_stub* service, connect( branch_button, TQT_SIGNAL(clicked()), this, TQT_SLOT(branchButtonClicked()) ); - TQBoxLayout *branchedit_layout = new TQHBoxLayout(layout); + TQBoxLayout *branchedit_layout = new TQHBoxLayout(tqlayout); branchedit_layout->addSpacing(iWidgetIndent); branchedit_layout->addWidget(branch_combo); branchedit_layout->addWidget(branch_button); bytag_button = new TQRadioButton(i18n("Update to &tag: "), mainWidget); - layout->addWidget(bytag_button); + tqlayout->addWidget(bytag_button); tag_combo = new TQComboBox(true, mainWidget); tag_combo->setMinimumWidth(iComboBoxMinWidth); @@ -72,17 +72,17 @@ UpdateDialog::UpdateDialog(CvsService_stub* service, connect( tag_button, TQT_SIGNAL(clicked()), this, TQT_SLOT(tagButtonClicked()) ); - TQBoxLayout *tagedit_layout = new TQHBoxLayout(layout); + TQBoxLayout *tagedit_layout = new TQHBoxLayout(tqlayout); tagedit_layout->addSpacing(iWidgetIndent); tagedit_layout->addWidget(tag_combo); tagedit_layout->addWidget(tag_button); bydate_button = new TQRadioButton(i18n("Update to &date ('yyyy-mm-dd'):"), mainWidget); - layout->addWidget(bydate_button); + tqlayout->addWidget(bydate_button); date_edit = new KLineEdit(mainWidget); - TQBoxLayout *dateedit_layout = new TQHBoxLayout(layout); + TQBoxLayout *dateedit_layout = new TQHBoxLayout(tqlayout); dateedit_layout->addSpacing(iWidgetIndent); dateedit_layout->addWidget(date_edit); -- cgit v1.2.1