summaryrefslogtreecommitdiffstats
path: root/lilo-config/qt/Details.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lilo-config/qt/Details.cpp')
-rw-r--r--lilo-config/qt/Details.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/lilo-config/qt/Details.cpp b/lilo-config/qt/Details.cpp
index 944ba0d..6b4e50a 100644
--- a/lilo-config/qt/Details.cpp
+++ b/lilo-config/qt/Details.cpp
@@ -32,13 +32,13 @@
#include <tqlabel.h>
#include <ui.h>
-Details::Details(liloimage *lilo, TQWidget *parent, const char *name, WFlags f):TQDialog(parent, name, true, f)
+Details::Details(liloimage *lilo, TQWidget *tqparent, const char *name, WFlags f):TQDialog(tqparent, name, true, f)
{
l=lilo;
- TQVBoxLayout *layout=new TQVBoxLayout(this);
- layout->setMargin(SPACE_MARGIN);
- layout->setSpacing(SPACE_INSIDE);
+ TQVBoxLayout *tqlayout=new TQVBoxLayout(this);
+ tqlayout->setMargin(SPACE_MARGIN);
+ tqlayout->setSpacing(SPACE_INSIDE);
TQHBox *vgab=new TQHBox(this);
TQLabel *vlbl=new TQLabel(_("&Graphics mode on text console:"), vgab);
@@ -71,15 +71,15 @@ Details::Details(liloimage *lilo, TQWidget *parent, const char *name, WFlags f):
vga->insertItem(_("VGA 1280x1024, 32767 colors (793)"));
vga->insertItem(_("VGA 1280x1024, 65536 colors (794)"));
vga->insertItem(_("VGA 1280x1024, 16.7M colors (795)"));
- layout->addWidget(vgab);
+ tqlayout->addWidget(vgab);
readonly=new TQCheckBox(_("Mount root filesystem &read-only"), this);
TQWhatsThis::add(readonly, _("Mount the root filesystem for this kernel read-only. Since the init scripts normally take care of remounting the root filesystem in read-write mode after running some checks, this should always be turned on.<br>Don't turn this off unless you know what you're doing."));
- layout->addWidget(readonly);
+ tqlayout->addWidget(readonly);
unsafe=new TQCheckBox(_("Do not check &partition table"), this);
TQWhatsThis::add(unsafe, _("This turns off some sanity checks while writing the configuration. This shouldn't be used under \"normal\" circumstances, but it's useful, for example, for installing the possibility to boot from a floppy disk without having a floppy in the drive every time you run lilo.<br>This sets the <i>unsafe</i> keyword in lilo.conf."));
- layout->addWidget(unsafe);
+ tqlayout->addWidget(unsafe);
TQHBox *opts=new TQHBox(this);
lock=new TQCheckBox(_("&Record boot command lines for defaults"), opts);
@@ -87,7 +87,7 @@ Details::Details(liloimage *lilo, TQWidget *parent, const char *name, WFlags f):
restricted=new TQCheckBox(_("R&estrict parameters"), opts);
connect(restricted, TQT_SIGNAL(clicked()), TQT_SLOT(check_pw()));
TQWhatsThis::add(restricted, _("If this box is checked, a password (entered below) is required only if any parameters are changed (i.e. the user can boot <i>linux</i>, but not <i>linux single</i> or <i>linux init=/bin/sh</i>).\nThis sets the <b>restricted</b> option in lilo.conf."));
- layout->addWidget(opts);
+ tqlayout->addWidget(opts);
TQHBox *pw=new TQHBox(this);
use_password=new TQCheckBox(_("Require &password:"), pw);
@@ -96,12 +96,12 @@ Details::Details(liloimage *lilo, TQWidget *parent, const char *name, WFlags f):
password->setMaxLength(15);
password->setEchoMode(TQLineEdit::Password);
TQWhatsThis::add(pw, _("Enter the password required for bootup (if any) here. If <i>restricted</i> above is checked, the password is required for additional parameters only.<br><b>WARNING:</b> The password is stored in clear text in /etc/lilo.conf. You'll want to make sure nobody untrusted can read this file. Also, you probably don't want to use your normal/root password here."));
- layout->addWidget(pw);
+ tqlayout->addWidget(pw);
TQHBox *btns=new TQHBox(this);
ok=new TQPushButton(_("&OK"), btns);
cancel=new TQPushButton(_("&Cancel"), btns);
- layout->addWidget(btns);
+ tqlayout->addWidget(btns);
connect(cancel, TQT_SIGNAL(clicked()), TQT_SLOT(reject()));
connect(ok, TQT_SIGNAL(clicked()), TQT_SLOT(accept()));
@@ -113,7 +113,7 @@ Details::Details(liloimage *lilo, TQWidget *parent, const char *name, WFlags f):
vga->setCurrentItem(1);
else
for(int i=0; i<vga->count(); i++) {
- if(vga->text(i).contains("(" + mode + ")")) {
+ if(vga->text(i).tqcontains("(" + mode + ")")) {
vga->setCurrentItem(i);
break;
}
@@ -137,7 +137,7 @@ TQString Details::vgaMode() const
if(s=="default")
return "";
else if(s!="ask") {
- s=s.mid(s.find('(')+1);
+ s=s.mid(s.tqfind('(')+1);
s=s.left(s.length()-1);
}
return s;