From 8155225c9be993acc0512956416d195edfef4eb9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 19 Jan 2011 01:42:14 +0000 Subject: 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 --- kdm/kfrontend/themer/kdmthemer.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'kdm/kfrontend/themer/kdmthemer.cpp') diff --git a/kdm/kfrontend/themer/kdmthemer.cpp b/kdm/kfrontend/themer/kdmthemer.cpp index 9e6db33db..f95343787 100644 --- a/kdm/kfrontend/themer/kdmthemer.cpp +++ b/kdm/kfrontend/themer/kdmthemer.cpp @@ -131,19 +131,19 @@ KdmThemer::widgetEvent( TQEvent *e ) switch (e->type()) { case TQEvent::MouseMove: { - TQMouseEvent *me = static_cast(e); + TQMouseEvent *me = TQT_TQMOUSEEVENT(e); rootItem->mouseEvent( me->x(), me->y() ); } break; case TQEvent::MouseButtonPress: { - TQMouseEvent *me = static_cast(e); + TQMouseEvent *me = TQT_TQMOUSEEVENT(e); rootItem->mouseEvent( me->x(), me->y(), true ); } break; case TQEvent::MouseButtonRelease: { - TQMouseEvent *me = static_cast(e); + TQMouseEvent *me = TQT_TQMOUSEEVENT(e); rootItem->mouseEvent( me->x(), me->y(), false, true ); } break; @@ -156,7 +156,7 @@ KdmThemer::widgetEvent( TQEvent *e ) break; case TQEvent::Paint: { - TQRect paintRect = static_cast(e)->rect(); + TQRect paintRect = TQT_TQPAINTEVENT(e)->rect(); kdDebug() << timestamp() << " paint on: " << paintRect << endl; if (!backBuffer) @@ -223,7 +223,7 @@ KdmThemer::generateItems( KdmItem *parent, const TQDomNode &node ) TQString id = el.attribute("id"); if (id.startsWith("plugin-specific-")) { id = id.mid(strlen("plugin-specific-")); - if (!_pluginsLogin.contains(id)) + if (!_pluginsLogin.tqcontains(id)) continue; } @@ -281,7 +281,7 @@ bool KdmThemer::willDisplay( const TQDomNode &node ) TQStringList modeList = TQStringList::split( ",", modes ); // If current mode isn't in this list, do not display item - if (modeList.find( m_currentMode ) == modeList.end()) + if (modeList.tqfind( m_currentMode ) == modeList.end()) return false; } @@ -314,13 +314,13 @@ void KdmThemer::showStructure( TQObject *obj ) { - const TQObjectList *wlist = obj->children(); + const TQObjectList wlist = obj->childrenListObject(); static int counter = 0; if (counter == 0) kdDebug() << timestamp() << " \n\n<======= Widget tree =================" << endl; - if (wlist) { + if (!wlist.isEmpty()) { counter++; - TQObjectListIterator it( *wlist ); + TQObjectListIterator it( wlist ); TQObject *object; while ((object = it.current()) != 0) { @@ -358,7 +358,7 @@ KdmThemer::slotActivated( const TQString &id ) return; item->widget()->setFocus(); - TQLineEdit *le = (TQLineEdit*)item->widget()->qt_cast("TQLineEdit"); + TQLineEdit *le = (TQLineEdit*)item->widget()->tqqt_cast("TQLineEdit"); if (le) le->selectAll(); } @@ -377,8 +377,8 @@ KdmThemer::slotPaintRoot() back_item->paint( &painter, back_item->rect()); painter.end(); - TQApplication::desktop()->screen()->setErasePixmap(pm); - TQApplication::desktop()->screen()->erase(); + TQT_TQWIDGET(TQApplication::desktop()->screen())->setErasePixmap(pm); + TQT_TQWIDGET(TQApplication::desktop()->screen())->erase(); } #include "kdmthemer.moc" -- cgit v1.2.1