diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:28:18 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:28:18 -0600 |
commit | b836ed566cdce05ae8408705487cd10a423f3a90 (patch) | |
tree | b37e97e4b5b83e83ba02c8e8db096303faff99bf /ksysv/TopWidget.cpp | |
parent | 377fa3a2775cdb3194315bb83e21744dc7c97bbf (diff) | |
download | tdeadmin-b836ed566cdce05ae8408705487cd10a423f3a90.tar.gz tdeadmin-b836ed566cdce05ae8408705487cd10a423f3a90.zip |
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'ksysv/TopWidget.cpp')
-rw-r--r-- | ksysv/TopWidget.cpp | 28 |
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; |