summaryrefslogtreecommitdiffstats
path: root/ksysv/TopWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksysv/TopWidget.cpp')
-rw-r--r--ksysv/TopWidget.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/ksysv/TopWidget.cpp b/ksysv/TopWidget.cpp
index f039d63..4dedbe3 100644
--- a/ksysv/TopWidget.cpp
+++ b/ksysv/TopWidget.cpp
@@ -87,12 +87,12 @@
#include <tqlabel.h>
#include <kstatusbar.h>
-namespace tqStatus
+namespace Status
{
enum {
Changed, Checklist, Writable
};
-} // namespace tqStatus
+} // namespace Status
KSVTopLevel::KSVTopLevel()
: KMainWindow(0, 0L, WStyle_ContextHelp|WDestructiveClose),
@@ -428,14 +428,14 @@ void KSVTopLevel::initStatusBar()
"recommended though, due to security issues.</p>")
.tqarg (kapp->aboutData()->programName()).tqarg(kapp->aboutData()->programName()));
- authIconBox->setMinimumSize (authIconBox->tqminimumSizeHint());
- visBox->setMinimumSize (visBox->tqminimumSizeHint());
+ authIconBox->setMinimumSize (authIconBox->minimumSizeHint());
+ visBox->setMinimumSize (visBox->minimumSizeHint());
status->addWidget (authIconBox, 0, false);
- status->insertItem ("", tqStatus::Changed, 100);
+ status->insertItem ("", Status::Changed, 100);
status->addWidget (visBox, 0, true);
- status->setItemAlignment (tqStatus::Changed, AlignLeft|AlignVCenter);
+ status->setItemAlignment (Status::Changed, AlignLeft|AlignVCenter);
}
void KSVTopLevel::slotShowConfig()
@@ -499,7 +499,7 @@ void KSVTopLevel::saveOptions()
void KSVTopLevel::slotUpdateRunning (const TQString& text)
{
- statusBar()->changeItem(text, tqStatus::Changed);
+ statusBar()->changeItem(text, Status::Changed);
}
void KSVTopLevel::editCut() {
@@ -563,7 +563,7 @@ void KSVTopLevel::setChanged (bool val)
mFileSave->setEnabled (val);
// update statusbar
- statusBar()->changeItem(val ? i18n(" Changed") : TQString(), tqStatus::Changed);
+ statusBar()->changeItem(val ? i18n(" Changed") : TQString(), Status::Changed);
// clear messages
statusBar()->clear();
@@ -651,7 +651,7 @@ void KSVTopLevel::print()
// .arg (ksv::hostname()));
// y += fm.lineSpacing();
-// p.drawText (10, y, TQDateTime::tqcurrentDateTime().toString());
+// p.drawText (10, y, TQDateTime::currentDateTime().toString());
// y += fm.lineSpacing() * 2; // an extra empty line
// for (int i = 0; i < ksv::runlevelNumber; ++i)
@@ -771,17 +771,17 @@ void KSVTopLevel::printLog()
rheading.setWidth (&p, width);
int tmp_h = rheading.height();
TQRegion region (0, y, width, tmp_h);
- rheading.draw (&p, 0, y, region, tqcolorGroup(), 0L);
+ rheading.draw (&p, 0, y, region, colorGroup(), 0L);
y += tmp_h;
- TQSimpleRichText rdate (i18n("<h3>Printed on %1</h3><br/><br/>").tqarg(KGlobal::locale()->formatDateTime(TQDateTime::tqcurrentDateTime())),
+ TQSimpleRichText rdate (i18n("<h3>Printed on %1</h3><br/><br/>").tqarg(KGlobal::locale()->formatDateTime(TQDateTime::currentDateTime())),
TQFont("times"), TQString(), ksv::styleSheet(),
TQMimeSourceFactory::defaultFactory());
rdate.setWidth (&p, width);
tmp_h = rdate.height();
TQRegion r2 (0, y, width, tmp_h);
- rdate.draw (&p, 0, y, r2, tqcolorGroup(), 0L);
+ rdate.draw (&p, 0, y, r2, colorGroup(), 0L);
y += tmp_h;
}
@@ -799,7 +799,7 @@ void KSVTopLevel::printLog()
break;
TQRegion region (0, y, width, tmp_h);
- rich.draw (&p, 0, y, region, tqcolorGroup(), 0L);
+ rich.draw (&p, 0, y, region, colorGroup(), 0L);
y += tmp_h;
++line;
@@ -938,7 +938,7 @@ void KSVTopLevel::slotSaveLog()
s << "KDE System V Init Editor"
<< endl
- << TQDateTime::tqcurrentDateTime().toString()
+ << TQDateTime::currentDateTime().toString()
<< endl << endl
<< mView->log()
<< endl;