summaryrefslogtreecommitdiffstats
path: root/scheck
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-07-12 11:34:47 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-07-12 11:34:47 +0900
commit8dac8f1a52cf3a2983af451aff69ca268cfbd6d7 (patch)
tree0e635c9ea1f00598fe892d77e026cbeb96eff8ef /scheck
parent3523578cf170d9e98e2c0c5b2f3b6f7de4318a03 (diff)
downloadtdesdk-8dac8f1a52cf3a2983af451aff69ca268cfbd6d7.tar.gz
tdesdk-8dac8f1a52cf3a2983af451aff69ca268cfbd6d7.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>
Diffstat (limited to 'scheck')
-rw-r--r--scheck/scheck.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/scheck/scheck.cpp b/scheck/scheck.cpp
index b8d6bf2d..9dc2fa4a 100644
--- a/scheck/scheck.cpp
+++ b/scheck/scheck.cpp
@@ -944,25 +944,25 @@ void StyleCheckStyle::polish(const TQStyleControlElementData &ceData, ControlEle
topLevelAccelManageTimer->start(200, true);
//
- if (ceData.widgetObjectTypes.contains(TQWIDGET_OBJECT_NAME_STRING)) {
+ if (ceData.widgetObjectTypes.contains("TQWidget")) {
TQWidget *widget = reinterpret_cast<TQWidget*>(ptr);
// Put in order of highest occurance to maximise hit rate
- if (widget->inherits(TQPUSHBUTTON_OBJECT_NAME_STRING)) {
+ if (widget->inherits("TQPushButton")) {
installObjectEventHandler(ceData, elementFlags, ptr, this);
}
- if (widget->inherits(TQLABEL_OBJECT_NAME_STRING))
+ if (widget->inherits("TQLabel"))
{
installObjectEventHandler(ceData, elementFlags, ptr, this);
}
- if (widget->inherits(TQGROUPBOX_OBJECT_NAME_STRING))
+ if (widget->inherits("TQGroupBox"))
{
installObjectEventHandler(ceData, elementFlags, ptr, this);
}
- if (widget->inherits(TQMAINWINDOW_OBJECT_NAME_STRING) || widget->inherits(TQDIALOG_OBJECT_NAME_STRING) )
+ if (widget->inherits("TQMainWindow") || widget->inherits("TQDialog") )
{
watcher->addWatched(widget);
}
@@ -974,19 +974,19 @@ void StyleCheckStyle::polish(const TQStyleControlElementData &ceData, ControlEle
void StyleCheckStyle::unPolish(const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void *ptr)
{
- if (ceData.widgetObjectTypes.contains(TQWIDGET_OBJECT_NAME_STRING)) {
+ if (ceData.widgetObjectTypes.contains("TQWidget")) {
TQWidget *widget = reinterpret_cast<TQWidget*>(ptr);
- if (widget->inherits(TQPUSHBUTTON_OBJECT_NAME_STRING)) {
+ if (widget->inherits("TQPushButton")) {
removeObjectEventHandler(ceData, elementFlags, ptr, this);
}
- if (widget->inherits(TQLABEL_OBJECT_NAME_STRING))
+ if (widget->inherits("TQLabel"))
{
removeObjectEventHandler(ceData, elementFlags, ptr, this);
}
- if (widget->inherits(TQGROUPBOX_OBJECT_NAME_STRING))
+ if (widget->inherits("TQGroupBox"))
{
removeObjectEventHandler(ceData, elementFlags, ptr, this);
}
@@ -2348,7 +2348,7 @@ void StyleCheckStyle::drawComplexControl( ComplexControl control,
}
else if (widget->parent())
{
- if (widget->parent()->inherits(TQTOOLBAR_OBJECT_NAME_STRING))
+ if (widget->parent()->inherits("TQToolBar"))
{
TQToolBar* parent = (TQToolBar*)widget->parent();
TQRect pr = parent->rect();
@@ -2616,7 +2616,7 @@ bool StyleCheckStyle::objectEventHandler( const TQStyleControlElementData &ceDat
if (TDEStyle::objectEventHandler( ceData, elementFlags, source, event ))
return true;
- if (ceData.widgetObjectTypes.contains(TQOBJECT_OBJECT_NAME_STRING)) {
+ if (ceData.widgetObjectTypes.contains("TQObject")) {
TQObject* object = reinterpret_cast<TQObject*>(source);
// Handle push button hover effects.
@@ -2635,7 +2635,7 @@ bool StyleCheckStyle::objectEventHandler( const TQStyleControlElementData &ceDat
}
}
- if ( event->type() == TQEvent::Paint && object->inherits(TQLABEL_OBJECT_NAME_STRING) )
+ if ( event->type() == TQEvent::Paint && object->inherits("TQLabel") )
{
TQLabel* lb = static_cast<TQLabel*>(TQT_TQWIDGET(object));
if (lb->pixmap() || lb->picture() || lb->movie() || (lb->textFormat() == TQt::RichText) ||
@@ -2699,7 +2699,7 @@ bool StyleCheckStyle::objectEventHandler( const TQStyleControlElementData &ceDat
return true;
}
- if ( event->type() == TQEvent::Paint && object->inherits(TQGROUPBOX_OBJECT_NAME_STRING) )
+ if ( event->type() == TQEvent::Paint && object->inherits("TQGroupBox") )
{
TQPaintEvent * pevent = TQT_TQPAINTEVENT(event);
TQGroupBox* gb = static_cast<TQGroupBox*>(TQT_TQWIDGET(object));
@@ -2713,7 +2713,7 @@ bool StyleCheckStyle::objectEventHandler( const TQStyleControlElementData &ceDat
// I suggested that it could eat me. GCC won.
while ( (parent = parent->parent()) )
{
- if (parent->inherits(TQGROUPBOX_OBJECT_NAME_STRING))
+ if (parent->inherits("TQGroupBox"))
{
nestedGroupBox = true;
break;