diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-13 08:32:36 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-13 08:32:36 +0000 |
commit | f7e71d47719ab6094cf4a9fafffa5ea351973522 (patch) | |
tree | 30834aa632d442019e14f88685001d94657d060b /kutils/kcmoduleproxy.cpp | |
parent | b31cfd9a1ee986fe2ae9a693f3afd7f171dd897c (diff) | |
download | tdelibs-f7e71d47719ab6094cf4a9fafffa5ea351973522.tar.gz tdelibs-f7e71d47719ab6094cf4a9fafffa5ea351973522.zip |
Initial conversion for TQt for Qt4 3.4.0 TP2
This will also compile with TQt for Qt3, and should not cause any problems
with dependent modules such as kdebase. If it does then it needs to be fixed!
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214149 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kutils/kcmoduleproxy.cpp')
-rw-r--r-- | kutils/kcmoduleproxy.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kutils/kcmoduleproxy.cpp b/kutils/kcmoduleproxy.cpp index 9fd95f40f..f4b4a9655 100644 --- a/kutils/kcmoduleproxy.cpp +++ b/kutils/kcmoduleproxy.cpp @@ -90,18 +90,18 @@ class KCModuleProxy::KCModuleProxyPrivate delete kcm; } - QStringList args; + TQStringList args; KCModule *kcm; QXEmbed *embedWidget; KProcess *rootProcess; - QVBox *embedFrame; - KCModuleProxyIfaceImpl *dcopObject; + TQVBox *embedFrame; + KCModuleProxyIfaceImpl *dcopObject; DCOPClient *dcopClient; - QVBoxLayout *topLayout; /* Contains TQScrollView view, and root stuff */ - KCModuleProxyRootCommunicatorImpl *rootCommunicator; - QLabel *rootInfo; - QCString dcopName; - KCModuleInfo modInfo; + TQVBoxLayout *topLayout; /* Contains TQScrollView view, and root stuff */ + KCModuleProxyRootCommunicatorImpl *rootCommunicator; + TQLabel *rootInfo; + TQCString dcopName; + KCModuleInfo modInfo; bool withFallback; bool changed; bool rootMode; @@ -161,7 +161,7 @@ KCModule * KCModuleProxy::realModule() const if( !d->isInitialized ) { - d->dcopName = moduleInfo().handle().prepend("KCModuleProxy-").utf8(); + d->dcopName = TQString(moduleInfo().handle().prepend("KCModuleProxy-")).utf8(); d->topLayout = new TQVBoxLayout( that, 0, 0, "topLayout" ); d->isInitialized = true; @@ -311,7 +311,7 @@ void KCModuleProxy::runAsRoot() TQPalette pal( red ); pal.setColor( TQColorGroup::Background, - colorGroup().background() ); + tqcolorGroup().background() ); d->embedFrame->setPalette( pal ); d->embedFrame->setLineWidth( 2 ); d->embedFrame->setMidLineWidth( 2 ); @@ -323,7 +323,7 @@ void KCModuleProxy::runAsRoot() TQLabel *lblBusy = new TQLabel(i18n("<big>Loading...</big>"), d->embedWidget, "lblBusy" ); lblBusy->setTextFormat(RichText); - lblBusy->setAlignment(AlignCenter); + lblBusy->tqsetAlignment(AlignCenter); lblBusy->setGeometry(0,0, d->kcm->width(), d->kcm->height()); lblBusy->show(); @@ -343,15 +343,15 @@ void KCModuleProxy::runAsRoot() TQString cmd = moduleInfo().service()->exec().stripWhiteSpace(); if (cmd.left(5) == "kdesu") { - cmd = cmd.remove(0,5).stripWhiteSpace(); + cmd = TQString(cmd.remove(0,5)).stripWhiteSpace(); /* Remove all kdesu switches */ while( cmd.length() > 1 && cmd[ 0 ] == '-' ) - cmd = cmd.remove( 0, cmd.find( ' ' ) ).stripWhiteSpace(); + cmd = TQString(cmd.remove( 0, cmd.tqfind( ' ' ) )).stripWhiteSpace(); } if (cmd.left(8) == "kcmshell") - cmd = cmd.remove(0,8).stripWhiteSpace(); + cmd = TQString(cmd.remove(0,8)).stripWhiteSpace(); /* Run the process */ TQString kdesu = KStandardDirs::findExe("kdesu"); @@ -416,7 +416,7 @@ void KCModuleProxy::rootExited() /* Such that the "ordinary" module loads again */ d->rootMode = false; - d->topLayout->invalidate(); + d->topLayout->tqinvalidate(); TQShowEvent ev; showEvent( &ev ); |