summaryrefslogtreecommitdiffstats
path: root/src/app/configdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/configdialog.cpp')
-rw-r--r--src/app/configdialog.cpp70
1 files changed, 35 insertions, 35 deletions
diff --git a/src/app/configdialog.cpp b/src/app/configdialog.cpp
index 28ad7b3..9c29f71 100644
--- a/src/app/configdialog.cpp
+++ b/src/app/configdialog.cpp
@@ -1,5 +1,5 @@
// vim: set tabstop=4 shiftwidth=4 noexpandtab
-// kate: indent-mode csands; indent-width 4; replace-tabs-save off; replace-tabs off; replace-trailing-space-save off; space-indent off; tabs-indents on; tab-width 4;
+// kate: indent-mode csands; indent-width 4; tqreplace-tabs-save off; tqreplace-tabs off; tqreplace-trailing-space-save off; space-indent off; tabs-indents on; tab-width 4;
/*
Gwenview - A simple image viewer for KDE
Copyright 2000-2004 Aur�ien G�eau
@@ -19,16 +19,16 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-// Qt
-#include <qbuttongroup.h>
-#include <qcheckbox.h>
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qmap.h>
-#include <qradiobutton.h>
-#include <qspinbox.h>
-#include <qstylesheet.h>
-#include <qtextedit.h>
+// TQt
+#include <tqbuttongroup.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
+#include <tqmap.h>
+#include <tqradiobutton.h>
+#include <tqspinbox.h>
+#include <tqstylesheet.h>
+#include <tqtextedit.h>
// KDE
#include <kcolorbutton.h>
@@ -70,7 +70,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include "configdialog.moc"
namespace Gwenview {
-typedef QValueList<KConfigDialogManager*> ConfigManagerList;
+typedef TQValueList<KConfigDialogManager*> ConfigManagerList;
class ConfigDialogPrivate {
public:
@@ -90,29 +90,29 @@ public:
// Two helper functions to create the config pages
template<class T>
-void addConfigPage(KDialogBase* dialog, T* content, const QString& header, const QString& name, const char* iconName) {
- QFrame* page=dialog->addPage(name, header, BarIcon(iconName, 32));
- content->reparent(page, QPoint(0,0));
- QVBoxLayout* layout=new QVBoxLayout(page, 0, KDialog::spacingHint());
- layout->addWidget(content);
- layout->addStretch();
+void addConfigPage(KDialogBase* dialog, T* content, const TQString& header, const TQString& name, const char* iconName) {
+ TQFrame* page=dialog->addPage(name, header, BarIcon(iconName, 32));
+ content->reparent(page, TQPoint(0,0));
+ TQVBoxLayout* tqlayout=new TQVBoxLayout(page, 0, KDialog::spacingHint());
+ tqlayout->addWidget(content);
+ tqlayout->addStretch();
}
template<class T>
-T* addConfigPage(KDialogBase* dialog, const QString& header, const QString& name, const char* iconName) {
+T* addConfigPage(KDialogBase* dialog, const TQString& header, const TQString& name, const char* iconName) {
T* content=new T;
addConfigPage(dialog, content, header, name, iconName);
return content;
}
-ConfigDialog::ConfigDialog(QWidget* parent, KIPI::PluginLoader* pluginLoader)
+ConfigDialog::ConfigDialog(TQWidget* tqparent, KIPI::PluginLoader* pluginLoader)
: KDialogBase(
KDialogBase::IconList,
i18n("Configure"),
KDialogBase::Ok | KDialogBase::Cancel | KDialogBase::Apply,
KDialogBase::Ok,
- parent,
+ tqparent,
"ConfigDialog",
true,
true)
@@ -163,18 +163,18 @@ ConfigDialog::ConfigDialog(QWidget* parent, KIPI::PluginLoader* pluginLoader)
d->mImageListPage->mShowFileSize->setChecked(details & FileThumbnailView::FILESIZE);
d->mImageListPage->mShowImageSize->setChecked(details & FileThumbnailView::IMAGESIZE);
- connect(d->mImageListPage->mCalculateCacheSize,SIGNAL(clicked()),
- this,SLOT(calculateCacheSize()));
- connect(d->mImageListPage->mEmptyCache,SIGNAL(clicked()),
- this,SLOT(emptyCache()));
+ connect(d->mImageListPage->mCalculateCacheSize,TQT_SIGNAL(clicked()),
+ this,TQT_SLOT(calculateCacheSize()));
+ connect(d->mImageListPage->mEmptyCache,TQT_SIGNAL(clicked()),
+ this,TQT_SLOT(emptyCache()));
// Image View tab
d->mImageViewPage->mMouseWheelGroup->setButton(ImageViewConfig::mouseWheelScroll()?1:0);
// Full Screen tab
- QTextEdit* edit=d->mFullScreenPage->kcfg_osdFormat;
+ TQTextEdit* edit=d->mFullScreenPage->kcfg_osdFormat;
edit->setMaximumHeight(edit->fontMetrics().height()*3);
- connect(edit, SIGNAL(textChanged()), SLOT(updateOSDPreview()) );
+ connect(edit, TQT_SIGNAL(textChanged()), TQT_SLOT(updateOSDPreview()) );
// File Operations tab
d->mFileOperationsPage->kcfg_destDir->fileDialog()->setMode(
@@ -247,7 +247,7 @@ void ConfigDialog::calculateCacheSize() {
KURL url;
url.setPath(ThumbnailLoadJob::thumbnailBaseDir());
unsigned long size=KDirSize::dirSize(url);
- KMessageBox::information( this,i18n("Cache size is %1").arg(KIO::convertSize(size)) );
+ KMessageBox::information( this,i18n("Cache size is %1").tqarg(KIO::convertSize(size)) );
}
@@ -258,7 +258,7 @@ void ConfigDialog::updateOSDPreview() {
formatter.mPath=url.path();
formatter.mFileName=url.fileName();
formatter.mComment=i18n("A comment");
- formatter.mImageSize=QSize(1600, 1200);
+ formatter.mImageSize=TQSize(1600, 1200);
formatter.mPosition=4;
formatter.mCount=12;
formatter.mAperture="F2.8";
@@ -266,30 +266,30 @@ void ConfigDialog::updateOSDPreview() {
formatter.mIso="100";
formatter.mFocalLength="8.88 mm";
- QString txt=formatter.format( d->mFullScreenPage->kcfg_osdFormat->text() );
+ TQString txt=formatter.format( d->mFullScreenPage->kcfg_osdFormat->text() );
d->mFullScreenPage->mOSDPreviewLabel->setText(txt);
}
void ConfigDialog::emptyCache() {
- QString dir=ThumbnailLoadJob::thumbnailBaseDir();
+ TQString dir=ThumbnailLoadJob::thumbnailBaseDir();
- if (!QFile::exists(dir)) {
+ if (!TQFile::exists(dir)) {
KMessageBox::information( this,i18n("Cache is already empty.") );
return;
}
int response=KMessageBox::warningContinueCancel(this,
"<qt>" + i18n("Are you sure you want to empty the thumbnail cache?"
- " This will delete the folder <b>%1</b>.").arg(QStyleSheet::escape(dir)) + "</qt>",
- QString::null,
+ " This will delete the folder <b>%1</b>.").tqarg(TQStyleSheet::escape(dir)) + "</qt>",
+ TQString(),
KStdGuiItem::del());
if (response==KMessageBox::Cancel) return;
KURL url;
url.setPath(dir);
- if (KIO::NetAccess::del(url, topLevelWidget()) ) {
+ if (KIO::NetAccess::del(url, tqtopLevelWidget()) ) {
KMessageBox::information( this,i18n("Cache emptied.") );
}
}