summaryrefslogtreecommitdiffstats
path: root/src/app/configdialog.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:29:45 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:29:45 -0600
commit2b7143e0539396c75306f6e78bf0a5641ed1acfc (patch)
treedb4ea3490b6703f775f11931c6e7c22f943816bd /src/app/configdialog.cpp
parentff1cff2a1e9b7860d4d3779cf20bf79afbe52470 (diff)
downloadgwenview-2b7143e0539396c75306f6e78bf0a5641ed1acfc.tar.gz
gwenview-2b7143e0539396c75306f6e78bf0a5641ed1acfc.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'src/app/configdialog.cpp')
-rw-r--r--src/app/configdialog.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/app/configdialog.cpp b/src/app/configdialog.cpp
index 0fb33df..66b11e8 100644
--- a/src/app/configdialog.cpp
+++ b/src/app/configdialog.cpp
@@ -22,13 +22,13 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
// TQt
#include <tqbuttongroup.h>
#include <tqcheckbox.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqlineedit.h>
#include <tqmap.h>
#include <tqradiobutton.h>
#include <tqspinbox.h>
-#include <tqstylesheet.h>
-#include <tqtextedit.h>
+#include <stylesheet.h>
+#include <textedit.h>
// KDE
#include <kcolorbutton.h>
@@ -93,9 +93,9 @@ template<class T>
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();
+ TQVBoxLayout* layout=new TQVBoxLayout(page, 0, KDialog::spacingHint());
+ layout->addWidget(content);
+ layout->addStretch();
}
template<class T>
@@ -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").tqarg(KIO::convertSize(size)) );
+ KMessageBox::information( this,i18n("Cache size is %1").arg(KIO::convertSize(size)) );
}
@@ -281,7 +281,7 @@ void ConfigDialog::emptyCache() {
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>.").tqarg(TQStyleSheet::escape(dir)) + "</qt>",
+ " This will delete the folder <b>%1</b>.").arg(TQStyleSheet::escape(dir)) + "</qt>",
TQString(),
KStdGuiItem::del());
@@ -289,7 +289,7 @@ void ConfigDialog::emptyCache() {
KURL url;
url.setPath(dir);
- if (KIO::NetAccess::del(url, tqtopLevelWidget()) ) {
+ if (KIO::NetAccess::del(url, topLevelWidget()) ) {
KMessageBox::information( this,i18n("Cache emptied.") );
}
}