diff options
author | Timothy Pearson <[email protected]> | 2011-12-15 15:29:45 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-15 15:29:45 -0600 |
commit | 2b7143e0539396c75306f6e78bf0a5641ed1acfc (patch) | |
tree | db4ea3490b6703f775f11931c6e7c22f943816bd /src/app/mainwindow.cpp | |
parent | ff1cff2a1e9b7860d4d3779cf20bf79afbe52470 (diff) | |
download | gwenview-2b7143e0539396c75306f6e78bf0a5641ed1acfc.tar.gz gwenview-2b7143e0539396c75306f6e78bf0a5641ed1acfc.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'src/app/mainwindow.cpp')
-rw-r--r-- | src/app/mainwindow.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/app/mainwindow.cpp b/src/app/mainwindow.cpp index 1464a09..70b42d7 100644 --- a/src/app/mainwindow.cpp +++ b/src/app/mainwindow.cpp @@ -199,8 +199,8 @@ bool MainWindow::queryClose() { KConfig* config=KGlobal::config(); - // Don't store dock tqlayout if only the image dock is visible. This avoid - // saving tqlayout when in "fullscreen" or "image only" mode. + // Don't store dock layout if only the image dock is visible. This avoid + // saving layout when in "fullscreen" or "image only" mode. if (mFileViewController->isVisible() || mDirViewController->widget()->isVisible()) { mDockArea->writeDockConfig(config,CONFIG_DOCK_GROUP); } @@ -806,7 +806,7 @@ void MainWindow::updateStatusInfo() { int pos = mFileViewController->shownFilePosition(); uint count = mFileViewController->fileCount(); if (count > 0) { - tokens << i18n("%1/%2").tqarg(pos+1).tqarg(count); + tokens << i18n("%1/%2").arg(pos+1).arg(count); } else { tokens << i18n("No images"); } @@ -816,7 +816,7 @@ void MainWindow::updateStatusInfo() { TQSize size = mDocument->image().size(); if (!size.isEmpty()) { - tokens << i18n("%1 x %2 pixels").tqarg(size.width()).tqarg(size.height()); + tokens << i18n("%1 x %2 pixels").arg(size.width()).arg(size.height()); } mSBDetailLabel->setText(tokens.join(" - ")); @@ -867,11 +867,11 @@ void MainWindow::createWidgets() { mDockArea->manager()->setSplitterOpaqueResize(true); mViewModeWidget=new TQWidget(mCentralStack); - TQVBoxLayout* tqlayout=new TQVBoxLayout(mViewModeWidget); - tqlayout->setAutoAdd(true); + TQVBoxLayout* layout=new TQVBoxLayout(mViewModeWidget); + layout->setAutoAdd(true); mCentralStack->addWidget(mViewModeWidget); - // tqStatus bar + // Status bar mSBDetailLabel=new TQLabel("", statusBar()); mSBHintLabel=new TruncatedTextLabel(statusBar()); @@ -923,7 +923,7 @@ void MainWindow::createWidgets() { setGeometry(20,20,720,520); // Default dock config - // (The "magic numbers" were found by adjusting the tqlayout from within the + // (The "magic numbers" were found by adjusting the layout from within the // app and looking at the result in the configuration file) mFolderDock->manualDock(mFileDock, KDockWidget::DockLeft, 4000); mImageDock->manualDock(mFolderDock, KDockWidget::DockBottom, 3734); @@ -1094,9 +1094,9 @@ void MainWindow::createObjectInteractions() { void MainWindow::createHideShowAction(KDockWidget* dock) { TQString caption; if (dock->mayBeHide()) { - caption=i18n("Hide %1").tqarg(dock->caption()); + caption=i18n("Hide %1").arg(dock->caption()); } else { - caption=i18n("Show %1").tqarg(dock->caption()); + caption=i18n("Show %1").arg(dock->caption()); } KAction* action=new KAction(caption, 0, TQT_TQOBJECT(dock), TQT_SLOT(changeHideShowState()), (TQObject*)0 ); @@ -1216,7 +1216,7 @@ void MainWindow::createLocationToolBar() { // Do not let the combobox get wider than available space, as this would // hide the toolbuttons after it - mURLEdit->tqsetSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed); + mURLEdit->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed); // Avoid stealing focus mURLEdit->setFocusPolicy(TQ_ClickFocus); |