summaryrefslogtreecommitdiffstats
path: root/lilo-config/qt/standalone.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
commitaa3a1ca934bc541bddd3fa136a85f106f7da266e (patch)
tree9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /lilo-config/qt/standalone.cpp
parentb10cf7066791a2f362495890cd50c984e8025412 (diff)
downloadtdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.tar.gz
tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lilo-config/qt/standalone.cpp')
-rw-r--r--lilo-config/qt/standalone.cpp68
1 files changed, 34 insertions, 34 deletions
diff --git a/lilo-config/qt/standalone.cpp b/lilo-config/qt/standalone.cpp
index 268ad21..4dc73e2 100644
--- a/lilo-config/qt/standalone.cpp
+++ b/lilo-config/qt/standalone.cpp
@@ -25,42 +25,42 @@
** Bug reports and questions can be sent to kde-devel@kde.org
*/
-#include <qapplication.h>
-#include <qobject.h>
-#include <qwhatsthis.h>
-#include <qwindowsstyle.h>
+#include <tqapplication.h>
+#include <tqobject.h>
+#include <tqwhatsthis.h>
+#include <tqwindowsstyle.h>
#include <mainwidget.h>
#include <ui.h>
#include "standalone.moc"
-Standalone::Standalone(QWidget *parent, const char *name):QWidget(parent,name)
+Standalone::Standalone(TQWidget *parent, const char *name):TQWidget(parent,name)
{
m=new MainWidget(this);
- connect(m, SIGNAL(configChanged()), SLOT(configChanged()));
- actions=new QHButtonGroup(this);
- _whatsthis=new QPushButton(_("&What's This?"), actions);
+ connect(m, TQT_SIGNAL(configChanged()), TQT_SLOT(configChanged()));
+ actions=new TQHButtonGroup(this);
+ _whatsthis=new TQPushButton(_("&What's This?"), actions);
_whatsthis->setAccel(SHIFT+Key_F1);
- QWhatsThis::add(_whatsthis, _("The <i>What's This?</i> button is part of this program's help system. Click on the What's This? button then on any widget in the window to get information (like this) on it."));
- connect(_whatsthis, SIGNAL(clicked()), SLOT(whatsthis()));
- _help=new QPushButton(_("&Help"), actions);
+ TQWhatsThis::add(_whatsthis, _("The <i>What's This?</i> button is part of this program's help system. Click on the What's This? button then on any widget in the window to get information (like this) on it."));
+ connect(_whatsthis, TQT_SIGNAL(clicked()), TQT_SLOT(whatsthis()));
+ _help=new TQPushButton(_("&Help"), actions);
_help->setAccel(Key_F1);
- QWhatsThis::add(_help, _("This button calls up the program's online help system. If it does nothing, no help file has been written (yet); in that case, use the <i>What's This</i> button on the left."));
- connect(_help, SIGNAL(clicked()), this, SLOT(help()));
- _deflt=new QPushButton(_("&Default"), actions);
- QWhatsThis::add(_deflt, _("This button resets all parameters to some (hopefully sane) default values."));
- connect(_deflt, SIGNAL(clicked()), this, SLOT(defaults()));
- _reset=new QPushButton(_("&Reset"), actions);
- QWhatsThis::add(_reset, _("This button resets all parameters to what they were before you started the program."));
- connect(_reset, SIGNAL(clicked()), this, SLOT(reset()));
- _apply=new QPushButton(_("&Apply"), actions);
- QWhatsThis::add(_apply, _("This button saves all your changes without exiting."));
- connect(_apply, SIGNAL(clicked()), this, SLOT(apply()));
- _ok=new QPushButton(_("&OK"), actions);
- QWhatsThis::add(_ok, _("This button saves all your changes and exits the program."));
- connect(_ok, SIGNAL(clicked()), this, SLOT(ok()));
- _cancel=new QPushButton(_("&Cancel"), actions);
- QWhatsThis::add(_cancel, _("This button exits the program without saving your changes."));
- connect(_cancel, SIGNAL(clicked()), this, SLOT(cancel()));
+ TQWhatsThis::add(_help, _("This button calls up the program's online help system. If it does nothing, no help file has been written (yet); in that case, use the <i>What's This</i> button on the left."));
+ connect(_help, TQT_SIGNAL(clicked()), this, TQT_SLOT(help()));
+ _deflt=new TQPushButton(_("&Default"), actions);
+ TQWhatsThis::add(_deflt, _("This button resets all parameters to some (hopefully sane) default values."));
+ connect(_deflt, TQT_SIGNAL(clicked()), this, TQT_SLOT(defaults()));
+ _reset=new TQPushButton(_("&Reset"), actions);
+ TQWhatsThis::add(_reset, _("This button resets all parameters to what they were before you started the program."));
+ connect(_reset, TQT_SIGNAL(clicked()), this, TQT_SLOT(reset()));
+ _apply=new TQPushButton(_("&Apply"), actions);
+ TQWhatsThis::add(_apply, _("This button saves all your changes without exiting."));
+ connect(_apply, TQT_SIGNAL(clicked()), this, TQT_SLOT(apply()));
+ _ok=new TQPushButton(_("&OK"), actions);
+ TQWhatsThis::add(_ok, _("This button saves all your changes and exits the program."));
+ connect(_ok, TQT_SIGNAL(clicked()), this, TQT_SLOT(ok()));
+ _cancel=new TQPushButton(_("&Cancel"), actions);
+ TQWhatsThis::add(_cancel, _("This button exits the program without saving your changes."));
+ connect(_cancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(cancel()));
_apply->setEnabled(false);
setMinimumWidth(actions->sizeHint().width()+10);
arrangeWidgets();
@@ -72,15 +72,15 @@ void Standalone::arrangeWidgets()
actions->setGeometry(SPACE_MARGIN, height()-actions->sizeHint().height()-SPACE_MARGIN, width()-2*SPACE_MARGIN, actions->sizeHint().height());
}
-void Standalone::resizeEvent(QResizeEvent *e)
+void Standalone::resizeEvent(TQResizeEvent *e)
{
- QWidget::resizeEvent(e);
+ TQWidget::resizeEvent(e);
arrangeWidgets();
}
void Standalone::whatsthis()
{
- QWhatsThis::enterWhatsThisMode();
+ TQWhatsThis::enterWhatsThisMode();
}
void Standalone::help()
{
@@ -113,12 +113,12 @@ void Standalone::configChanged() // SLOT
}
int main(int argc, char **argv) {
- QApplication a(argc, argv);
+ TQApplication a(argc, argv);
Standalone *s=new Standalone(0);
int ret;
- a.setStyle(new QWindowsStyle());
+ a.setStyle(new TQWindowsStyle());
a.setMainWidget(s);
- QObject::connect(s, SIGNAL(done()), &a, SLOT(quit()));
+ TQObject::connect(s, TQT_SIGNAL(done()), &a, TQT_SLOT(quit()));
s->show();
ret=a.exec();
delete s;