diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-10-02 02:23:08 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-10-02 02:23:08 +0000 |
commit | bfb063893534c33acd9abd340c80979205dc82f9 (patch) | |
tree | 75f450e2d7a85066bbff654b0a8f014e240197aa /kstyles/web | |
parent | ccb3b5e486e55a0b014cbc3357c209c3d822ed47 (diff) | |
download | tdelibs-bfb063893534c33acd9abd340c80979205dc82f9.tar.gz tdelibs-bfb063893534c33acd9abd340c80979205dc82f9.zip |
[CRITICAL] Repair borken rendering due to incorrect inherited object logic
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1181768 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kstyles/web')
-rw-r--r-- | kstyles/web/webstyle.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kstyles/web/webstyle.cpp b/kstyles/web/webstyle.cpp index 41cbd9339..f4ed7f931 100644 --- a/kstyles/web/webstyle.cpp +++ b/kstyles/web/webstyle.cpp @@ -250,10 +250,10 @@ WebStyle::unPolish(TQApplication *) void WebStyle::polish(TQWidget * w) { - if (w->inherits("TQPushButton")) + if (w->inherits("QPushButton")) w->installEventFilter(this); - else if (w->inherits("TQGroupBox") || w->inherits("TQFrame")) + else if (w->inherits("QGroupBox") || w->inherits("QFrame")) { TQFrame * f(static_cast<TQFrame *>(w)); @@ -282,7 +282,7 @@ WebStyle::polish(TQWidget * w) void WebStyle::unPolish(TQWidget * w) { - if (w->inherits("TQPushButton")) + if (w->inherits("QPushButton")) w->removeEventFilter(this); else if (w == _currentFrame) @@ -1046,7 +1046,7 @@ WebStyle::drawKToolBarButton { bool toggleAndOn = false; - if (button->inherits("TQButton")) + if (button->inherits("QButton")) { TQButton * b = static_cast<TQButton *>(button); toggleAndOn = b->isToggleButton() && b->isOn(); |