summaryrefslogtreecommitdiffstats
path: root/tdm/kfrontend/themer/tdmthemer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdm/kfrontend/themer/tdmthemer.cpp')
-rw-r--r--tdm/kfrontend/themer/tdmthemer.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/tdm/kfrontend/themer/tdmthemer.cpp b/tdm/kfrontend/themer/tdmthemer.cpp
index 6c27b7629..f064e384a 100644
--- a/tdm/kfrontend/themer/tdmthemer.cpp
+++ b/tdm/kfrontend/themer/tdmthemer.cpp
@@ -78,24 +78,24 @@ KdmThemer::KdmThemer( const TQString &_filename, const TQString &mode, TQWidget
// Set the root (screen) item
rootItem = new KdmRect( parent, TQDomNode(), "tdm root" );
- connect( rootItem, TQT_SIGNAL(needUpdate( int, int, int, int )),
- widget(), TQT_SLOT(update( int, int, int, int )) );
+ connect( rootItem, TQ_SIGNAL(needUpdate( int, int, int, int )),
+ widget(), TQ_SLOT(update( int, int, int, int )) );
rootItem->setBaseDir( TQFileInfo( filename ).dirPath( true ) );
// generate all the items defined in the theme
generateItems( rootItem );
- connect( rootItem, TQT_SIGNAL(activated( const TQString & )), TQT_SIGNAL(activated( const TQString & )) );
- connect( rootItem, TQT_SIGNAL(activated( const TQString & )), TQT_SLOT(slotActivated( const TQString & )) );
+ connect( rootItem, TQ_SIGNAL(activated( const TQString & )), TQ_SIGNAL(activated( const TQString & )) );
+ connect( rootItem, TQ_SIGNAL(activated( const TQString & )), TQ_SLOT(slotActivated( const TQString & )) );
- TQTimer::singleShot(800, this, TQT_SLOT(slotPaintRoot()));
+ TQTimer::singleShot(800, this, TQ_SLOT(slotPaintRoot()));
/* *TODO*
// Animation timer
TQTimer *time = new TQTimer( this );
time->start( 500 );
- connect( time, TQT_SIGNAL(timeout()), TQT_SLOT(update()) )
+ connect( time, TQ_SIGNAL(timeout()), TQ_SLOT(update()) )
*/
}
@@ -139,19 +139,19 @@ KdmThemer::widgetEvent( TQEvent *e )
switch (e->type()) {
case TQEvent::MouseMove:
{
- TQMouseEvent *me = TQT_TQMOUSEEVENT(e);
+ TQMouseEvent *me = static_cast<TQMouseEvent*>(e);
rootItem->mouseEvent( me->x(), me->y() );
}
break;
case TQEvent::MouseButtonPress:
{
- TQMouseEvent *me = TQT_TQMOUSEEVENT(e);
+ TQMouseEvent *me = static_cast<TQMouseEvent*>(e);
rootItem->mouseEvent( me->x(), me->y(), true );
}
break;
case TQEvent::MouseButtonRelease:
{
- TQMouseEvent *me = TQT_TQMOUSEEVENT(e);
+ TQMouseEvent *me = static_cast<TQMouseEvent*>(e);
rootItem->mouseEvent( me->x(), me->y(), false, true );
}
break;
@@ -164,7 +164,7 @@ KdmThemer::widgetEvent( TQEvent *e )
break;
case TQEvent::Paint:
{
- TQRect paintRect = TQT_TQPAINTEVENT(e)->rect();
+ TQRect paintRect = static_cast<TQPaintEvent*>(e)->rect();
kdDebug() << timestamp() << " paint on: " << paintRect << endl;
if (!argb_visual_available) {
@@ -411,7 +411,7 @@ KdmThemer::slotActivated( const TQString &id )
}
item->widget()->setFocus();
- TQLineEdit *le = (TQLineEdit*)item->widget()->tqt_cast(TQLINEEDIT_OBJECT_NAME_STRING);
+ TQLineEdit *le = (TQLineEdit*)item->widget()->tqt_cast("TQLineEdit");
if (le) {
le->selectAll();
}
@@ -432,8 +432,8 @@ KdmThemer::slotPaintRoot()
}
else return;
- TQT_TQWIDGET(TQApplication::desktop()->screen())->setErasePixmap(pm);
- TQT_TQWIDGET(TQApplication::desktop()->screen())->erase();
+ TQApplication::desktop()->screen()->setErasePixmap(pm);
+ TQApplication::desktop()->screen()->erase();
}
#include "tdmthemer.moc"