summaryrefslogtreecommitdiffstats
path: root/lilo-config/kde-qt-common/images.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 20:34:22 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 20:34:22 +0000
commitb09bffed6b43262948018dfb0f11890850ddf7c1 (patch)
tree138696bfcc7ac01070d0e8ecaa1cdf94611a2bd8 /lilo-config/kde-qt-common/images.cpp
parent6d43944a7130b9d1b4ae3fba37b774aced8612cf (diff)
downloadtdeadmin-b09bffed6b43262948018dfb0f11890850ddf7c1.tar.gz
tdeadmin-b09bffed6b43262948018dfb0f11890850ddf7c1.zip
TQt4 port kdeadmin
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1237416 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lilo-config/kde-qt-common/images.cpp')
-rw-r--r--lilo-config/kde-qt-common/images.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/lilo-config/kde-qt-common/images.cpp b/lilo-config/kde-qt-common/images.cpp
index 9159d97..bdbdac4 100644
--- a/lilo-config/kde-qt-common/images.cpp
+++ b/lilo-config/kde-qt-common/images.cpp
@@ -36,26 +36,26 @@
#include "kde/InputBox.h"
#include "kde/Details.h"
#else
-#include "qt/InputBox.h"
-#include "qt/Details.h"
+#include "tqt/InputBox.h"
+#include "tqt/Details.h"
#endif
-Images::Images(liloconf *l, TQWidget *parent, const char *name):TQWidget(parent, name)
+Images::Images(liloconf *l, TQWidget *tqparent, const char *name):TQWidget(tqparent, name)
{
- current=""; previous=""; // Using TQString::null gives problems!
+ current=""; previous=""; // Using TQString() gives problems!
lilo=l;
- layout=new TQHBoxLayout(this);
- layout->setMargin(SPACE_MARGIN);
- layout->setSpacing(SPACE_INSIDE);
+ tqlayout=new TQHBoxLayout(this);
+ tqlayout->setMargin(SPACE_MARGIN);
+ tqlayout->setSpacing(SPACE_INSIDE);
images=new TQListBox(this);
- layout->addWidget(images, 1);
+ tqlayout->addWidget(images, 1);
connect(images, TQT_SIGNAL(highlighted(const TQString &)), TQT_SLOT(imageSelected(const TQString &)));
TQWhatsThis::add(images, _("This is the list of kernels and operating systems you can currently boot. Select which one you want to edit here."));
parameters=new TQVBox(this);
parameters->setMargin(SPACE_MARGIN);
parameters->setSpacing(SPACE_INSIDE);
- layout->addWidget(parameters, 2);
+ tqlayout->addWidget(parameters, 2);
image=new EditWidget(_("&Kernel:"), "", true, parameters);
TQWhatsThis::add(image, _("Enter the filename of the kernel you want to boot here."));
connect(image, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SIGNAL(configChanged()));
@@ -75,7 +75,7 @@ Images::Images(liloconf *l, TQWidget *parent, const char *name):TQWidget(parent,
actions=new TQVBox(this);
actions->setMargin(SPACE_MARGIN);
actions->setSpacing(SPACE_INSIDE);
- layout->addWidget(actions);
+ tqlayout->addWidget(actions);
dflt=new TQPushButton(_("Set &Default"), actions);
TQWhatsThis::add(dflt, _("Boot this kernel/OS if the user doesn't make a different choice"));
connect(dflt, TQT_SIGNAL(clicked()), TQT_SLOT(dfltClicked()));
@@ -131,7 +131,7 @@ void Images::probeClicked() // SLOT
void Images::dfltClicked() // SLOT
{
if (images->currentItem() < 0) return;
- lilo->setDefault(images->currentText().replace(TQRegExp(" (default)", true, true), "").latin1());
+ lilo->setDefault(images->currentText().tqreplace(TQRegExp(" (default)", true, true), "").latin1());
update();
emit configChanged();
}
@@ -246,7 +246,7 @@ void Images::removeClicked() // SLOT
TQString value(TQString const &s)
{
- TQString r=s.mid(s.find('=')+1).simplifyWhiteSpace();
+ TQString r=s.mid(s.tqfind('=')+1).simplifyWhiteSpace();
if(r.left(1)=="\"")
r=r.mid(1);
if(r.right(1)=="\"")