diff options
Diffstat (limited to 'scheck/scheck.cpp')
-rw-r--r-- | scheck/scheck.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/scheck/scheck.cpp b/scheck/scheck.cpp index bf00d699..263a77ce 100644 --- a/scheck/scheck.cpp +++ b/scheck/scheck.cpp @@ -945,21 +945,21 @@ void StyleCheckStyle::polish(TQWidget* widget) // // Put in order of highest occurance to maximise hit rate - if (widget->inherits("TQPushButton")) { + if (widget->inherits(TQPUSHBUTTON_OBJECT_NAME_STRING)) { widget->installEventFilter(this); } - if (widget->inherits("TQLabel")) + if (widget->inherits(TQLABEL_OBJECT_NAME_STRING)) { widget->installEventFilter(this); } - if (widget->inherits("TQGroupBox")) + if (widget->inherits(TQGROUPBOX_OBJECT_NAME_STRING)) { widget->installEventFilter(this); } - if (widget->inherits("TQMainWindow") || widget->inherits("TQDialog" ) ) + if (widget->inherits(TQMAINWINDOW_OBJECT_NAME_STRING) || widget->inherits(TQDIALOG_OBJECT_NAME_STRING) ) { watcher->addWatched(widget); } @@ -970,16 +970,16 @@ void StyleCheckStyle::polish(TQWidget* widget) void StyleCheckStyle::unPolish(TQWidget* widget) { - if (widget->inherits("TQPushButton")) { + if (widget->inherits(TQPUSHBUTTON_OBJECT_NAME_STRING)) { widget->removeEventFilter(this); } - if (widget->inherits("TQLabel")) + if (widget->inherits(TQLABEL_OBJECT_NAME_STRING)) { widget->removeEventFilter(this); } - if (widget->inherits("TQGroupBox")) + if (widget->inherits(TQGROUPBOX_OBJECT_NAME_STRING)) { widget->removeEventFilter(this); } @@ -2332,7 +2332,7 @@ void StyleCheckStyle::drawComplexControl( ComplexControl control, } else if (widget->parent()) { - if (widget->parent()->inherits("TQToolBar")) + if (widget->parent()->inherits(TQTOOLBAR_OBJECT_NAME_STRING)) { TQToolBar* parent = (TQToolBar*)widget->parent(); TQRect pr = parent->rect(); @@ -2611,7 +2611,7 @@ bool StyleCheckStyle::eventFilter( TQObject *object, TQEvent *event ) } } - if ( event->type() == TQEvent::Paint && object->inherits("TQLabel") ) + if ( event->type() == TQEvent::Paint && object->inherits(TQLABEL_OBJECT_NAME_STRING) ) { TQLabel* lb = static_cast<TQLabel*>(object); if (lb->pixmap() || lb->picture() || lb->movie() || (lb->textFormat() == Qt::RichText) || @@ -2675,7 +2675,7 @@ bool StyleCheckStyle::eventFilter( TQObject *object, TQEvent *event ) return true; } - if ( event->type() == TQEvent::Paint && object->inherits("TQGroupBox") ) + if ( event->type() == TQEvent::Paint && object->inherits(TQGROUPBOX_OBJECT_NAME_STRING) ) { TQPaintEvent * pevent = static_cast<TQPaintEvent*>(event); TQGroupBox* gb = static_cast<TQGroupBox*>(object); @@ -2689,7 +2689,7 @@ bool StyleCheckStyle::eventFilter( TQObject *object, TQEvent *event ) // I suggested that it could eat me. GCC won. while ( (parent = parent->parent()) ) { - if (parent->inherits("TQGroupBox")) + if (parent->inherits(TQGROUPBOX_OBJECT_NAME_STRING)) { nestedGroupBox = true; break; |