diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-14 21:19:12 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-24 16:56:48 +0900 |
commit | 757d80a919132cf72773928d53d100d22358de34 (patch) | |
tree | 78f1145fbd227d1135514b40e66e2e4bcbe3fcce /kexi/formeditor/formmanager.cpp | |
parent | 9abcf51de91242d1ab70230ba46abd2108416edf (diff) | |
download | koffice-757d80a9.tar.gz koffice-757d80a9.zip |
Remove various '#define' strings - part 6
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 3aab8aa05b954b80e336517f93463a9b5f50f3d6)
Diffstat (limited to 'kexi/formeditor/formmanager.cpp')
-rw-r--r-- | kexi/formeditor/formmanager.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kexi/formeditor/formmanager.cpp b/kexi/formeditor/formmanager.cpp index d502d5e8e..14584e204 100644 --- a/kexi/formeditor/formmanager.cpp +++ b/kexi/formeditor/formmanager.cpp @@ -297,8 +297,8 @@ FormManager::insertWidget(const TQCString &classname) if( ((TQWidget*)o)->ownCursor() ) { // form->d->cursors->insert(o->name(), ((TQWidget*)o)->cursor()); - form->d->cursors.insert(o, TQT_TQWIDGET(o)->cursor()); - TQT_TQWIDGET(o)->setCursor(TQCursor(TQt::CrossCursor)); + form->d->cursors.insert(o, static_cast<TQWidget*>(o)->cursor()); + static_cast<TQWidget*>(o)->setCursor(TQCursor(TQt::CrossCursor)); } } @@ -325,12 +325,12 @@ FormManager::stopInsert() TQObjectList *l = form->widget()->queryList( "TQWidget" ); for(TQObject *o = l->first(); o; o = l->next()) { - TQT_TQWIDGET(o)->unsetCursor(); + static_cast<TQWidget*>(o)->unsetCursor(); #if 0 if( ((TQWidget*)o)->ownCursor()) { TQMap<TQObject*,TQCursor>::ConstIterator curIt( form->d->cursors.find(o) ); if (curIt!=form->d->cursors.constEnd()) - TQT_TQWIDGET(o)->setCursor( *curIt ); + static_cast<TQWidget*>(o)->setCursor( *curIt ); // ((TQWidget*)o)->setCursor( (*(form->d->cursors))[o->name()] ) ; } #endif @@ -376,11 +376,11 @@ FormManager::startCreatingConnection() TQObjectList *l = form->widget()->queryList( "TQWidget" ); for(TQObject *o = l->first(); o; o = l->next()) { - TQWidget *w = TQT_TQWIDGET(o); + TQWidget *w = static_cast<TQWidget*>(o); if( w->ownCursor() ) { - form->d->cursors.insert(TQT_TQOBJECT(w), w->cursor()); -// form->d->cursors->insert(TQT_TQOBJECT(w)->name(), w->cursor()); + form->d->cursors.insert(w, w->cursor()); +// form->d->cursors->insert(w->name(), w->cursor()); w->setCursor(TQCursor(PointingHandCursor )); } if(w->hasMouseTracking()) @@ -439,7 +439,7 @@ FormManager::stopCreatingConnection() if( w->ownCursor()) { TQMap<TQObject*,TQCursor>::ConstIterator curIt( form->d->cursors.find(o) ); if (curIt!=form->d->cursors.constEnd()) - TQT_TQWIDGET(o)->setCursor( *curIt ); + static_cast<TQWidget*>(o)->setCursor( *curIt ); } // w->setCursor( (*(form->d->cursors))[o->name()] ) ; w->setMouseTracking( !form->d->mouseTrackers->grep(w->name()).isEmpty() ); @@ -1212,7 +1212,7 @@ FormManager::slotStyle() TQObjectList *l = activeForm()->widget()->queryList( "TQWidget" ); for(TQObject *o = l->first(); o; o = l->next()) - (TQT_TQWIDGET(o))->setStyle( style ); + (static_cast<TQWidget*>(o))->setStyle( style ); delete l; } |