From 68b859629107d1395d503acd48b460242e6dc677 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 19 Dec 2011 11:36:50 -0600 Subject: Remove additional unneeded tq method conversions (cherry picked from commit a4741f6c87d0ed48e18c7cfb05df66e94b9f97a7) --- kiosktool/componentPage.cpp | 10 +++---- kiosktool/componentPage_ui.ui | 2 +- kiosktool/kcms/autostart/kcmautostart.cpp | 2 +- kiosktool/kioskConfigDialog.cpp | 2 +- kiosktool/kioskdata.cpp | 4 +-- kiosktool/kioskgui.cpp | 10 +++---- kiosktool/kioskrun.cpp | 50 +++++++++++++++---------------- kiosktool/kiosksync.cpp | 4 +-- kiosktool/kiosktool-kdedirs.cpp | 2 +- kiosktool/mainview.ui | 2 +- kiosktool/profilePropsPage.cpp | 4 +-- kiosktool/userManagement.cpp | 6 ++-- 12 files changed, 49 insertions(+), 49 deletions(-) (limited to 'kiosktool') diff --git a/kiosktool/componentPage.cpp b/kiosktool/componentPage.cpp index 3f7e3a7..40d4976 100644 --- a/kiosktool/componentPage.cpp +++ b/kiosktool/componentPage.cpp @@ -47,8 +47,8 @@ ComponentPage::ComponentPage( ComponentData *data, Component *component, TQWidge connect(pbSetup, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSetup())); connect(pbPreview, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotPreview())); - pbSetup->setText(i18n("&Setup %1").tqarg(m_data->caption)); - pbPreview->setText(i18n("&Preview %1").tqarg(m_data->caption)); + pbSetup->setText(i18n("&Setup %1").arg(m_data->caption)); + pbPreview->setText(i18n("&Preview %1").arg(m_data->caption)); if (m_data->preview.exec.isEmpty()) pbPreview->hide(); @@ -103,7 +103,7 @@ void ComponentPage::setFocus() TQString ComponentPage::subCaption() { - return i18n("Setup %1").tqarg(m_data->caption); + return i18n("Setup %1").arg(m_data->caption); } void ComponentPage::slotSetup() @@ -154,7 +154,7 @@ void ComponentPage::slotSetup() int result = KMessageBox::questionYesNo(this, i18n("You can now configure %1. " "When you are finished click Save to make the new configuration permanent.") - .tqarg(m_data->caption), i18n("%1 Setup").tqarg(m_data->caption), + .arg(m_data->caption), i18n("%1 Setup").arg(m_data->caption), KStdGuiItem::save(), KStdGuiItem::discard()); m_saveSettings = (result == KMessageBox::Yes); if (!dcopApp.isEmpty()) @@ -254,7 +254,7 @@ void ComponentPage::slotPreview() i18n("This is how %1 will behave and look with the new settings. " "Any changes you now make to the settings will not be saved.

" "Click Ok to return to your own personal %2 configuration.") - .tqarg(m_data->caption, m_data->caption), i18n("%1 Preview").tqarg(m_data->caption)); + .arg(m_data->caption, m_data->caption), i18n("%1 Preview").arg(m_data->caption)); if (!dcopApp.isEmpty()) KioskRun::self()->dcopRef(dcopApp, dcopObj).call("quit"); diff --git a/kiosktool/componentPage_ui.ui b/kiosktool/componentPage_ui.ui index 1f73734..84a7fd3 100644 --- a/kiosktool/componentPage_ui.ui +++ b/kiosktool/componentPage_ui.ui @@ -41,7 +41,7 @@ Sunken - + WordBreak|AlignTop diff --git a/kiosktool/kcms/autostart/kcmautostart.cpp b/kiosktool/kcms/autostart/kcmautostart.cpp index ea46796..671d56f 100644 --- a/kiosktool/kcms/autostart/kcmautostart.cpp +++ b/kiosktool/kcms/autostart/kcmautostart.cpp @@ -88,7 +88,7 @@ void setModuleGroup(KConfig *config, const TQString &filename) if (i != -1) module = module.left(i); - config->setGroup(TQString("Module-%1").tqarg(module)); + config->setGroup(TQString("Module-%1").arg(module)); } bool AutoStartConfig::autoloadEnabled(KConfig *config, const TQString &filename) diff --git a/kiosktool/kioskConfigDialog.cpp b/kiosktool/kioskConfigDialog.cpp index 7111e5f..02fb931 100644 --- a/kiosktool/kioskConfigDialog.cpp +++ b/kiosktool/kioskConfigDialog.cpp @@ -113,7 +113,7 @@ void KioskConfigDialog::updateExample() if (!url.endsWith("/")) url += "/"; url += file2; - TQString example = TQString("

%1
-->
%2
").tqarg(file1, url); + TQString example = TQString("
%1
-->
%2
").arg(file1, url); w->lblUploadExample->setText(example); w->lblUploadExample->setFixedSize(TQSize(500,fontMetrics().lineSpacing()*3 + 6)); } diff --git a/kiosktool/kioskdata.cpp b/kiosktool/kioskdata.cpp index ff45343..df6fdae 100644 --- a/kiosktool/kioskdata.cpp +++ b/kiosktool/kioskdata.cpp @@ -267,7 +267,7 @@ bool KioskData::load() TQFile file( filename ); if ( !file.open( IO_ReadOnly ) ) { - m_errorMsg = i18n("Could not open %1").tqarg(filename); + m_errorMsg = i18n("Could not open %1").arg(filename); return false; } @@ -276,7 +276,7 @@ bool KioskData::load() int errorCol; if ( !doc.setContent( &file, &errorMsg, &errorRow, &errorCol ) ) { - m_errorMsg = i18n("Syntax error in %1
Line %3, column %4: %2
").tqarg(filename, errorMsg).tqarg(errorRow).tqarg(errorCol); + m_errorMsg = i18n("Syntax error in %1
Line %3, column %4: %2
").arg(filename, errorMsg).arg(errorRow).arg(errorCol); file.close(); return false; } diff --git a/kiosktool/kioskgui.cpp b/kiosktool/kioskgui.cpp index 2f1e75e..afdc190 100644 --- a/kiosktool/kioskgui.cpp +++ b/kiosktool/kioskgui.cpp @@ -126,7 +126,7 @@ void KioskGui::slotCheckEtcSkel() "If this is not the intended behavior, please remove the offending " "files from the skeleton folder on all systems that you want to " "administer with user profiles.

" - "The following files were found under %2:").tqarg(etcSkel).tqarg(etcSkel), + "The following files were found under %2:").arg(etcSkel).arg(etcSkel), skelFiles, TQString(), "etc_skel_warning"); @@ -234,7 +234,7 @@ void KioskGui::slotDeleteProfile(TQListViewItem *item) TQString profile = item->text(0); int result = KMessageBox::warningContinueCancel(this, i18n("You are about to delete the profile %1.

" - "Are you sure you want to do this?").tqarg(profile), + "Are you sure you want to do this?").arg(profile), TQString(), KGuiItem(i18n("Delete"),"editdelete")); if (result == KMessageBox::Continue) { @@ -376,7 +376,7 @@ void KioskGui::selectPage(int page, bool save) setCaption(i18n("Profile Properties")); break; case PAGE_COMPONENT_SELECTION: - setSubCaption(i18n("Setup Profile \"%1\"").tqarg(m_profile)); + setSubCaption(i18n("Setup Profile \"%1\"").arg(m_profile)); setCaption(m_profile); break; case PAGE_COMPONENT: @@ -635,7 +635,7 @@ bool KioskGui::queryClose() KURL uploadUrl = config->readEntry("uploadURL"); int result = KMessageBox::questionYesNo(this, - i18n("Do you want to upload the profiles to %1 ?").tqarg(uploadUrl.prettyURL())); + i18n("Do you want to upload the profiles to %1 ?").arg(uploadUrl.prettyURL())); if (result == KMessageBox::Yes) { uploadAllProfiles(); @@ -681,7 +681,7 @@ void KioskGui::uploadAllProfiles() if (sync.sync()) { - KMessageBox::information(this, i18n("All profiles have been successfully uploaded to %1").tqarg(uploadURL)); + KMessageBox::information(this, i18n("All profiles have been successfully uploaded to %1").arg(uploadURL)); } } diff --git a/kiosktool/kioskrun.cpp b/kiosktool/kioskrun.cpp index 6f0bed0..4656465 100644 --- a/kiosktool/kioskrun.cpp +++ b/kiosktool/kioskrun.cpp @@ -264,17 +264,17 @@ KioskRun::setupConfigEnv() hostname[0] = 0; gethostname(hostname, 255); - TQString tmpDir = TQString("%1/%2-%3").tqarg(kdeHome).tqarg("tmp").tqarg(hostname); + TQString tmpDir = TQString("%1/%2-%3").arg(kdeHome).arg("tmp").arg(hostname); deleteDir(tmpDir); ::mkdir(TQFile::encodeName(newTmpDir), 0700); ::symlink(TQFile::encodeName(newTmpDir), TQFile::encodeName(tmpDir)); - TQString socketDir = TQString("%1/%2-%3").tqarg(kdeHome).tqarg("socket").tqarg(hostname); + TQString socketDir = TQString("%1/%2-%3").arg(kdeHome).arg("socket").arg(hostname); deleteDir(socketDir); ::mkdir(TQFile::encodeName(newSocketDir), 0700); ::symlink(TQFile::encodeName(newSocketDir), TQFile::encodeName(socketDir)); - m_configDir = TQString("%1/.kde/share/config/").tqarg(m_homeDir); + m_configDir = TQString("%1/.kde/share/config/").arg(m_homeDir); m_instance = new KInstance("kioskrun"); (void) m_instance->dirs(); // Create KStandardDirs obj @@ -377,7 +377,7 @@ KioskRun::setConfigImmutable(const TQString &filename, const TQString &_group, b } else { - TQString group = TQString("[%1]").tqarg(_group); + TQString group = TQString("[%1]").arg(_group); if (status->m_lines.find(group)) { if (!bImmutable) @@ -743,7 +743,7 @@ KioskRun::setupRuntimeEnv() char hostname[256]; hostname[0] = 0; gethostname(hostname, 255); - TQString cacheDir = TQString("%1/.kde/cache-%2").tqarg(m_homeDir).tqarg(hostname); + TQString cacheDir = TQString("%1/.kde/cache-%2").arg(m_homeDir).arg(hostname); deleteDir(cacheDir); KStandardDirs::makeDir(cacheDir); @@ -751,10 +751,10 @@ KioskRun::setupRuntimeEnv() ::unlink(TQFile::encodeName(m_homeDir+".kderc")); - TQString iceAuth = TQString("%1/.ICEauthority").tqarg(TQDir::homeDirPath()); + TQString iceAuth = TQString("%1/.ICEauthority").arg(TQDir::homeDirPath()); setenv("ICEAUTHORITY", TQFile::encodeName(iceAuth), 0); // Don't overwrite existing setting - TQString xAuth = TQString("%1/.Xauthority").tqarg(TQDir::homeDirPath()); + TQString xAuth = TQString("%1/.Xauthority").arg(TQDir::homeDirPath()); setenv("XAUTHORITY", TQFile::encodeName(xAuth), 0); // Don't overwrite existing setting TQString dcopServerFile = m_homeDir+"/.kde/DCOPserver"; @@ -902,11 +902,11 @@ KioskRun::createDir(const TQString &dir) if (error.isEmpty()) msg = i18n("The directory %1 could not be created because of an unspecified problem.

