diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-02 06:46:49 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-02 06:46:49 +0000 |
commit | b5fb39eb73302856329affac603779129a545abd (patch) | |
tree | d07172449a51f48bbc62681653f71aa1287abd7d /kstyles/web/webstyle.cpp | |
parent | 1c4e273a42588ec915cb94f7b1ceeed2468c9f07 (diff) | |
download | tdelibs-b5fb39eb73302856329affac603779129a545abd.tar.gz tdelibs-b5fb39eb73302856329affac603779129a545abd.zip |
Change most kdelibs inherits() functions to use the new object name define system
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1226839 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kstyles/web/webstyle.cpp')
-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 17dc46941..08474c701 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("QPushButton")) + if (w->inherits(TQPUSHBUTTON_OBJECT_NAME_STRING)) w->installEventFilter(this); - else if (w->inherits("QGroupBox") || w->inherits("QFrame")) + else if (w->inherits(TQGROUPBOX_OBJECT_NAME_STRING) || w->inherits(TQFRAME_OBJECT_NAME_STRING)) { TQFrame * f(static_cast<TQFrame *>(w)); @@ -282,7 +282,7 @@ WebStyle::polish(TQWidget * w) void WebStyle::unPolish(TQWidget * w) { - if (w->inherits("QPushButton")) + if (w->inherits(TQPUSHBUTTON_OBJECT_NAME_STRING)) w->removeEventFilter(this); else if (w == _currentFrame) @@ -1046,7 +1046,7 @@ WebStyle::drawKToolBarButton { bool toggleAndOn = false; - if (button->inherits("QButton")) + if (button->inherits(TQBUTTON_OBJECT_NAME_STRING)) { TQButton * b = static_cast<TQButton *>(button); toggleAndOn = b->isToggleButton() && b->isOn(); |