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>
pull/4/head
Michele Calgaro 1 year ago
parent 7ea023ba01
commit 1b3271a8fc
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -660,7 +660,7 @@ DominoStyle::~DominoStyle()
void DominoStyle::applicationPolish( const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void *ptr )
{
if (!ceData.widgetObjectTypes.contains(TQAPPLICATION_OBJECT_NAME_STRING)) {
if (!ceData.widgetObjectTypes.contains("TQApplication")) {
return;
}
TQApplication *app = reinterpret_cast<TQApplication*>(ptr);
@ -698,7 +698,7 @@ void DominoStyle::polish(TQPalette &p) {
void DominoStyle::polish( const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void *ptr )
{
if (!ceData.widgetObjectTypes.contains(TQWIDGET_OBJECT_NAME_STRING)) {
if (!ceData.widgetObjectTypes.contains("TQWidget")) {
return;
}
TQWidget *widget = reinterpret_cast<TQWidget*>(ptr);
@ -1032,7 +1032,7 @@ void DominoStyle::polish( const TQStyleControlElementData &ceData, ControlElemen
void DominoStyle::unPolish( const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void *ptr )
{
if (!ceData.widgetObjectTypes.contains(TQWIDGET_OBJECT_NAME_STRING)) {
if (!ceData.widgetObjectTypes.contains("TQWidget")) {
return;
}
TQWidget *widget = reinterpret_cast<TQWidget*>(ptr);

@ -25,7 +25,7 @@ bool DominoStyle::objectEventHandler( const TQStyleControlElementData &ceData,
return true;
}
if (!ceData.widgetObjectTypes.contains(TQOBJECT_OBJECT_NAME_STRING)) {
if (!ceData.widgetObjectTypes.contains("TQObject")) {
return false;
}
TQObject* obj = reinterpret_cast<TQObject*>(source);

Loading…
Cancel
Save