summaryrefslogtreecommitdiffstats
path: root/scheck
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-24 07:08:32 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-24 07:08:32 +0000
commitdb22462503588f4942c9c73aad278413206e4228 (patch)
tree57d3734fc2e47345ebc1ff9dabac647686873c75 /scheck
parent57fb87513f2f911884ef34a308a5b7882f169fea (diff)
downloadtdesdk-db22462503588f4942c9c73aad278413206e4228.tar.gz
tdesdk-db22462503588f4942c9c73aad278413206e4228.zip
Fix a number of runtime object identification problems which led to an even larger array of minor glitches
NOTE: kdevelop and kdewebdev still need to be fully repaired git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1222475 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'scheck')
-rw-r--r--scheck/scheck.cpp22
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;