Rename a number of old tq methods that are no longer tq specific

pull/1/head
Timothy Pearson 13 years ago
parent db44472ee6
commit f97153cfb2

@ -22,8 +22,8 @@
#include <tqcursor.h>
#include <tqfileinfo.h>
#include <tqlabel.h>
#include <tqstylesheet.h>
#include <tqtextedit.h>
#include <stylesheet.h>
#include <textedit.h>
#include <tqpushbutton.h>
#include <dcopref.h>
@ -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("<qt>You can now configure %1. "
"When you are finished click <b>Save</b> 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("<qt>This is how %1 will behave and look with the new settings. "
"Any changes you now make to the settings will not be saved.<p>"
"Click <b>Ok</b> 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");

@ -23,13 +23,13 @@
<property name="name">
<cstring>componentDescription</cstring>
</property>
<property name="tqminimumSize">
<property name="minimumSize">
<size>
<width>0</width>
<height>140</height>
</size>
</property>
<property name="tqmaximumSize">
<property name="maximumSize">
<size>
<width>32767</width>
<height>140</height>
@ -41,7 +41,7 @@
<property name="frameShadow">
<enum>Sunken</enum>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignTop</set>
</property>
</widget>
@ -55,7 +55,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>16</height>
@ -64,7 +64,7 @@
</spacer>
<widget class="TQLayoutWidget" row="1" column="3">
<property name="name">
<cstring>tqlayout1</cstring>
<cstring>layout1</cstring>
</property>
<vbox>
<property name="name">
@ -88,7 +88,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>16</height>
@ -113,7 +113,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>21</width>
<height>171</height>
@ -132,7 +132,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>16</width>
<height>20</height>
@ -162,7 +162,7 @@
<verstretch>1</verstretch>
</sizepolicy>
</property>
<property name="tqminimumSize">
<property name="minimumSize">
<size>
<width>300</width>
<height>150</height>

@ -29,7 +29,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@ -46,7 +46,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@ -55,7 +55,7 @@
</spacer>
<widget class="TQLayoutWidget" row="1" column="3">
<property name="name">
<cstring>tqlayout1</cstring>
<cstring>layout1</cstring>
</property>
<vbox>
<property name="name">
@ -79,7 +79,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>211</height>
@ -100,7 +100,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="tqminimumSize">
<property name="minimumSize">
<size>
<width>400</width>
<height>200</height>

