From 6b7a8ff33a6383be4a9dea3c4225d142aab79b78 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 19 Dec 2011 11:52:44 -0600 Subject: Remove additional unneeded tq method conversions --- ksysv/IOCore.cpp | 42 +++++++++++++++++++++--------------------- ksysv/OldView.cpp | 36 ++++++++++++++++++------------------ ksysv/RunlevelAuthIcon.cpp | 4 ++-- ksysv/TopWidget.cpp | 6 +++--- ksysv/configwizard.ui | 4 ++-- ksysv/kdltooltip.cpp | 6 +++--- ksysv/ksv_conf.cpp | 2 +- ksysv/ksvdraglist.cpp | 2 +- ksysv/lookandfeelconfig.ui | 12 ++++++------ ksysv/trash.cpp | 4 ++-- 10 files changed, 59 insertions(+), 59 deletions(-) (limited to 'ksysv') diff --git a/ksysv/IOCore.cpp b/ksysv/IOCore.cpp index 001227d..1951aa2 100644 --- a/ksysv/IOCore.cpp +++ b/ksysv/IOCore.cpp @@ -49,23 +49,23 @@ void ksv::IO::removeFile (const TQFileInfo& info, TQDir& dir, TQString& rich, TQ if (!dir.remove(info.fileName(), FALSE)) { rich = (i18n ("FAILED to remove %1 from %2: \"%3\"
") - .tqarg(info.fileName()) - .tqarg(dir.path()) - .tqarg(strerror(errno))); + .arg(info.fileName()) + .arg(dir.path()) + .arg(strerror(errno))); plain = (i18n ("FAILED to remove %1 from %2: \"%3\"\n") - .tqarg(info.fileName()) - .tqarg(dir.path()) - .tqarg(strerror(errno))); + .arg(info.fileName()) + .arg(dir.path()) + .arg(strerror(errno))); } else { rich = i18n("removed %1 from %2
") - .tqarg(info.fileName()) - .tqarg(dir.path()); + .arg(info.fileName()) + .arg(dir.path()); plain = i18n("removed %1 from %2\n") - .tqarg(info.fileName()) - .tqarg(dir.path()); + .arg(info.fileName()) + .arg(dir.path()); } } @@ -80,8 +80,8 @@ void ksv::IO::dissectFilename (const TQString& file, TQString& base, int& nr) void ksv::IO::makeSymlink (const KSVData& data, int runlevel, bool start, TQString& rich, TQString& plain) { - const TQString symName = TQString("%1%2%3").tqarg(start ? "S" : "K").tqarg(data.numberString()).tqarg(data.label()); - const TQString symPath = TQString("%1/rc%2.d/").tqarg(KSVConfig::self()->runlevelPath()).tqarg(runlevel); + const TQString symName = TQString("%1%2%3").arg(start ? "S" : "K").arg(data.numberString()).arg(data.label()); + const TQString symPath = TQString("%1/rc%2.d/").arg(KSVConfig::self()->runlevelPath()).arg(runlevel); const TQString symbol = symPath + symName; TQString target = data.filename(); @@ -92,20 +92,20 @@ void ksv::IO::makeSymlink (const KSVData& data, int runlevel, bool start, if (symlink(target.local8Bit(), symbol.local8Bit()) == 0) { - rich = i18n("created %1 in %2
").tqarg(symName).tqarg(symPath); - plain = i18n("created %1 in %2\n").tqarg(symName).tqarg(symPath); + rich = i18n("created %1 in %2
").arg(symName).arg(symPath); + plain = i18n("created %1 in %2\n").arg(symName).arg(symPath); } else { rich = i18n("FAILED to create %1 in %2: \"%3\"
") - .tqarg(symName) - .tqarg(symPath) - .tqarg(strerror(errno)); + .arg(symName) + .arg(symPath) + .arg(strerror(errno)); plain = i18n("FAILED to create %1 in %2: \"%3\"\n") - .tqarg(symName) - .tqarg(symPath) - .tqarg(strerror(errno)); + .arg(symName) + .arg(symPath) + .arg(strerror(errno)); } } @@ -201,7 +201,7 @@ bool ksv::IO::loadSavedConfiguration (TQDataStream& s, s >> rlMagic; s >> section; - if (rlMagic != TQString::fromLatin1("RUNLEVEL %1").tqarg(i)) + if (rlMagic != TQString::fromLatin1("RUNLEVEL %1").arg(i)) return false; if (section != "START") diff --git a/ksysv/OldView.cpp b/ksysv/OldView.cpp index 2a7523c..efd1878 100644 --- a/ksysv/OldView.cpp +++ b/ksysv/OldView.cpp @@ -251,9 +251,9 @@ void KSVContent::initLList() mRunlevels[i]->setSpacing (KDialog::spacingHint()); // create TQString for label - TQString _label (i18n("Runlevel &%1").tqarg(i)); + TQString _label (i18n("Runlevel &%1").arg(i)); // and for the name - TQString _name (i18n("Runlevel %1").tqarg(i)); + TQString _name (i18n("Runlevel %1").arg(i)); TQVBox* startBox = new TQVBox (mRunlevels[i]); TQWhatsThis::add (startBox, @@ -262,7 +262,7 @@ void KSVContent::initLList() "determines the order in which the services are started. " \ "You can arrange them via drag and drop, as long as a suitable " \ "sorting number can be generated.

If that's not possible, you have " \ - "to change the number manually via the Properties dialog box.

").tqarg(i)); + "to change the number manually via the Properties dialog box.

").arg(i)); TQLabel* rlL = new TQLabel(_label, startBox); new TQLabel(i18n("Start"), startBox); @@ -280,7 +280,7 @@ void KSVContent::initLList() "determines the order in which the services are stopped. " \ "You can arrange them via drag and drop, as long as a suitable " \ "sorting number can be generated.

If that's not possible, you have " \ - "to change the number manually via the Properties dialog box.

").tqarg(i)); + "to change the number manually via the Properties dialog box.

").arg(i)); // create the "STOP" list: stopRL[i] = new KSVDragList(stopBox, (_name + " STOP").latin1()); @@ -351,9 +351,9 @@ void KSVContent::initLList() // use this loop for setting tooltips startRL[i]->setToolTip (i18n("Drag here to start services\n" \ - "when entering runlevel %1").tqarg(i)); + "when entering runlevel %1").arg(i)); stopRL[i]->setToolTip (i18n("Drag here to stop services\n" \ - "when entering runlevel %1").tqarg(i)); + "when entering runlevel %1").arg(i)); for (int j = 0; j < ksv::runlevelNumber; ++j) { @@ -422,7 +422,7 @@ void KSVContent::initRunlevels() startRL[i]->clear(); stopRL[i]->clear(); - const TQString _path = conf->runlevelPath() + TQString("/rc%1.d").tqarg(i); + const TQString _path = conf->runlevelPath() + TQString("/rc%1.d").arg(i); if (!TQDir(_path).exists()) continue; @@ -476,8 +476,8 @@ void KSVContent::slotWriteSysV() for (int i = 0; i < ksv::runlevelNumber; ++i) { - appendLog(i18n("RUNLEVEL %1").tqarg(i), - i18n("** RUNLEVEL %1 **").tqarg(i)); + appendLog(i18n("RUNLEVEL %1").arg(i), + i18n("** RUNLEVEL %1 **").arg(i)); clearRL(i); // rm changed/deleted entries @@ -525,7 +525,7 @@ void KSVContent::repaintRunlevels () void KSVContent::clearRL(int _rl) { - TQString path = conf->runlevelPath() + TQString("/rc%1.d").tqarg(_rl); + TQString path = conf->runlevelPath() + TQString("/rc%1.d").arg(_rl); TQDir dir (path); @@ -539,7 +539,7 @@ void KSVContent::clearRL(int _rl) if (d->newEntry() && d->originalRunlevel() != startRL[_rl]->name()) break; - TQFileInfo file (path + TQString("/S%1%2").tqarg(d->numberString()).tqarg(d->label())); + TQFileInfo file (path + TQString("/S%1%2").arg(d->numberString()).arg(d->label())); TQString rich, plain; ksv::IO::removeFile (file, dir, rich, plain); @@ -557,7 +557,7 @@ void KSVContent::clearRL(int _rl) if (d->newEntry() && d->originalRunlevel() != stopRL[_rl]->name()) break; - TQFileInfo file (path + TQString("/K%1%2").tqarg(d->numberString()).tqarg(d->label())); + TQFileInfo file (path + TQString("/K%1%2").arg(d->numberString()).arg(d->label())); TQString rich, plain; ksv::IO::removeFile (file, dir, rich, plain); @@ -613,8 +613,8 @@ void KSVContent::stopService (const TQString& path) connect(_proc, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), this, TQT_SLOT(slotOutputOrError(KProcess*, char*, int))); // refresh textDisplay - appendLog(i18n("** Stopping %1 **
").tqarg(path), - i18n("** Stopping %1 **").tqarg(path)); + appendLog(i18n("** Stopping %1 **
").arg(path), + i18n("** Stopping %1 **").arg(path)); _proc->start(KProcess::NotifyOnExit, KProcess::AllOutput); @@ -639,8 +639,8 @@ void KSVContent::startService (const TQString& path) connect(_proc, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), this, TQT_SLOT(slotOutputOrError(KProcess*, char*, int))); // refresh textDisplay - appendLog(i18n("** Starting %1 **
").tqarg(path), - i18n("** Starting %1 **").tqarg(path)); + appendLog(i18n("** Starting %1 **
").arg(path), + i18n("** Starting %1 **").arg(path)); _proc->start(KProcess::NotifyOnExit, KProcess::AllOutput); @@ -679,8 +679,8 @@ void KSVContent::restartService (const TQString& path) connect(_proc, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), this, TQT_SLOT(slotOutputOrError(KProcess*, char*, int))); // refresh textDisplay - appendLog(i18n("** Re-starting %1 **
").tqarg(path), - i18n("** Re-starting %1 **").tqarg(path)); + appendLog(i18n("** Re-starting %1 **
").arg(path), + i18n("** Re-starting %1 **").arg(path)); _proc->start(KProcess::NotifyOnExit, KProcess::AllOutput); diff --git a/ksysv/RunlevelAuthIcon.cpp b/ksysv/RunlevelAuthIcon.cpp index e766e77..bac5b30 100644 --- a/ksysv/RunlevelAuthIcon.cpp +++ b/ksysv/RunlevelAuthIcon.cpp @@ -44,7 +44,7 @@ RunlevelAuthIcon::RunlevelAuthIcon (const TQString& servicesPath, const TQString for (int i = 0; i < ksv::runlevelNumber; ++i) { - mRLInfo[i] = new TQFileInfo ((runlevelPath + "/rc%1.d").tqarg(i)); + mRLInfo[i] = new TQFileInfo ((runlevelPath + "/rc%1.d").arg(i)); } updateStatus(); @@ -122,7 +122,7 @@ void RunlevelAuthIcon::setRunlevelPath (const TQString& path) for (int i = 0; i < ksv::runlevelNumber; ++i) { - mRLInfo[i]->setFile ((path + "/rc%1.d").tqarg(i)); + mRLInfo[i]->setFile ((path + "/rc%1.d").arg(i)); } mTimer->start(mInterval); diff --git a/ksysv/TopWidget.cpp b/ksysv/TopWidget.cpp index 4dedbe3..5530f97 100644 --- a/ksysv/TopWidget.cpp +++ b/ksysv/TopWidget.cpp @@ -426,7 +426,7 @@ void KSVTopLevel::initStatusBar() "or ask your sysadmin to install %1 suid or " \ "sgid.

The latter way is not "\ "recommended though, due to security issues.

") - .tqarg (kapp->aboutData()->programName()).tqarg(kapp->aboutData()->programName())); + .arg (kapp->aboutData()->programName()).arg(kapp->aboutData()->programName())); authIconBox->setMinimumSize (authIconBox->minimumSizeHint()); visBox->setMinimumSize (visBox->minimumSizeHint()); @@ -659,7 +659,7 @@ void KSVTopLevel::print() // p.setFont (TQFont("courier", 16, TQFont::Bold)); // TQFontMetrics fm = p.fontMetrics(); -// p.drawText (10, y, i18n ("Runlevel %1").tqarg(i)); +// p.drawText (10, y, i18n ("Runlevel %1").arg(i)); // y += fm.lineSpacing(); // checkPage @@ -775,7 +775,7 @@ void KSVTopLevel::printLog() y += tmp_h; - TQSimpleRichText rdate (i18n("

Printed on %1



").tqarg(KGlobal::locale()->formatDateTime(TQDateTime::currentDateTime())), + TQSimpleRichText rdate (i18n("

Printed on %1



").arg(KGlobal::locale()->formatDateTime(TQDateTime::currentDateTime())), TQFont("times"), TQString(), ksv::styleSheet(), TQMimeSourceFactory::defaultFactory()); rdate.setWidth (&p, width); diff --git a/ksysv/configwizard.ui b/ksysv/configwizard.ui index 7255ac6..2594b01 100644 --- a/ksysv/configwizard.ui +++ b/ksysv/configwizard.ui @@ -10,7 +10,7 @@ ConfigWizard - tqgeometry + geometry 0 0 @@ -590,7 +590,7 @@ You have finished the initial configuration of SysV-Init Editor. <b>Press& RichText - tqalignment + alignment AlignTop|AlignLeft diff --git a/ksysv/kdltooltip.cpp b/ksysv/kdltooltip.cpp index 1ff34e2..7b3a421 100644 --- a/ksysv/kdltooltip.cpp +++ b/ksysv/kdltooltip.cpp @@ -39,8 +39,8 @@ void KDLToolTip::maybeTip (const TQPoint& p) TQString text; TQRect rect; - const TQRect vert = mParent->verticalScrollBar()->tqgeometry(); - const TQRect horiz = mParent->horizontalScrollBar()->tqgeometry(); + const TQRect vert = mParent->verticalScrollBar()->geometry(); + const TQRect horiz = mParent->horizontalScrollBar()->geometry(); if (vert.contains(p)) { @@ -66,7 +66,7 @@ void KDLToolTip::maybeTip (const TQPoint& p) TQListViewItem* i = mParent->itemAt (rp); KSVItem* item = static_cast (i); - rect = mParent->header()->tqgeometry(); + rect = mParent->header()->geometry(); if (rect.contains (p)) { text = mParent->tooltip(); diff --git a/ksysv/ksv_conf.cpp b/ksysv/ksv_conf.cpp index a4a713d..7ad9090 100644 --- a/ksysv/ksv_conf.cpp +++ b/ksysv/ksv_conf.cpp @@ -100,7 +100,7 @@ void KSVConfig::writeSettings() { mConfig->writeEntry("Service Font", mServiceFont); mConfig->writeEntry("Number Font", mNumberFont); - // save screen tqgeometry + // save screen geometry KMainWindow* mw = static_cast(kapp->mainWidget()); if (mw) diff --git a/ksysv/ksvdraglist.cpp b/ksysv/ksvdraglist.cpp index f4e8770..65a1b3e 100644 --- a/ksysv/ksvdraglist.cpp +++ b/ksysv/ksvdraglist.cpp @@ -385,7 +385,7 @@ void KSVDragList::initItem (TQString file, TQString path, TQString name, TQ_INT8 tmp->setChanged (false); setUpdatesEnabled(true); - tqrepaint(false); + repaint(false); } void KSVDragList::setDefaultIcon (const TQPixmap& icon) diff --git a/ksysv/lookandfeelconfig.ui b/ksysv/lookandfeelconfig.ui index 75fefc8..9a902a5 100644 --- a/ksysv/lookandfeelconfig.ui +++ b/ksysv/lookandfeelconfig.ui @@ -133,7 +133,7 @@ Services: - + AlignVCenter|AlignRight @@ -149,7 +149,7 @@ Sorting numbers: - + AlignVCenter|AlignRight @@ -265,7 +265,7 @@ &Changed: - + AlignVCenter|AlignRight @@ -313,7 +313,7 @@ &New: - + AlignVCenter|AlignRight @@ -393,7 +393,7 @@ New && &selected: - + AlignVCenter|AlignRight @@ -409,7 +409,7 @@ Changed && s&elected: - + AlignVCenter|AlignRight diff --git a/ksysv/trash.cpp b/ksysv/trash.cpp index 1ecf522..aab746c 100644 --- a/ksysv/trash.cpp +++ b/ksysv/trash.cpp @@ -75,7 +75,7 @@ void KSVTrash::dropEvent (TQDropEvent* e) if (mOpen) { - mLabel->tqrepaint(); + mLabel->repaint(); mOpen = false; } } @@ -102,7 +102,7 @@ void KSVTrash::dragLeaveEvent ( TQDragLeaveEvent* ) { if (mOpen) { - mLabel->tqrepaint(); + mLabel->repaint(); mOpen = false; } } -- cgit v1.2.1