diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 00:15:53 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 00:15:53 +0000 |
commit | 0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 (patch) | |
tree | b95c0ca86c4876dd139af376b9f4afd8917cf0cd /src/libgui/register_view.cpp | |
parent | b79a2c28534cf09987eeeba3077fff9236df182a (diff) | |
download | piklab-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/register_view.cpp')
-rw-r--r-- | src/libgui/register_view.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/libgui/register_view.cpp b/src/libgui/register_view.cpp index 3c244e8..fe4b4d6 100644 --- a/src/libgui/register_view.cpp +++ b/src/libgui/register_view.cpp @@ -8,10 +8,10 @@ ***************************************************************************/ #include "register_view.h" -#include <qlayout.h> -#include <qlabel.h> -#include <qpushbutton.h> -#include <qcheckbox.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqpushbutton.h> +#include <tqcheckbox.h> #include <klocale.h> #include "devices/base/device_group.h" @@ -23,8 +23,8 @@ #include "gui_debug_manager.h" //----------------------------------------------------------------------------- -Register::MainView::MainView(const QString &title, const QString &tag, QWidget *parent) - : DeviceEditor(title, tag, parent, "register_view"), _debugging(false) +Register::MainView::MainView(const TQString &title, const TQString &tag, TQWidget *tqparent) + : DeviceEditor(title, tag, tqparent, "register_view"), _debugging(false) {} void Register::MainView::setDevice(bool force) @@ -34,15 +34,15 @@ void Register::MainView::setDevice(bool force) DeviceEditor::setDevice(force || oldDebugging!=_debugging); } -QWidget *Register::MainView::createView(const Device::Data *data, QWidget *parent) +TQWidget *Register::MainView::createView(const Device::Data *data, TQWidget *tqparent) { - if ( data==0 ) return new QWidget(parent); - Register::View *view = Device::groupui(*data).createRegisterView(parent); + if ( data==0 ) return new TQWidget(tqparent); + Register::View *view = Device::groupui(*data).createRegisterView(tqparent); if (view) view->updateView(); else { - QWidget *w = new QWidget(parent); - QVBoxLayout *vbox = new QVBoxLayout(w, 10, 10); - QLabel *label = new QLabel(i18n("The selected device has no register."), w); + TQWidget *w = new TQWidget(tqparent); + TQVBoxLayout *vbox = new TQVBoxLayout(w, 10, 10); + TQLabel *label = new TQLabel(i18n("The selected device has no register."), w); vbox->addWidget(label); vbox->addStretch(1); return w; |