summaryrefslogtreecommitdiffstats
path: root/src/gvcore/deletedialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-26 21:04:57 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-26 21:04:57 +0000
commitbf7f88413be3831a9372d323d02fc0335b9f9188 (patch)
tree516fdef9206245b40a14f99b4e3d9ef9289196e0 /src/gvcore/deletedialog.cpp
parente238aa77b1fb3c2f55aef2ef2c91ce52166d2cc8 (diff)
downloadgwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.tar.gz
gwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.zip
TQt4 port Gwenview
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gwenview@1233720 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gvcore/deletedialog.cpp')
-rw-r--r--src/gvcore/deletedialog.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/gvcore/deletedialog.cpp b/src/gvcore/deletedialog.cpp
index 19c34ba..cc0010e 100644
--- a/src/gvcore/deletedialog.cpp
+++ b/src/gvcore/deletedialog.cpp
@@ -24,14 +24,14 @@
#include <kstdguiitem.h>
#include <kurl.h>
-#include <qstringlist.h>
-#include <qcheckbox.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qtimer.h>
-#include <qvbox.h>
-#include <qhbox.h>
-#include <qpushbutton.h>
+#include <tqstringlist.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqtimer.h>
+#include <tqvbox.h>
+#include <tqhbox.h>
+#include <tqpushbutton.h>
#include "fileoperationconfig.h"
#include "deletedialog.h"
@@ -39,8 +39,8 @@
namespace Gwenview {
-DeleteDialog::DeleteDialog(QWidget *parent, const char *name) :
- KDialogBase(Swallow, WStyle_DialogBorder, parent, name,
+DeleteDialog::DeleteDialog(TQWidget *tqparent, const char *name) :
+ KDialogBase(Swallow, WStyle_DialogBorder, tqparent, name,
true /* modal */, i18n("About to delete selected files"),
Ok | Cancel, Cancel /* Default */, true /* separator */),
m_trashGuiItem(i18n("&Send to Trash"), "trashcan_full")
@@ -55,7 +55,7 @@ DeleteDialog::DeleteDialog(QWidget *parent, const char *name) :
bool deleteInstead = ! FileOperationConfig::deleteToTrash();
m_widget->ddShouldDelete->setChecked(deleteInstead);
- connect(m_widget->ddShouldDelete, SIGNAL(toggled(bool)), SLOT(updateUI()));
+ connect(m_widget->ddShouldDelete, TQT_SIGNAL(toggled(bool)), TQT_SLOT(updateUI()));
}
void DeleteDialog::setURLList(const KURL::List &files)
@@ -79,7 +79,7 @@ void DeleteDialog::accept()
void DeleteDialog::updateUI()
{
- QString msg, iconName;
+ TQString msg, iconName;
int fileCount = m_widget->ddFileList->count();
bool reallyDelete = m_widget->ddShouldDelete->isChecked();
@@ -98,7 +98,7 @@ void DeleteDialog::updateUI()
fileCount);
iconName = "trashcan_full";
}
- QPixmap icon = KGlobal::iconLoader()->loadIcon(iconName, KIcon::NoGroup, KIcon::SizeMedium);
+ TQPixmap icon = KGlobal::iconLoader()->loadIcon(iconName, KIcon::NoGroup, KIcon::SizeMedium);
m_widget->ddDeleteText->setText(msg);
m_widget->ddWarningIcon->setPixmap(icon);
@@ -113,9 +113,9 @@ bool DeleteDialog::shouldDelete() const {
}
-QSize DeleteDialog::sizeHint() const {
+TQSize DeleteDialog::tqsizeHint() const {
m_widget->adjustSize();
- QSize hint = m_widget->minimumSize();
+ TQSize hint = m_widget->tqminimumSize();
hint = calculateSize(hint.width(), hint.height());
// For some reason calculateSize does not return a correct height. As I'm