summaryrefslogtreecommitdiffstats
path: root/karm/preferences.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:34:45 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:34:45 -0600
commit0e00c0a86a4c9d7e80c7b66d91940cc7dcb79f78 (patch)
tree4138783f7dad757fc5fbfaa8d66a355288d3125e /karm/preferences.cpp
parent9cc13dcbb01a96c9e60a07ca63c61d24b374f50d (diff)
downloadtdepim-0e00c0a86a4c9d7e80c7b66d91940cc7dcb79f78.tar.gz
tdepim-0e00c0a86a4c9d7e80c7b66d91940cc7dcb79f78.zip
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'karm/preferences.cpp')
-rw-r--r--karm/preferences.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/karm/preferences.cpp b/karm/preferences.cpp
index 24a5e8c41..e187599fa 100644
--- a/karm/preferences.cpp
+++ b/karm/preferences.cpp
@@ -121,7 +121,7 @@ void Preferences::makeStoragePage()
// iCalendar
TQLabel* _iCalFileLabel = new TQLabel( i18n("iCalendar file:"), storagePage);
_iCalFileW = new KURLRequester(storagePage, "_iCalFileW");
- _iCalFileW->setFilter(TQString::tqfromLatin1("*.ics"));
+ _iCalFileW->setFilter(TQString::fromLatin1("*.ics"));
_iCalFileW->setMode(KFile::File);
// Log time?
@@ -253,32 +253,32 @@ void Preferences::load()
{
KConfig &config = *kapp->config();
- config.setGroup( TQString::tqfromLatin1("Idle detection") );
- _doIdleDetectionV = config.readBoolEntry( TQString::tqfromLatin1("enabled"),
+ config.setGroup( TQString::fromLatin1("Idle detection") );
+ _doIdleDetectionV = config.readBoolEntry( TQString::fromLatin1("enabled"),
true );
- _idleDetectValueV = config.readNumEntry(TQString::tqfromLatin1("period"), 15);
+ _idleDetectValueV = config.readNumEntry(TQString::fromLatin1("period"), 15);
- config.setGroup( TQString::tqfromLatin1("Saving") );
+ config.setGroup( TQString::fromLatin1("Saving") );
_iCalFileV = config.readPathEntry
- ( TQString::tqfromLatin1("ical file"),
- locateLocal( "appdata", TQString::tqfromLatin1( "karm.ics")));
+ ( TQString::fromLatin1("ical file"),
+ locateLocal( "appdata", TQString::fromLatin1( "karm.ics")));
_doAutoSaveV = config.readBoolEntry
- ( TQString::tqfromLatin1("auto save"), true);
+ ( TQString::fromLatin1("auto save"), true);
_autoSaveValueV = config.readNumEntry
- ( TQString::tqfromLatin1("auto save period"), 5);
+ ( TQString::fromLatin1("auto save period"), 5);
_promptDeleteV = config.readBoolEntry
- ( TQString::tqfromLatin1("prompt delete"), true);
+ ( TQString::fromLatin1("prompt delete"), true);
_loggingV = config.readBoolEntry
- ( TQString::tqfromLatin1("logging"), true);
+ ( TQString::fromLatin1("logging"), true);
_displayColumnV[0] = config.readBoolEntry
- ( TQString::tqfromLatin1("display session time"), true);
+ ( TQString::fromLatin1("display session time"), true);
_displayColumnV[1] = config.readBoolEntry
- ( TQString::tqfromLatin1("display time"), true);
+ ( TQString::fromLatin1("display time"), true);
_displayColumnV[2] = config.readBoolEntry
- ( TQString::tqfromLatin1("display total session time"), true);
+ ( TQString::fromLatin1("display total session time"), true);
_displayColumnV[3] = config.readBoolEntry
- ( TQString::tqfromLatin1("display total time"), true);
+ ( TQString::fromLatin1("display total time"), true);
KEMailSettings settings;
_userRealName = settings.getSetting( KEMailSettings::RealName );
@@ -288,24 +288,24 @@ void Preferences::save()
{
KConfig &config = *KGlobal::config();
- config.setGroup( TQString::tqfromLatin1("Idle detection"));
- config.writeEntry( TQString::tqfromLatin1("enabled"), _doIdleDetectionV);
- config.writeEntry( TQString::tqfromLatin1("period"), _idleDetectValueV);
+ config.setGroup( TQString::fromLatin1("Idle detection"));
+ config.writeEntry( TQString::fromLatin1("enabled"), _doIdleDetectionV);
+ config.writeEntry( TQString::fromLatin1("period"), _idleDetectValueV);
- config.setGroup( TQString::tqfromLatin1("Saving"));
- config.writePathEntry( TQString::tqfromLatin1("ical file"), _iCalFileV);
- config.writeEntry( TQString::tqfromLatin1("auto save"), _doAutoSaveV);
- config.writeEntry( TQString::tqfromLatin1("logging"), _loggingV);
- config.writeEntry( TQString::tqfromLatin1("auto save period"), _autoSaveValueV);
- config.writeEntry( TQString::tqfromLatin1("prompt delete"), _promptDeleteV);
+ config.setGroup( TQString::fromLatin1("Saving"));
+ config.writePathEntry( TQString::fromLatin1("ical file"), _iCalFileV);
+ config.writeEntry( TQString::fromLatin1("auto save"), _doAutoSaveV);
+ config.writeEntry( TQString::fromLatin1("logging"), _loggingV);
+ config.writeEntry( TQString::fromLatin1("auto save period"), _autoSaveValueV);
+ config.writeEntry( TQString::fromLatin1("prompt delete"), _promptDeleteV);
- config.writeEntry( TQString::tqfromLatin1("display session time"),
+ config.writeEntry( TQString::fromLatin1("display session time"),
_displayColumnV[0]);
- config.writeEntry( TQString::tqfromLatin1("display time"),
+ config.writeEntry( TQString::fromLatin1("display time"),
_displayColumnV[1]);
- config.writeEntry( TQString::tqfromLatin1("display total session time"),
+ config.writeEntry( TQString::fromLatin1("display total session time"),
_displayColumnV[2]);
- config.writeEntry( TQString::tqfromLatin1("display total time"),
+ config.writeEntry( TQString::fromLatin1("display total time"),
_displayColumnV[3]);
config.sync();