") - .tqarg(dir); + .arg(dir); else msg = i18n("The directory %1 could not be created because of the following problem:" "

%2

") - .tqarg(dir, NETACCESS::lastErrorString()); + .arg(dir, NETACCESS::lastErrorString()); msg += i18n("Without this directory your changes can not be saved.

" "Do you want to retry creating the directory or abort the saving of changes?"); @@ -944,7 +944,7 @@ KioskRun::createRemoteDirRecursive(const KURL &dest, bool ask) // Parent doesn't exist, int result = KMessageBox::warningContinueCancel(kapp->mainWidget(), i18n("The directory %1 does not yet exist. " - "Do you want to create it?").tqarg(parent.prettyURL()), TQString(), + "Do you want to create it?").arg(parent.prettyURL()), TQString(), i18n("Create &Dir")); if (result != KMessageBox::Continue) return false; @@ -984,11 +984,11 @@ KioskRun::createRemoteDir(const KURL &dest) if (error.isEmpty()) msg = i18n("The directory %1 could not be created because of an unspecified problem.

") - .tqarg(dest.prettyURL()); + .arg(dest.prettyURL()); else msg = i18n("The directory %1 could not be created because of the following problem:" "

%2

") - .tqarg(dest.prettyURL(), NETACCESS::lastErrorString()); + .arg(dest.prettyURL(), NETACCESS::lastErrorString()); msg += i18n("Without this directory your files can not be uploaded.

