summaryrefslogtreecommitdiffstats
path: root/ksirc/ksopts.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /ksirc/ksopts.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksirc/ksopts.cpp')
-rw-r--r--ksirc/ksopts.cpp74
1 files changed, 37 insertions, 37 deletions
diff --git a/ksirc/ksopts.cpp b/ksirc/ksopts.cpp
index 11b25ad8..b1df2f40 100644
--- a/ksirc/ksopts.cpp
+++ b/ksirc/ksopts.cpp
@@ -41,10 +41,10 @@ KSOGeneral::KSOGeneral()
}
-QPixmap KSOGeneral::backgroundPixmap()
+TQPixmap KSOGeneral::backgroundPixmap()
{
if ( m_backgroundPixmap.isNull() && !backgroundFile.isEmpty() )
- m_backgroundPixmap = QPixmap( backgroundFile );
+ m_backgroundPixmap = TQPixmap( backgroundFile );
return m_backgroundPixmap;
}
@@ -63,9 +63,9 @@ KSOServer::KSOServer()
struct passwd *pw = getpwuid( getuid() );
if ( pw )
{
- nick = QString::fromLocal8Bit( pw->pw_name );
- userID = QString::fromLocal8Bit( pw->pw_name );
- realName = QString::fromLocal8Bit( pw->pw_gecos ).section( ',', 0, 0 );
+ nick = TQString::fromLocal8Bit( pw->pw_name );
+ userID = TQString::fromLocal8Bit( pw->pw_name );
+ realName = TQString::fromLocal8Bit( pw->pw_gecos ).section( ',', 0, 0 );
}
#endif
}
@@ -89,24 +89,24 @@ KSOColors::KSOColors()
msg1Regex = false;
msg2Regex = false;
- backgroundColor = kapp->palette().color( QPalette::Active, QColorGroup::Mid );
- selBackgroundColor = kapp->palette().color( QPalette::Active, QColorGroup::Highlight );
- selForegroundColor = kapp->palette().color( QPalette::Active, QColorGroup::HighlightedText );
+ backgroundColor = kapp->palette().color( TQPalette::Active, TQColorGroup::Mid );
+ selBackgroundColor = kapp->palette().color( TQPalette::Active, TQColorGroup::Highlight );
+ selForegroundColor = kapp->palette().color( TQPalette::Active, TQColorGroup::HighlightedText );
ircColors[0] = Qt::white;
ircColors[1] = Qt::black;
ircColors[2] = Qt::darkBlue;
ircColors[3] = Qt::darkGreen;
ircColors[4] = Qt::red;
- ircColors[5] = QColor ( 165, 42, 42 );
+ ircColors[5] = TQColor ( 165, 42, 42 );
ircColors[6] = Qt::darkMagenta;
- ircColors[7] = QColor( 255, 0x7b, 00 );
+ ircColors[7] = TQColor( 255, 0x7b, 00 );
ircColors[8] = Qt::yellow;
ircColors[9] = Qt::green;
ircColors[10] = Qt::darkCyan;
ircColors[11] = Qt::cyan;
ircColors[12] = Qt::blue;
- ircColors[13] = QColor( 255, 0, 255 );
+ ircColors[13] = TQColor( 255, 0, 255 );
ircColors[14] = Qt::gray;
ircColors[15] = Qt::lightGray;
@@ -232,17 +232,17 @@ void KSOptions::load( int sections )
colourTheme = conf->readEntry("ColourTheme", colourTheme );
for ( int i = 0; i < 16; ++i ) {
ircColors[i] =
- conf->readColorEntry(QString::fromLatin1( "IRC-%1" ).arg( i ),
+ conf->readColorEntry(TQString::fromLatin1( "IRC-%1" ).arg( i ),
&ircColors[i] );
nickHighlight[i] =
- conf->readBoolEntry(QString::fromLatin1( "nickHighlight-%1" ).arg( i ),
+ conf->readBoolEntry(TQString::fromLatin1( "nickHighlight-%1" ).arg( i ),
&nickHighlight[i] );
}
}
conf->setGroup( "GlobalOptions" );
- QFont df = kapp->font(0);
+ TQFont df = kapp->font(0);
defaultFont = conf->readFontEntry( "MainFont", &df);
- QApplication::setFont( defaultFont, true, "KSirc::TextView" );
+ TQApplication::setFont( defaultFont, true, "KSirc::TextView" );
}
if ( sections & Channels )
{
@@ -254,7 +254,7 @@ void KSOptions::load( int sections )
if(channel.contains("global") == FALSE){
KSOChannel global;
ChannelOpMap coMap;
- channel.insert(QString("global"), coMap);
+ channel.insert(TQString("global"), coMap);
channel["global"].insert("global", global);
channel["global"]["global"].server = "global";
channel["global"]["global"].channel = "global";
@@ -268,16 +268,16 @@ void KSOptions::load( int sections )
channel["global"]["global"].encoding = conf->readEntry("globalglobalEncoding", "Default");
}
- QDateTime now(QDateTime::currentDateTime());
- QStringList servers = conf->readListEntry("Servers");
- QStringList::ConstIterator ser = servers.begin();
+ TQDateTime now(TQDateTime::currentDateTime());
+ TQStringList servers = conf->readListEntry("Servers");
+ TQStringList::ConstIterator ser = servers.begin();
for( ; ser != servers.end(); ser++){
ChannelOpMap coMap;
channel.insert(*ser, coMap);
- QStringList channels = conf->readListEntry(*ser);
- QStringList::ConstIterator chan = channels.begin();
+ TQStringList channels = conf->readListEntry(*ser);
+ TQStringList::ConstIterator chan = channels.begin();
for( ; chan != channels.end(); chan++){
- QDateTime lastUsed = conf->readDateTimeEntry(*ser + *chan + "lastUsed", &now);
+ TQDateTime lastUsed = conf->readDateTimeEntry(*ser + *chan + "lastUsed", &now);
if((lastUsed.daysTo(now) < 30 )||
(*chan == "global" && *ser == "global"))
{
@@ -317,7 +317,7 @@ void KSOptions::load( int sections )
*/
if(server.contains("global") == FALSE){
KSOServer global;
- server.insert(QString("global"), global);
+ server.insert(TQString("global"), global);
server["global"].server = "global";
server["global"].globalCopy = false;
@@ -333,9 +333,9 @@ void KSOptions::load( int sections )
kdDebug(5008) << "Load: in Server" << endl;
- QStringList servers = conf->readListEntry("Servers");
+ TQStringList servers = conf->readListEntry("Servers");
- QStringList::ConstIterator ser = servers.begin();
+ TQStringList::ConstIterator ser = servers.begin();
for( ; ser != servers.end(); ser++){
KSOServer ksos;
ksos = server["global"];
@@ -422,8 +422,8 @@ void KSOptions::save( int sections )
conf->writeEntry( "nickColourization", nickColourization );
conf->writeEntry( "ColourTheme", colourTheme );
for ( int i = 0; i < 16; ++i ) {
- conf->writeEntry( QString::fromLatin1( "IRC-%1" ).arg( i ), ircColors[i] );
- conf->writeEntry( QString::fromLatin1( "nickHighlight-%1" ).arg( i ), nickHighlight[i] );
+ conf->writeEntry( TQString::fromLatin1( "IRC-%1" ).arg( i ), ircColors[i] );
+ conf->writeEntry( TQString::fromLatin1( "nickHighlight-%1" ).arg( i ), nickHighlight[i] );
}
/* Store the font setting */
conf->setGroup( "GlobalOptions" );
@@ -432,14 +432,14 @@ void KSOptions::save( int sections )
}
if ( sections & Channels )
{
- QStringList servers;
+ TQStringList servers;
conf->deleteGroup( "Channel" );
conf->setGroup( "Channel" );
ServerChannelOpMap::Iterator ser;
for( ser = channel.begin(); ser != channel.end(); ++ser ){
- QStringList channels;
+ TQStringList channels;
servers << ser.key();
@@ -462,14 +462,14 @@ void KSOptions::save( int sections )
}
if ( sections & Servers )
{
- QStringList servers;
+ TQStringList servers;
conf->deleteGroup( "Servers" );
conf->setGroup( "Server" );
ServerOpMap::Iterator ser;
for( ser = server.begin(); ser != server.end(); ++ser ){
- QStringList channels;
+ TQStringList channels;
if(ser.data().globalCopy == true)
continue;
@@ -488,7 +488,7 @@ void KSOptions::save( int sections )
conf->sync();
}
-void KSOptions::channelSetup(QString serv, QString chan)
+void KSOptions::channelSetup(TQString serv, TQString chan)
{
if(channel.contains(serv) == FALSE){
ChannelOpMap coMap;
@@ -500,10 +500,10 @@ void KSOptions::channelSetup(QString serv, QString chan)
channel[serv].insert(chan, ksoc);
channel[serv][chan].server = serv;
channel[serv][chan].channel = chan;
- channel[serv][chan].lastUsed = QDateTime::currentDateTime();
+ channel[serv][chan].lastUsed = TQDateTime::currentDateTime();
}
else {
- channel[serv][chan].lastUsed = QDateTime::currentDateTime();
+ channel[serv][chan].lastUsed = TQDateTime::currentDateTime();
}
}
@@ -522,7 +522,7 @@ void KSOptions::applyChannelGlobal(void)
}
-void KSOptions::serverSetup(QString serv)
+void KSOptions::serverSetup(TQString serv)
{
if(server.contains(serv) == FALSE){
KSOServer ksos;
@@ -530,10 +530,10 @@ void KSOptions::serverSetup(QString serv)
server.insert(serv, ksos);
server[serv].server = serv;
server[serv].globalCopy = true;
- server[serv].lastUsed = QDateTime::currentDateTime();
+ server[serv].lastUsed = TQDateTime::currentDateTime();
}
else {
- server[serv].lastUsed = QDateTime::currentDateTime();
+ server[serv].lastUsed = TQDateTime::currentDateTime();
}
}