summaryrefslogtreecommitdiffstats
path: root/tdestyles/web/webstyle.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-07-12 11:09:49 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-07-13 10:04:24 +0900
commit707310036113d2d0ae9da1cc7f85d0e642bf9686 (patch)
treeafa9b616af366f63e0418df74b2287299d8572a3 /tdestyles/web/webstyle.cpp
parent08eacf589a6ee0358c49f177fca34a29e0515164 (diff)
downloadtdelibs-707310036113d2d0ae9da1cc7f85d0e642bf9686.tar.gz
tdelibs-707310036113d2d0ae9da1cc7f85d0e642bf9686.zip
Replace _OBJECT_NAME_STRING defines with actual strings. This relates to the merging of tqtinterface with tqt3.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 36c049e135b0cec7cf97b41888860186813df5f0)
Diffstat (limited to 'tdestyles/web/webstyle.cpp')
-rw-r--r--tdestyles/web/webstyle.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tdestyles/web/webstyle.cpp b/tdestyles/web/webstyle.cpp
index 073a46368..f363b9527 100644
--- a/tdestyles/web/webstyle.cpp
+++ b/tdestyles/web/webstyle.cpp
@@ -250,10 +250,10 @@ WebStyle::unPolish(TQApplication *)
void
WebStyle::polish(TQWidget * w)
{
- if (w->inherits(TQPUSHBUTTON_OBJECT_NAME_STRING))
+ if (w->inherits("TQPushButton"))
w->installEventFilter(this);
- else if (w->inherits(TQGROUPBOX_OBJECT_NAME_STRING) || w->inherits(TQFRAME_OBJECT_NAME_STRING))
+ else if (w->inherits("TQGroupBox") || w->inherits("TQFrame"))
{
TQFrame * f(static_cast<TQFrame *>(w));
@@ -282,7 +282,7 @@ WebStyle::polish(TQWidget * w)
void
WebStyle::unPolish(TQWidget * w)
{
- if (w->inherits(TQPUSHBUTTON_OBJECT_NAME_STRING))
+ if (w->inherits("TQPushButton"))
w->removeEventFilter(this);
else if (w == _currentFrame)
@@ -1046,7 +1046,7 @@ WebStyle::drawTDEToolBarButton
{
bool toggleAndOn = false;
- if (button->inherits(TQBUTTON_OBJECT_NAME_STRING))
+ if (button->inherits("TQButton"))
{
TQButton * b = static_cast<TQButton *>(button);
toggleAndOn = b->isToggleButton() && b->isOn();