" "Do you want to retry creating the directory or abort uploading?"); @@ -1034,11 +1034,11 @@ KioskRun::install(const TQString &file, const TQString &destination) TQString msg; if (error.isEmpty()) msg = i18n("The file %1 could not be installed because of an unspecified problem.") - .tqarg(destination); + .arg(destination); else msg = i18n("The file %1 could not be installed because of the following problem:" "

%2

") - .tqarg(destination, NETACCESS::lastErrorString()); + .arg(destination, NETACCESS::lastErrorString()); msg += i18n("Do you want to retry the installation or abort the saving of changes?"); @@ -1068,11 +1068,11 @@ KioskRun::uploadRemote(const TQString &file, const KURL &dest) TQString msg; if (error.isEmpty()) msg = i18n("The file %1 could not be uploaded to %2 because of an unspecified problem.") - .tqarg(file, dest.prettyURL()); + .arg(file, dest.prettyURL()); else msg = i18n("The file %1 could not be uploaded to %2 because of the following problem:" "

%3

") - .tqarg(file, dest.prettyURL(),NETACCESS::lastErrorString()); + .arg(file, dest.prettyURL(),NETACCESS::lastErrorString()); msg += i18n("Do you want to retry or abort the uploading?"); @@ -1156,7 +1156,7 @@ KioskRun::getProfileInfo(const TQString &profile, TQString &description, TQStrin tmp.replace("/", "_"); defaultInstallDir += tmp+"/"; - TQString group = TQString("Directories-%1").tqarg(profile); + TQString group = TQString("Directories-%1").arg(profile); config->setGroup(group); installDir = config->readEntry("prefixes", defaultInstallDir); @@ -1204,11 +1204,11 @@ KioskRun::openKderc() TQString msg; if (error.isEmpty()) msg = i18n("The file %1 could not be accessed because of an unspecified problem.") - .tqarg(settingsUrl.path()); + .arg(settingsUrl.path()); else msg = i18n("The file %1 could not be accessed because of the following problem:" "

