summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/kopeteprefs.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
commit69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch)
tree073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /kopete/libkopete/kopeteprefs.cpp
parent3467e6464beac3a162839bf7078e22e3a74d73e7 (diff)
downloadtdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz
tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/libkopete/kopeteprefs.cpp')
-rw-r--r--kopete/libkopete/kopeteprefs.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/kopete/libkopete/kopeteprefs.cpp b/kopete/libkopete/kopeteprefs.cpp
index 6e9072d0..c9805f9a 100644
--- a/kopete/libkopete/kopeteprefs.cpp
+++ b/kopete/libkopete/kopeteprefs.cpp
@@ -90,7 +90,7 @@ void KopetePrefs::load()
mBgOverride = config->readBoolEntry("ChatView Override Background", false);
mFgOverride = config->readBoolEntry("ChatView Override Foreground", false);
mRtfOverride = config->readBoolEntry("ChatView Override RTF", false);
- mInterfacePreference = config->readEntry("View Plugin", TQString::fromLatin1("kopete_chatwindow") );
+ mInterfacePreference = config->readEntry("View Plugin", TQString::tqfromLatin1("kopete_chatwindow") );
tmpColor = KGlobalSettings::textColor();
mTextColor = config->readColorEntry("Text Color", &tmpColor );
tmpColor = KGlobalSettings::baseColor();
@@ -112,29 +112,29 @@ void KopetePrefs::load()
if(mToolTipContents.empty())
{
mToolTipContents
- << TQString::fromLatin1("FormattedName")
- << TQString::fromLatin1("userInfo")
- << TQString::fromLatin1("server")
- << TQString::fromLatin1("channels")
- << TQString::fromLatin1("FormattedIdleTime")
- << TQString::fromLatin1("channelMembers")
- << TQString::fromLatin1("channelTopic")
- << TQString::fromLatin1("emailAddress")
- << TQString::fromLatin1("homePage")
- << TQString::fromLatin1("onlineSince")
- << TQString::fromLatin1("lastOnline")
- << TQString::fromLatin1("awayMessage");
+ << TQString::tqfromLatin1("FormattedName")
+ << TQString::tqfromLatin1("userInfo")
+ << TQString::tqfromLatin1("server")
+ << TQString::tqfromLatin1("channels")
+ << TQString::tqfromLatin1("FormattedIdleTime")
+ << TQString::tqfromLatin1("channelMembers")
+ << TQString::tqfromLatin1("channelTopic")
+ << TQString::tqfromLatin1("emailAddress")
+ << TQString::tqfromLatin1("homePage")
+ << TQString::tqfromLatin1("onlineSince")
+ << TQString::tqfromLatin1("lastOnline")
+ << TQString::tqfromLatin1("awayMessage");
}
config->setGroup("ContactList");
setThemeURL(config->readEntry("ThemeURL"));
- int n = metaObject()->findProperty( "contactListDisplayMode" );
- TQString value = config->readEntry("DisplayMode",TQString::fromLatin1("Default"));
- mContactListDisplayMode = (ContactDisplayMode)metaObject()->property( n )->keyToValue( value.latin1() );
- n = metaObject()->findProperty( "contactListIconMode" );
+ int n = tqmetaObject()->tqfindProperty( "contactListDisplayMode" );
+ TQString value = config->readEntry("DisplayMode",TQString::tqfromLatin1("Default"));
+ mContactListDisplayMode = (ContactDisplayMode)tqmetaObject()->property( n )->keyToValue( value.latin1() );
+ n = tqmetaObject()->tqfindProperty( "contactListIconMode" );
value = config->readEntry("IconMode",
- TQString::fromLatin1("IconDefault"));
- mContactListIconMode = (IconDisplayMode) metaObject()->property( n )->keyToValue( value.latin1() );
+ TQString::tqfromLatin1("IconDefault"));
+ mContactListIconMode = (IconDisplayMode) tqmetaObject()->property( n )->keyToValue( value.latin1() );
mContactListIndentContacts = config->readBoolEntry("IndentContacts", false);
mContactListUseCustomFonts = config->readBoolEntry("UseCustomFonts", false);
TQFont font = KGlobalSettings::generalFont();
@@ -229,10 +229,10 @@ void KopetePrefs::save()
config->setGroup("ContactList");
config->writeEntry("ThemeURL", mThemeURL);
- int n = metaObject()->findProperty( "contactListDisplayMode" );
- config->writeEntry("DisplayMode", metaObject()->property( n )->valueToKey( mContactListDisplayMode ));
- n = metaObject()->findProperty( "contactListIconMode" );
- config->writeEntry("IconMode", metaObject()->property( n )->valueToKey( mContactListIconMode ));
+ int n = tqmetaObject()->tqfindProperty( "contactListDisplayMode" );
+ config->writeEntry("DisplayMode", tqmetaObject()->property( n )->valueToKey( mContactListDisplayMode ));
+ n = tqmetaObject()->tqfindProperty( "contactListIconMode" );
+ config->writeEntry("IconMode", tqmetaObject()->property( n )->valueToKey( mContactListIconMode ));
config->writeEntry("IndentContacts", mContactListIndentContacts);
config->writeEntry("UseCustomFonts", mContactListUseCustomFonts);
config->writeEntry("GroupFont", mContactListGroupFont);
@@ -439,7 +439,7 @@ void KopetePrefs::_setStylePath(const TQString &stylePath)
if( !TQFile::exists(stylePath) || stylePath.isEmpty() )
{
TQString fallback;
- fallback = TQString(TQString::fromLatin1("styles/%1/")).arg(TQString::fromLatin1(KOPETE_DEFAULT_CHATSTYLE));
+ fallback = TQString(TQString::tqfromLatin1("styles/%1/")).tqarg(TQString::tqfromLatin1(KOPETE_DEFAULT_CHATSTYLE));
mStylePath = locate("appdata", fallback);
}
}