summaryrefslogtreecommitdiffstats
path: root/src/libgui/config_center.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
commit0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 (patch)
treeb95c0ca86c4876dd139af376b9f4afd8917cf0cd /src/libgui/config_center.cpp
parentb79a2c28534cf09987eeeba3077fff9236df182a (diff)
downloadpiklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.tar.gz
piklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.zip
TQt4 port piklab
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1238822 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/libgui/config_center.cpp')
-rw-r--r--src/libgui/config_center.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/libgui/config_center.cpp b/src/libgui/config_center.cpp
index 530cbbf..237a89d 100644
--- a/src/libgui/config_center.cpp
+++ b/src/libgui/config_center.cpp
@@ -9,12 +9,12 @@
***************************************************************************/
#include "config_center.h"
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qtooltip.h>
-#include <qgroupbox.h>
-#include <qtabwidget.h>
-#include <qtimer.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqtooltip.h>
+#include <tqgroupbox.h>
+#include <tqtabwidget.h>
+#include <tqtimer.h>
#include <kiconloader.h>
#include <klocale.h>
#include <klistview.h>
@@ -48,7 +48,7 @@ void GlobalConfigWidget::saveConfig()
GlobalConfig::writeDebugLevel(_showDebug->currentItem());
}
-QPixmap GlobalConfigWidget::pixmap() const
+TQPixmap GlobalConfigWidget::pixmap() const
{
KIconLoader loader;
return loader.loadIcon("configure", KIcon::Toolbar, KIcon::SizeMedium);
@@ -60,7 +60,7 @@ StandaloneConfigWidget::StandaloneConfigWidget()
{
uint row = 0;
- QLabel *label = new QLabel(i18n("Device:"), this);
+ TQLabel *label = new TQLabel(i18n("Device:"), this);
addWidget(label, row,row, 0,0);
_device = new DeviceChooser::Button(true, this);
addWidget(_device, row,row, 1,1);
@@ -85,7 +85,7 @@ void StandaloneConfigWidget::saveConfig()
_tools->saveConfig();
}
-QPixmap StandaloneConfigWidget::pixmap() const
+TQPixmap StandaloneConfigWidget::pixmap() const
{
KIconLoader loader;
return loader.loadIcon("configure", KIcon::Toolbar, KIcon::SizeMedium);
@@ -106,15 +106,15 @@ ConfigWidget *ConfigCenter::factory(Type type)
return 0;
}
-ConfigCenter::ConfigCenter(Type showType, QWidget *parent)
- : Dialog(IconList, i18n("Configure Piklab"), Ok|Cancel, Cancel, parent, "configure_piklab_dialog", true, false)
+ConfigCenter::ConfigCenter(Type showType, TQWidget *tqparent)
+ : Dialog(IconList, i18n("Configure Piklab"), Ok|Cancel, Cancel, tqparent, "configure_piklab_dialog", true, false)
{
for (uint i=0; i<Nb_Types; i++) {
_configWidgets[i] = factory(Type(i));
_configWidgets[i]->loadConfig();
_pages[i] = addPage(_configWidgets[i]->title(), _configWidgets[i]->header(), _configWidgets[i]->pixmap());
- QVBoxLayout *vbox = new QVBoxLayout(_pages[i]);
- _configWidgets[i]->reparent(_pages[i], QPoint(0,0));
+ TQVBoxLayout *vbox = new TQVBoxLayout(_pages[i]);
+ _configWidgets[i]->reparent(_pages[i], TQPoint(0,0));
vbox->addWidget(_configWidgets[i]);
}
showPage(showType);