%2

") - .tqarg(settingsUrl.path(), error); + .arg(settingsUrl.path(), error); msg += i18n("Do you want to retry the operation or abort the saving of changes?"); @@ -1274,7 +1274,7 @@ KioskRun::setProfileInfo(const TQString &profile, const TQString &description, c { int msgResult = KMessageBox::warningYesNoCancelList(kapp->mainWidget(), i18n("The profile directory %1 contains the following files, " - "do you wish to delete these files?").tqarg(installDir), + "do you wish to delete these files?").arg(installDir), allFiles, i18n("Deleting Profile"), #if KDE_IS_VERSION(3,2,91) @@ -1334,7 +1334,7 @@ KioskRun::setProfileInfo(const TQString &profile, const TQString &description, c config->setGroup("Directories"); TQString oldAdmin = config->readEntry("kioskAdmin"); - TQString group = TQString("Directories-%1").tqarg(profile); + TQString group = TQString("Directories-%1").arg(profile); config->setGroup(group); if ((installDir == config->readEntry("prefixes")) && @@ -1420,8 +1420,8 @@ KioskRun::newProfile() KConfig *config = kapp->config(); for(int p = 1; p; p++) { - TQString profile = TQString("profile%1").tqarg(p); - TQString group = TQString("Directories-%1").tqarg(profile); + TQString profile = TQString("profile%1").arg(p); + TQString group = TQString("Directories-%1").arg(profile); if (!config->hasGroup(group)) { if (profilePrefix.isEmpty()) @@ -1614,7 +1614,7 @@ KioskRun::setCustomRestrictionFileBrowsing(bool restrict) TQStringList urlRestrictions; for(int i = 0; i < count; i++) { - TQString key = TQString("rule_%1").tqarg(i+1); + TQString key = TQString("rule_%1").arg(i+1); if (cfg->hasKey(key)) urlRestrictions.append(cfg->readEntry(key)); } @@ -1640,7 +1640,7 @@ KioskRun::setCustomRestrictionFileBrowsing(bool restrict) for(int i = 0; i < count; i++) { - TQString key = TQString("rule_%1").tqarg(i+1); + TQString key = TQString("rule_%1").arg(i+1); cfg->writeEntry(key, urlRestrictions[i]); } KioskRun::self()->setConfigImmutable(file, group, true); diff --git a/kiosktool/kiosksync.cpp b/kiosktool/kiosksync.cpp index 4fc0b8c..3f20044 100644 --- a/kiosktool/kiosksync.cpp +++ b/kiosktool/kiosksync.cpp @@ -150,12 +150,12 @@ KioskSync::scanChangedFiles(const TQString &_dir, const TQString &prefix) TQDir dir(_dir); if (!dir.exists()) { - emit warning(i18n("Directory %1 does not exist.").tqarg(_dir)); + emit warning(i18n("Directory %1 does not exist.").arg(_dir)); return; } if (!dir.isReadable()) { - emit warning(i18n("Directory %1 is not readable.").tqarg(_dir)); + emit warning(i18n("Directory %1 is not readable.").arg(_dir)); return; } diff --git a/kiosktool/kiosktool-kdedirs.cpp b/kiosktool/kiosktool-kdedirs.cpp index 1dad173..f62ecd7 100644 --- a/kiosktool/kiosktool-kdedirs.cpp +++ b/kiosktool/kiosktool-kdedirs.cpp @@ -166,7 +166,7 @@ int main(int argc, char **argv) while(!profiles.isEmpty()) { TQString profile = profiles.back(); - config->setGroup(TQString::fromLatin1("Directories-%1").tqarg(profile)); + config->setGroup(TQString::fromLatin1("Directories-%1").arg(profile)); profiles.pop_back(); TQStringList list = config->readListEntry("prefixes"); for (TQStringList::ConstIterator it = list.begin(); it != list.end(); it++) diff --git a/kiosktool/mainview.ui b/kiosktool/mainview.ui index 006e84f..dc1ee41 100644 --- a/kiosktool/mainview.ui +++ b/kiosktool/mainview.ui @@ -84,7 +84,7 @@ Plain - + AlignCenter diff --git a/kiosktool/profilePropsPage.cpp b/kiosktool/profilePropsPage.cpp index 4396218..97ca85d 100644 --- a/kiosktool/profilePropsPage.cpp +++ b/kiosktool/profilePropsPage.cpp @@ -150,7 +150,7 @@ bool ProfilePropsPage::save() if (!userInfo.isValid()) { KMessageBox::sorry(this, - i18n("The user %1 is not an existing user.").tqarg(user)); + i18n("The user %1 is not an existing user.").arg(user)); comboUser->setFocus(); return false; } @@ -182,7 +182,7 @@ bool ProfilePropsPage::save() i18n("The directory for this profile has changed " "from %1 to %2.

