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/progressdlg.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'cervisia/progressdlg.cpp') diff --git a/cervisia/progressdlg.cpp b/cervisia/progressdlg.cpp index a7e34018..d77c25f2 100644 --- a/cervisia/progressdlg.cpp +++ b/cervisia/progressdlg.cpp @@ -52,10 +52,10 @@ struct ProgressDialog::Private }; -ProgressDialog::ProgressDialog(TQWidget* parent, const TQString& heading, +ProgressDialog::ProgressDialog(TQWidget* tqparent, const TQString& heading, const DCOPRef& job, const TQString& errorIndicator, const TQString& caption) - : KDialogBase(parent, 0, true, caption, Cancel, Cancel, true) + : KDialogBase(tqparent, 0, true, caption, Cancel, Cancel, true) , DCOPObject() , d(new Private) { @@ -90,8 +90,8 @@ void ProgressDialog::setupGui(const TQString& heading) TQHBoxLayout* hboxLayout = new TQHBoxLayout(headingBox); TQLabel* textLabel = new TQLabel(heading, headingBox); - textLabel->setMinimumWidth(textLabel->sizeHint().width()); - textLabel->setFixedHeight(textLabel->sizeHint().height()); + textLabel->setMinimumWidth(textLabel->tqsizeHint().width()); + textLabel->setFixedHeight(textLabel->tqsizeHint().height()); hboxLayout->addWidget(textLabel); hboxLayout->addStretch(); @@ -104,7 +104,7 @@ void ProgressDialog::setupGui(const TQString& heading) TQFontMetrics fm(d->resultbox->fontMetrics()); d->resultbox->setMinimumSize(fm.width("0")*70, fm.lineSpacing()*8); - resize(sizeHint()); + resize(tqsizeHint()); } @@ -252,7 +252,7 @@ void ProgressDialog::startGuiPart() void ProgressDialog::processOutput() { int pos; - while( (pos = d->buffer.find('\n')) != -1 ) + while( (pos = d->buffer.tqfind('\n')) != -1 ) { TQString item = d->buffer.left(pos); if( item.startsWith(d->errorId1) || -- cgit v1.2.1