summaryrefslogtreecommitdiffstats
path: root/src/modules/options/container.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
commit0a80cfd57d271dd44221467efb426675fa470356 (patch)
tree6f503a31aa078eaf8fa015cf1749808529d49fc9 /src/modules/options/container.cpp
parent3329e5a804e28ef3f5eb51d1e7affdd5a508e8f2 (diff)
downloadkvirc-0a80cfd57d271dd44221467efb426675fa470356.tar.gz
kvirc-0a80cfd57d271dd44221467efb426675fa470356.zip
TQt4 port kvirc
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1238719 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/modules/options/container.cpp')
-rw-r--r--src/modules/options/container.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/modules/options/container.cpp b/src/modules/options/container.cpp
index 7e2272c1..d86abbba 100644
--- a/src/modules/options/container.cpp
+++ b/src/modules/options/container.cpp
@@ -27,19 +27,19 @@
#include "kvi_iconmanager.h"
#include "kvi_app.h"
-#include <qlayout.h>
-#include <qpushbutton.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
#include "kvi_tal_tooltip.h"
-#include <qevent.h>
+#include <tqevent.h>
#ifdef COMPILE_USE_QT4
- #include <qdesktopwidget.h>
+ #include <tqdesktopwidget.h>
#endif
extern KviOptionsInstanceManager * g_pOptionsInstanceManager;
-KviOptionsWidgetContainer::KviOptionsWidgetContainer(QWidget * par,bool bModal)
-: QDialog(par,"container","options")
+KviOptionsWidgetContainer::KviOptionsWidgetContainer(TQWidget * par,bool bModal)
+: TQDialog(par,"container","options")
{
m_pOptionsWidget = 0;
setModal(bModal);
@@ -52,23 +52,23 @@ KviOptionsWidgetContainer::~KviOptionsWidgetContainer()
void KviOptionsWidgetContainer::setup(KviOptionsWidget * w)
{
- QGridLayout * g = new QGridLayout(this,2,3,4,8);
+ TQGridLayout * g = new TQGridLayout(this,2,3,4,8);
g->addMultiCellWidget(w,0,0,0,2);
- QPushButton * b = new QPushButton(__tr2qs_ctx("&OK","options"),this);
+ TQPushButton * b = new TQPushButton(__tr2qs_ctx("&OK","options"),this);
KviTalToolTip::add(b,__tr2qs_ctx("Close this dialog, accepting all changes.","options"));
- //b->setMinimumWidth(m_pCancel->sizeHint().width());
+ //b->setMinimumWidth(m_pCancel->tqsizeHint().width());
g->addWidget(b,1,1);
b->setDefault(true);
- connect(b,SIGNAL(clicked()),this,SLOT(okClicked()));
+ connect(b,TQT_SIGNAL(clicked()),this,TQT_SLOT(okClicked()));
b->setIconSet(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_ACCEPT)));
- m_pCancel = new QPushButton(__tr2qs_ctx("Cancel","options"),this);
+ m_pCancel = new TQPushButton(__tr2qs_ctx("Cancel","options"),this);
KviTalToolTip::add(m_pCancel,__tr2qs_ctx("Close this dialog, discarding all changes.","options"));
g->addWidget(m_pCancel,1,2);
- connect(m_pCancel,SIGNAL(clicked()),this,SLOT(cancelClicked()));
+ connect(m_pCancel,TQT_SIGNAL(clicked()),this,TQT_SLOT(cancelClicked()));
m_pCancel->setIconSet(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_DISCARD)));
@@ -86,20 +86,20 @@ void KviOptionsWidgetContainer::setup(KviOptionsWidget * w)
}
-void KviOptionsWidgetContainer::closeEvent(QCloseEvent *e)
+void KviOptionsWidgetContainer::closeEvent(TQCloseEvent *e)
{
e->ignore();
cancelClicked();
}
-void KviOptionsWidgetContainer::showEvent(QShowEvent *e)
+void KviOptionsWidgetContainer::showEvent(TQShowEvent *e)
{
- if(parent() == 0)
+ if(tqparent() == 0)
{
move((g_pApp->desktop()->width() - width()) / 2,
(g_pApp->desktop()->height() - height()) / 2);
}
- QWidget::showEvent(e);
+ TQWidget::showEvent(e);
m_pCancel->setFocus();
}