summaryrefslogtreecommitdiffstats
path: root/src/libgui/toplevel_ui.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/toplevel_ui.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/toplevel_ui.cpp')
-rw-r--r--src/libgui/toplevel_ui.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/libgui/toplevel_ui.cpp b/src/libgui/toplevel_ui.cpp
index 5e8db32..2bb50ee 100644
--- a/src/libgui/toplevel_ui.cpp
+++ b/src/libgui/toplevel_ui.cpp
@@ -8,18 +8,18 @@
***************************************************************************/
#include "toplevel_ui.h"
-#include <qstyle.h>
+#include <tqstyle.h>
#include <kiconloader.h>
#include "progs/list/prog_list.h"
#include "tools/list/tool_list.h"
//----------------------------------------------------------------------------
-ProgrammerStatusWidget::ProgrammerStatusWidget(QWidget *parent)
- : QObject(parent), KeyPopupButton<QString>(parent)
+ProgrammerStatusWidget::ProgrammerStatusWidget(TQWidget *tqparent)
+ : TQObject(tqparent), KeyPopupButton<TQString>(tqparent)
{
- connect(widget(), SIGNAL(activated(int)), SLOT(activatedSlot(int)));
- widget()->appendAction(i18n("Configure..."), "configure", this, SIGNAL(configure()));
+ connect(widget(), TQT_SIGNAL(activated(int)), TQT_SLOT(activatedSlot(int)));
+ widget()->appendAction(i18n("Configure..."), "configure", this, TQT_SIGNAL(configure()));
widget()->appendSeparator();
Programmer::Lister::ConstIterator it;
for (it=Programmer::lister().begin(); it!=Programmer::lister().end(); ++it)
@@ -32,12 +32,12 @@ void ProgrammerStatusWidget::activatedSlot(int id)
}
//----------------------------------------------------------------------------
-ToolStatusWidget::ToolStatusWidget(QWidget *parent)
- : QObject(parent), KeyPopupButton<QString>(parent)
+ToolStatusWidget::ToolStatusWidget(TQWidget *tqparent)
+ : TQObject(tqparent), KeyPopupButton<TQString>(tqparent)
{
- connect(widget(), SIGNAL(activated(int)), SLOT(activatedSlot(int)));
- widget()->appendAction(i18n("Configure Toolchain..."), "configure", this, SIGNAL(configureToolchain()));
- widget()->appendAction(i18n("Configure Compilation..."), "configure", this, SIGNAL(configure()));
+ connect(widget(), TQT_SIGNAL(activated(int)), TQT_SLOT(activatedSlot(int)));
+ widget()->appendAction(i18n("Configure Toolchain..."), "configure", this, TQT_SIGNAL(configureToolchain()));
+ widget()->appendAction(i18n("Configure Compilation..."), "configure", this, TQT_SIGNAL(configure()));
widget()->appendSeparator();
Tool::Lister::ConstIterator it;
for (it=Tool::lister().begin(); it!=Tool::lister().end(); ++it)
@@ -61,11 +61,11 @@ void ViewMenuAction::slotActivated()
}
//----------------------------------------------------------------------------
-MenuBarButton::MenuBarButton(const QString &icon, QWidget *parent)
- : QToolButton(parent, "menu_bar_button")
+MenuBarButton::MenuBarButton(const TQString &icon, TQWidget *tqparent)
+ : TQToolButton(tqparent, "menu_bar_button")
{
- QFontMetrics fm(font());
- int h = fm.height() + 2*style().pixelMetric(QStyle::PM_DefaultFrameWidth, this);
+ TQFontMetrics fm(font());
+ int h = fm.height() + 2*tqstyle().tqpixelMetric(TQStyle::PM_DefaultFrameWidth, this);
setFixedHeight(h);
KIconLoader loader;
setIconSet(loader.loadIconSet(icon, KIcon::Small, fm.height()-2));
@@ -73,7 +73,7 @@ MenuBarButton::MenuBarButton(const QString &icon, QWidget *parent)
setAutoRaise(true);
}
-QSize MenuBarButton::sizeHint() const
+TQSize MenuBarButton::tqsizeHint() const
{
- return QSize(QToolButton::sizeHint().width(), height());
+ return TQSize(TQToolButton::tqsizeHint().width(), height());
}