summaryrefslogtreecommitdiffstats
path: root/kicker/proxy/appletproxy.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-19 01:42:14 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-19 01:42:14 +0000
commit8155225c9be993acc0512956416d195edfef4eb9 (patch)
treede4f3cd17614fc67e47eefabcdbe2fbe170c9be7 /kicker/proxy/appletproxy.cpp
parent364641b8e0279758d236af39abd138d379328a19 (diff)
downloadtdebase-8155225c9be993acc0512956416d195edfef4eb9.tar.gz
tdebase-8155225c9be993acc0512956416d195edfef4eb9.zip
Enable compilation with TQt for Qt4 3.4.0 TP2
This should not break compatibility with TQt for Qt3; if it does please fix it ASAP! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1215552 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kicker/proxy/appletproxy.cpp')
-rw-r--r--kicker/proxy/appletproxy.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kicker/proxy/appletproxy.cpp b/kicker/proxy/appletproxy.cpp
index 0501fcd9a..312c78f97 100644
--- a/kicker/proxy/appletproxy.cpp
+++ b/kicker/proxy/appletproxy.cpp
@@ -134,7 +134,7 @@ AppletProxy::AppletProxy(TQObject* parent, const char* name)
exit(0);
}
- if (!kapp->dcopClient()->registerAs("applet_proxy", true)) {
+ if (kapp->dcopClient()->registerAs("applet_proxy", true) == 0) {
kdError() << "Failed to register at DCOP server." << endl;
KMessageBox::error(0,
i18n("The applet proxy could not be started due to DCOP registration problems."),
@@ -226,24 +226,24 @@ KPanelApplet* AppletProxy::loadApplet(const AppletInfo& info)
return init_ptr(0, info.configFile());
}
-void AppletProxy::repaintApplet(TQWidget* widget)
+void AppletProxy::tqrepaintApplet(TQWidget* widget)
{
- widget->repaint();
+ widget->tqrepaint();
- const TQObjectList* children = widget->children();
+ const TQObjectList children = widget->childrenListObject();
- if (!children)
+ if (children.isEmpty())
{
return;
}
- TQObjectList::iterator it = children->begin();
- for (; it != children->end(); ++it)
+ TQObjectList::iterator it = children.begin();
+ for (; it != children.end(); ++it)
{
TQWidget *w = dynamic_cast<TQWidget*>(*it);
if (w)
{
- repaintApplet(w);
+ tqrepaintApplet(w);
}
}
}
@@ -372,14 +372,14 @@ bool AppletProxy::process(const TQCString &fun, const TQByteArray &data,
}
return true;
}
- else if ( fun == "setAlignment(int)" )
+ else if ( fun == "tqsetAlignment(int)" )
{
TQDataStream dataStream( data, IO_ReadOnly );
- int alignment;
- dataStream >> alignment;
+ int tqalignment;
+ dataStream >> tqalignment;
if(_applet) {
- _applet->setAlignment( (KPanelApplet::Alignment)alignment );
+ _applet->tqsetAlignment( (KPanelApplet::Alignment)tqalignment );
}
return true;
}
@@ -435,13 +435,13 @@ bool AppletProxy::process(const TQCString &fun, const TQByteArray &data,
if(_applet)
if ( _bg.isNull() ) { // no transparency
_applet->unsetPalette();
- _applet->repaint();
+ _applet->tqrepaint();
}
else { //transparency
_applet->blockSignals(true);
- _applet->setBackgroundMode(Qt::FixedPixmap);
+ _applet->setBackgroundMode(TQt::FixedPixmap);
_applet->setPaletteBackgroundPixmap(_bg);
- repaintApplet(_applet);
+ tqrepaintApplet(_applet);
_applet->blockSignals(false);
}
return true;