@ -18,7 +18,7 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
#include <tqlayout.h>
#include <layout.h>
#include <tqwhatsthis.h>
#include <tqvgroupbox.h>
#include <tqpushbutton.h>
@ -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)
@ -106,7 +106,7 @@ void AutoStartConfig::setAutoloadEnabled(KConfig *config, const TQString &filena
void AutoStartConfig::load() {
_lvStartup->clear();
TQStringList files = KGlobal::dirs()->findAllResources( "autostart", TQString::tqfromLatin1( "*.desktop" ), false, true );
TQStringList files = KGlobal::dirs()->findAllResources( "autostart", TQString::fromLatin1( "*.desktop" ), false, true );
for ( TQStringList::ConstIterator it = files.begin(); it != files.end(); it++ )
{

@ -20,7 +20,7 @@
#include "kioskConfigDialog.h"
#include <tqcheckbox.h>
#include <tqtextedit.h>
#include <textedit.h>
#include <kapplication.h>
#include <kconfig.h>
@ -113,7 +113,7 @@ void KioskConfigDialog::updateExample()
if (!url.endsWith("/"))
url += "/";
url += file2;
TQString example = TQString("<qt><center><b>%1</b><br>--><br><b>%2</b></center>").tqarg(file1, url);
TQString example = TQString("<qt><center><b>%1</b><br>--><br><b>%2</b></center>").arg(file1, url);
w->lblUploadExample->setText(example);
w->lblUploadExample->setFixedSize(TQSize(500,fontMetrics().lineSpacing()*3 + 6));
}

@ -26,7 +26,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout3</cstring>
<cstring>layout3</cstring>
</property>
<hbox>
<property name="name">
@ -42,7 +42,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@ -51,7 +51,7 @@
</spacer>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout2</cstring>
<cstring>layout2</cstring>
</property>
<vbox>
<property name="name">
@ -90,7 +90,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout8</cstring>
<cstring>layout8</cstring>
</property>
<hbox>
<property name="name">
@ -106,7 +106,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>16</width>
<height>20</height>
@ -115,7 +115,7 @@
</spacer>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout7</cstring>
<cstring>layout7</cstring>
</property>
<vbox>
<property name="name">
@ -179,7 +179,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="tqminimumSize">
<property name="minimumSize">
<size>
<width>500</width>
<height>10</height>
@ -215,7 +215,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout6</cstring>
<cstring>layout6</cstring>
</property>
<hbox>
<property name="name">
@ -231,7 +231,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@ -259,7 +259,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>60</width>
<height>20</height>
@ -278,7 +278,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>

@ -51,7 +51,7 @@ static TQDict<TQString> *readStdActionCaptions()
TQString caption = action->text();
caption.replace("&","");
captions->insert(TQString::tqfromLatin1(action->name()), new TQString(caption));
captions->insert(TQString::fromLatin1(action->name()), new TQString(caption));
}
return captions;
}
@ -267,7 +267,7 @@ bool KioskData::load()
TQFile file( filename );
if ( !file.open( IO_ReadOnly ) )
{
m_errorMsg = i18n("<qt>Could not open <b>%1</b></qt>").tqarg(filename);
m_errorMsg = i18n("<qt>Could not open <b>%1</b></qt>").arg(filename);
return false;
}
@ -276,7 +276,7 @@ bool KioskData::load()
int errorCol;
if ( !doc.setContent( &file, &errorMsg, &errorRow, &errorCol ) )
{
m_errorMsg = i18n("<qt>Syntax error in <b>%1</b><br>Line %3, column %4: %2</qt>").tqarg(filename, errorMsg).tqarg(errorRow).tqarg(errorCol);
m_errorMsg = i18n("<qt>Syntax error in <b>%1</b><br>Line %3, column %4: %2</qt>").arg(filename, errorMsg).arg(errorRow).arg(errorCol);
file.close();
return false;
}

@ -126,7 +126,7 @@ void KioskGui::slotCheckEtcSkel()
"<b>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.</b><p>"
"The following files were found under <b>%2</b>:").tqarg(etcSkel).tqarg(etcSkel),
"The following files were found under <b>%2</b>:").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("<qt>You are about to delete the profile <b>%1</b>.<p>"
"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("<qt>Do you want to upload the profiles to <b>%1</b> ?</qt>").tqarg(uploadUrl.prettyURL()));
i18n("<qt>Do you want to upload the profiles to <b>%1</b> ?</qt>").arg(uploadUrl.prettyURL()));
if (result == KMessageBox::Yes)
{
uploadAllProfiles();
@ -681,7 +681,7 @@ void KioskGui::uploadAllProfiles()
if (sync.sync())
{
KMessageBox::information(this, i18n("<qt>All profiles have been successfully uploaded to <b>%1</b>").tqarg(uploadURL));
KMessageBox::information(this, i18n("<qt>All profiles have been successfully uploaded to <b>%1</b>").arg(uploadURL));
}
}