" "The following files under %3 will be moved to %4") - .tqarg(m_origInstallDir, installDir, m_origInstallDir, installDir), + .arg(m_origInstallDir, installDir, m_origInstallDir, installDir), fileList, i18n("Profile Directory Changed")); if (msgResult != KMessageBox::Continue) diff --git a/kiosktool/userManagement.cpp b/kiosktool/userManagement.cpp index 7f2856a..a215571 100644 --- a/kiosktool/userManagement.cpp +++ b/kiosktool/userManagement.cpp @@ -82,7 +82,7 @@ void UserManagementPage::slotShowNotice() "If you want to use these profiles in combination with older versions you need " "to manually set the $KDEDIRS environment variable from the startkde " "script by adding the following line:

" - "export KDEDIRS=$(kiosktool-kdedirs)

").tqarg(AVAILABLE_SINCE), + "export KDEDIRS=$(kiosktool-kdedirs)

").arg(AVAILABLE_SINCE), i18n("Attention"), "user-profiles"); } @@ -193,7 +193,7 @@ void UserManagementPage::slotAddGroup() { int result = KMessageBox::warningContinueCancel(this, i18n("You already have a profile defined for group %1. " - "Do you want to replace it?").tqarg(group), + "Do you want to replace it?").arg(group), i18n("Duplicate Warning"), i18n("&Replace")); if (result != KMessageBox::Continue) @@ -264,7 +264,7 @@ void UserManagementPage::slotAddUser() { int result = KMessageBox::warningContinueCancel(this, i18n("You already have a profile defined for user %1. " - "Do you want to replace it?").tqarg(user), + "Do you want to replace it?").arg(user), i18n("Duplicate Warning"), i18n("&Replace")); if (result != KMessageBox::Continue) -- cgit v1.2.3