summaryrefslogtreecommitdiffstats
path: root/src/app/mainwindow.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:55:46 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:55:46 -0600
commit676f6ed378c861a872de8cfce3dd5efe1780f769 (patch)
treed2b21aa5311322aadc3c5c64a4932fdf371acc98 /src/app/mainwindow.cpp
parent2b7143e0539396c75306f6e78bf0a5641ed1acfc (diff)
downloadgwenview-676f6ed378c861a872de8cfce3dd5efe1780f769.tar.gz
gwenview-676f6ed378c861a872de8cfce3dd5efe1780f769.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 2b7143e0539396c75306f6e78bf0a5641ed1acfc.
Diffstat (limited to 'src/app/mainwindow.cpp')
-rw-r--r--src/app/mainwindow.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/app/mainwindow.cpp b/src/app/mainwindow.cpp
index 70b42d7..1464a09 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 layout if only the image dock is visible. This avoid
- // saving layout when in "fullscreen" or "image only" mode.
+ // Don't store dock tqlayout if only the image dock is visible. This avoid
+ // saving tqlayout 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").arg(pos+1).arg(count);
+ tokens << i18n("%1/%2").tqarg(pos+1).tqarg(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").arg(size.width()).arg(size.height());
+ tokens << i18n("%1 x %2 pixels").tqarg(size.width()).tqarg(size.height());
}
mSBDetailLabel->setText(tokens.join(" - "));
@@ -867,11 +867,11 @@ void MainWindow::createWidgets() {
mDockArea->manager()->setSplitterOpaqueResize(true);
mViewModeWidget=new TQWidget(mCentralStack);
- TQVBoxLayout* layout=new TQVBoxLayout(mViewModeWidget);
- layout->setAutoAdd(true);
+ TQVBoxLayout* tqlayout=new TQVBoxLayout(mViewModeWidget);
+ tqlayout->setAutoAdd(true);
mCentralStack->addWidget(mViewModeWidget);
- // Status bar
+ // tqStatus 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 layout from within the
+ // (The "magic numbers" were found by adjusting the tqlayout 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").arg(dock->caption());
+ caption=i18n("Hide %1").tqarg(dock->caption());
} else {
- caption=i18n("Show %1").arg(dock->caption());
+ caption=i18n("Show %1").tqarg(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->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed);
+ mURLEdit->tqsetSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed);
// Avoid stealing focus
mURLEdit->setFocusPolicy(TQ_ClickFocus);