@ -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
@ -338,7 +338,7 @@ KioskRun::shutdownConfigEnv()
m_instance = 0;
}
class ImmutabletqStatus
class ImmutableStatus
{
public:
bool m_fileScope;
@ -352,7 +352,7 @@ bool
KioskRun::isConfigImmutable(const TQString &filename, const TQString &group)
{
(void) configFile(filename);
ImmutabletqStatus *status = m_immutableStatusCache.find(filename);
ImmutableStatus *status = m_immutableStatusCache.find(filename);
assert(status);
if (group.isEmpty())
return status->m_fileScope;
@ -364,7 +364,7 @@ void
KioskRun::setConfigImmutable(const TQString &filename, const TQString &_group, bool bImmutable)
{
(void) configFile(filename);
ImmutabletqStatus *status = m_immutableStatusCache.find(filename);
ImmutableStatus *status = m_immutableStatusCache.find(filename);
assert(status);
if (_group.isEmpty())
{
@ -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)
@ -412,9 +412,9 @@ static void addImmutable(TQString &ext)
}
TQString
KioskRun::saveImmutabletqStatus(const TQString &filename)
KioskRun::saveImmutableStatus(const TQString &filename)
{
ImmutabletqStatus *status = new ImmutabletqStatus;
ImmutableStatus *status = new ImmutableStatus;
status->m_fileScope = false;
status->m_dirty = false;
m_immutableStatusCache.insert(filename, status);
@ -505,21 +505,21 @@ KioskRun::saveImmutabletqStatus(const TQString &filename)
}
bool
KioskRun::restoreImmutabletqStatus(const TQString &filename, bool force)
KioskRun::restoreImmutableStatus(const TQString &filename, bool force)
{
ImmutabletqStatus *status = m_immutableStatusCache.take(filename);
ImmutableStatus *status = m_immutableStatusCache.take(filename);
if (!status)
{
kdDebug() << "KioskRun::restoreImmutabletqStatus(" << filename << ") status info missing" << endl;
kdDebug() << "KioskRun::restoreImmutableStatus(" << filename << ") status info missing" << endl;
return true;
}
if (!force && !status->m_dirty)
{
kdDebug() << "KioskRun::restoreImmutabletqStatus(" << filename << ") not changed" << endl;
kdDebug() << "KioskRun::restoreImmutableStatus(" << filename << ") not changed" << endl;
delete status;
return true;
}
kdDebug() << "KioskRun::restoreImmutabletqStatus(" << filename << ") restoring" << endl;
kdDebug() << "KioskRun::restoreImmutableStatus(" << filename << ") restoring" << endl;
TQString path = status->m_tmpFile;
@ -625,7 +625,7 @@ KioskRun::flushConfigCache()
KConfig *config = it.current();
bool dirty = config->isDirty();
config->sync(); // Save
if (!restoreImmutabletqStatus(file, dirty))
if (!restoreImmutableStatus(file, dirty))
return false;
m_saveConfigCache.remove(file);
}
@ -646,7 +646,7 @@ KioskRun::configFile(const TQString &filename)
setupConfigEnv();
TQString saveLocation = saveImmutabletqStatus(filename);
TQString saveLocation = saveImmutableStatus(filename);
config = new KSimpleConfig(saveLocation);
m_saveConfigCache.insert(filename, config);
@ -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("<qt>The directory <b>%1</b> could not be created because of an unspecified problem.<p>")
.tqarg(dir);
.arg(dir);
else
msg = i18n("<qt>The directory <b>%1</b> could not be created because of the following problem:"
"<p>%2<p>")
.tqarg(dir, NETACCESS::lastErrorString());
.arg(dir, NETACCESS::lastErrorString());
msg += i18n("Without this directory your changes can not be saved.<p>"
"Do you want to retry creating the directory or abort the saving of changes?</qt>");
@ -944,7 +944,7 @@ KioskRun::createRemoteDirRecursive(const KURL &dest, bool ask)
// Parent doesn't exist,
int result = KMessageBox::warningContinueCancel(kapp->mainWidget(),
i18n("<qt>The directory <b>%1</b> 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("<qt>The directory <b>%1</b> could not be created because of an unspecified problem.<p>")
.tqarg(dest.prettyURL());
.arg(dest.prettyURL());
else
msg = i18n("<qt>The directory <b>%1</b> could not be created because of the following problem:"
"<p>%2<p>")
.tqarg(dest.prettyURL(), NETACCESS::lastErrorString());
.arg(dest.prettyURL(), NETACCESS::lastErrorString());
msg += i18n("Without this directory your files can not be uploaded.<p>"
"Do you want to retry creating the directory or abort uploading?</qt>");
@ -1034,11 +1034,11 @@ KioskRun::install(const TQString &file, const TQString &destination)
TQString msg;
if (error.isEmpty())
msg = i18n("<qt>The file <b>%1</b> could not be installed because of an unspecified problem.")
.tqarg(destination);
.arg(destination);
else
msg = i18n("<qt>The file <b>%1</b> could not be installed because of the following problem:"
"<p>%2<p>")
.tqarg(destination, NETACCESS::lastErrorString());
.arg(destination, NETACCESS::lastErrorString());
msg += i18n("Do you want to retry the installation or abort the saving of changes?</qt>");
@ -1068,11 +1068,11 @@ KioskRun::uploadRemote(const TQString &file, const KURL &dest)
TQString msg;
if (error.isEmpty())
msg = i18n("<qt>The file <b>%1</b> could not be uploaded to <b>%2</b> because of an unspecified problem.")
.tqarg(file, dest.prettyURL());
.arg(file, dest.prettyURL());
else
msg = i18n("<qt>The file <b>%1</b> could not be uploaded to <b>%2</b> because of the following problem:"
"<p>%3<p>")
.tqarg(file, dest.prettyURL(),NETACCESS::lastErrorString());
.arg(file, dest.prettyURL(),NETACCESS::lastErrorString());
msg += i18n("Do you want to retry or abort the uploading?</qt>");
@ -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("<qt>The file <b>%1</b> could not be accessed because of an unspecified problem.")
.tqarg(settingsUrl.path());
.arg(settingsUrl.path());
else
msg = i18n("<qt>The file <b>%1</b> could not be accessed because of the following problem:"
"<p>%2<p>")
.tqarg(settingsUrl.path(), error);
.arg(settingsUrl.path(), error);
msg += i18n("Do you want to retry the operation or abort the saving of changes?</qt>");
@ -1274,7 +1274,7 @@ KioskRun::setProfileInfo(const TQString &profile, const TQString &description, c
{
int msgResult = KMessageBox::warningYesNoCancelList(kapp->mainWidget(),
i18n("<qt>The profile directory <b>%1</b> 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);

@ -30,7 +30,7 @@
#include <kprogress.h>
class ImmutabletqStatus;
class ImmutableStatus;
class KConfig;
class KProcess;
class KSimpleConfig;
@ -182,8 +182,8 @@ protected:
void shutdownConfigEnv();
void applyEnvironment(KProcess *p);
TQString saveImmutabletqStatus(const TQString &filename);
bool restoreImmutabletqStatus(const TQString &filename, bool force);
TQString saveImmutableStatus(const TQString &filename);
bool restoreImmutableStatus(const TQString &filename, bool force);
void setCustomRestrictionFileBrowsing(bool restrict);
@ -200,7 +200,7 @@ private:
KInstance *m_instance;
KInstance *m_saveInstance;
TQDict<KConfig> m_saveConfigCache;
TQDict<ImmutabletqStatus> m_immutableStatusCache;
TQDict<ImmutableStatus> m_immutableStatusCache;
bool m_noRestrictions;
bool m_forceSycocaUpdate;
bool m_isRoot;

@ -150,12 +150,12 @@ KioskSync::scanChangedFiles(const TQString &_dir, const TQString &prefix)
TQDir dir(_dir);
if (!dir.exists())
{
emit warning(i18n("Directory <b>%1</b> does not exist.").tqarg(_dir));
emit warning(i18n("Directory <b>%1</b> does not exist.").arg(_dir));
return;
}
if (!dir.isReadable())
{
emit warning(i18n("Directory <b>%1</b> is not readable.").tqarg(_dir));
emit warning(i18n("Directory <b>%1</b> is not readable.").arg(_dir));
return;
}

@ -166,7 +166,7 @@ int main(int argc, char **argv)
while(!profiles.isEmpty())
{
TQString profile = profiles.back();
config->setGroup(TQString::tqfromLatin1("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++)

@ -31,7 +31,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="tqminimumSize">
<property name="minimumSize">
<size>
<width>0</width>
<height>70</height>
@ -56,7 +56,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="tqminimumSize">
<property name="minimumSize">
<size>
<width>160</width>
<height>170</height>
@ -84,7 +84,7 @@
<property name="frameShadow">
<enum>Plain</enum>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignCenter</set>
</property>
</widget>
@ -98,7 +98,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>25</width>
<height>20</height>
@ -115,7 +115,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>25</width>
<height>20</height>
@ -124,7 +124,7 @@
</spacer>
<widget class="TQLayoutWidget" row="2" column="1" rowspan="1" colspan="3">
<property name="name">
<cstring>tqlayout4</cstring>
<cstring>layout4</cstring>
</property>
<vbox>
<property name="name">
@ -191,7 +191,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@ -216,7 +216,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@ -245,7 +245,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>160</width>
<height>20</height>

@ -150,7 +150,7 @@ bool ProfilePropsPage::save()
if (!userInfo.isValid())
{
KMessageBox::sorry(this,
i18n("<qt>The user <b>%1</b> is not an existing user.</qt>").tqarg(user));
i18n("<qt>The user <b>%1</b> is not an existing user.</qt>").arg(user));
comboUser->setFocus();
return false;
}
@ -182,7 +182,7 @@ bool ProfilePropsPage::save()
i18n("<qt>The directory for this profile has changed "
"from <b>%1</b> to <b>%2</b>.<p>"
"The following files under <b>%3</b> will be moved to <b>%4</b>")
.tqarg(m_origInstallDir, installDir, m_origInstallDir, installDir),
.arg(m_origInstallDir, installDir, m_origInstallDir, installDir),
fileList,
i18n("Profile Directory Changed"));
if (msgResult != KMessageBox::Continue)

@ -29,7 +29,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>16</width>
<height>20</height>
@ -46,7 +46,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>60</width>
<height>20</height>
@ -88,7 +88,7 @@
<property name="name">
<cstring>editProfileName</cstring>
</property>
<property name="tqminimumSize">
<property name="minimumSize">
<size>
<width>400</width>
<height>0</height>
@ -105,7 +105,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@ -130,7 +130,7 @@
<property name="name">
<cstring>editDescription</cstring>
</property>
<property name="tqminimumSize">
<property name="minimumSize">
<size>
<width>400</width>
<height>0</height>
@ -147,7 +147,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@ -183,7 +183,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@ -208,7 +208,7 @@
<property name="name">
<cstring>kurlInstallDir</cstring>
</property>
<property name="tqminimumSize">
<property name="minimumSize">
<size>
<width>400</width>
<height>0</height>
@ -235,7 +235,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>30</height>

@ -32,7 +32,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@ -73,7 +73,7 @@
<verstretch>1</verstretch>
</sizepolicy>
</property>
<property name="tqminimumSize">
<property name="minimumSize">
<size>
<width>300</width>
<height>220</height>
@ -99,7 +99,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@ -108,7 +108,7 @@
</spacer>
<widget class="TQLayoutWidget" row="2" column="3" rowspan="2" colspan="1">
<property name="name">
<cstring>tqlayout3</cstring>
<cstring>layout3</cstring>
</property>
<vbox>
<property name="name">
@ -132,7 +132,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>10</height>
@ -157,7 +157,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>10</height>
@ -182,7 +182,7 @@
<property name="sizeType">
<enum>MinimumExpanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>40</height>
@ -207,7 +207,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>10</height>

@ -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 $TDEDIRS environment variable from the <b>starttde</b> "
"script by adding the following line:<br><br>"
"<i>export TDEDIRS=$(kiosktool-tdedirs)</i><br><br>").tqarg(AVAILABLE_SINCE),
"<i>export TDEDIRS=$(kiosktool-tdedirs)</i><br><br>").arg(AVAILABLE_SINCE),
i18n("Attention"), "user-profiles");
}
@ -171,12 +171,12 @@ void UserManagementPage::slotAddGroup()
KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true );
UserManagementGroupUI *wid = new UserManagementGroupUI(&dlg);
wid->labelCaption->setFixedSize(wid->labelCaption->tqsizeHint());
wid->labelCaption->setFixedSize(wid->labelCaption->sizeHint());
wid->comboGroup->insertStringList(m_allGroups);
wid->comboProfile->insertStringList(m_allProfiles);
wid->setFixedSize(wid->tqsizeHint());
wid->setFixedSize(wid->sizeHint());
dlg.setMainWidget(wid);
dlg.setFixedSize(dlg.tqsizeHint());
dlg.setFixedSize(dlg.sizeHint());
while (dlg.exec() == KDialogBase::Accepted)
{
TQString group = wid->comboGroup->currentText();
@ -193,7 +193,7 @@ void UserManagementPage::slotAddGroup()
{
int result = KMessageBox::warningContinueCancel(this,
i18n("<qt>You already have a profile defined for group <b>%1</b>. "
"Do you want to replace it?</qt>").tqarg(group),
"Do you want to replace it?</qt>").arg(group),
i18n("Duplicate Warning"),
i18n("&Replace"));
if (result != KMessageBox::Continue)
@ -242,12 +242,12 @@ void UserManagementPage::slotAddUser()
KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true );
UserManagementUserUI *wid = new UserManagementUserUI(&dlg);
wid->labelCaption->setFixedSize(wid->labelCaption->tqsizeHint());
wid->labelCaption->setFixedSize(wid->labelCaption->sizeHint());
wid->comboUser->insertStringList(m_allUsers);
wid->comboProfile->insertStringList(m_allProfiles);
wid->setFixedSize(wid->tqsizeHint());
wid->setFixedSize(wid->sizeHint());
dlg.setMainWidget(wid);
dlg.setFixedSize(dlg.tqsizeHint());
dlg.setFixedSize(dlg.sizeHint());
while (dlg.exec() == KDialogBase::Accepted)
{
TQString user = wid->comboUser->currentText();
@ -264,7 +264,7 @@ void UserManagementPage::slotAddUser()
{
int result = KMessageBox::warningContinueCancel(this,
i18n("<qt>You already have a profile defined for user <b>%1</b>. "
"Do you want to replace it?</<qt>").tqarg(user),
"Do you want to replace it?</<qt>").arg(user),
i18n("Duplicate Warning"),
i18n("&Replace"));
if (result != KMessageBox::Continue)

@ -34,7 +34,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>10</height>
@ -43,7 +43,7 @@
</spacer>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout2</cstring>
<cstring>layout2</cstring>
</property>
<hbox>
<property name="name">
@ -72,7 +72,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@ -102,7 +102,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>51</width>
<height>20</height>

@ -34,7 +34,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>10</height>
@ -43,7 +43,7 @@
</spacer>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout2</cstring>
<cstring>layout2</cstring>
</property>
<hbox>
<property name="name">
@ -72,7 +72,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@ -102,7 +102,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>51</width>
<height>20</height>

@ -31,7 +31,7 @@
<property name="name">
<cstring>textLabel1</cstring>
</property>
<property name="tqminimumSize">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
@ -91,7 +91,7 @@
<property name="name">
<cstring>listGroups</cstring>
</property>
<property name="tqminimumSize">
<property name="minimumSize">
<size>
<width>350</width>
<height>0</height>
@ -106,7 +106,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout1</cstring>
<cstring>layout1</cstring>
</property>
<vbox>
<property name="name">
@ -130,7 +130,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@ -155,7 +155,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>31</height>
@ -212,7 +212,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout1_2</cstring>
<cstring>layout1_2</cstring>
</property>
<vbox>
<property name="name">
@ -236,7 +236,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@ -261,7 +261,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>31</height>

Loading…
Cancel
Save