summaryrefslogtreecommitdiffstats
path: root/src/gui/kdeext/klearlook.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kdeext/klearlook.cpp')
-rw-r--r--src/gui/kdeext/klearlook.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/kdeext/klearlook.cpp b/src/gui/kdeext/klearlook.cpp
index 7701248..28e9838 100644
--- a/src/gui/kdeext/klearlook.cpp
+++ b/src/gui/kdeext/klearlook.cpp
@@ -519,7 +519,7 @@ hoverSect( TQTC_NO_SECT ) {
}
void KlearlookStyle::applicationPolish( const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void *ptr ) {
- if (ceData.widgetObjectTypes.contains(TQAPPLICATION_OBJECT_NAME_STRING)) {
+ if (ceData.widgetObjectTypes.contains("TQApplication")) {
TQApplication *app = reinterpret_cast<TQApplication*>(ptr);
if ( !qstrcmp( app->argv() [ 0 ], "kicker" ) || !qstrcmp( app->argv() [ 0 ], "appletproxy" ) ) {
@@ -589,13 +589,13 @@ void KlearlookStyle::polish( TQPalette &pal ) {
static const char * kdeToolbarWidget = "tde toolbar widget";
void KlearlookStyle::polish( 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 ( ::tqqt_cast<TQRadioButton *>( widget )
|| ::tqqt_cast<TQCheckBox *>( widget )
|| ::tqqt_cast<TQSpinWidget *>( widget )
- || widget->inherits( TQSPLITTERHANDLE_OBJECT_NAME_STRING ) ) {
+ || widget->inherits( "TQSplitterHandle" ) ) {
widget->setMouseTracking( true );
installObjectEventHandler(ceData, elementFlags, ptr, this);
@@ -632,13 +632,13 @@ void KlearlookStyle::polish( const TQStyleControlElementData &ceData, ControlEle
}
void KlearlookStyle::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 ( ::tqqt_cast<TQRadioButton *>( widget ) ||
::tqqt_cast<TQCheckBox *>( widget ) ||
::tqqt_cast<TQSpinWidget *>( widget ) ||
- widget->inherits( TQSPLITTERHANDLE_OBJECT_NAME_STRING ) ) {
+ widget->inherits( "TQSplitterHandle" ) ) {
widget->setMouseTracking( false );
removeObjectEventHandler(ceData, elementFlags, ptr, this);
@@ -676,7 +676,7 @@ void KlearlookStyle::unPolish( const TQStyleControlElementData &ceData, ControlE
}
bool KlearlookStyle::objectEventHandler( const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void* source, TQEvent *event ) {
- if (ceData.widgetObjectTypes.contains(TQOBJECT_OBJECT_NAME_STRING)) {
+ if (ceData.widgetObjectTypes.contains("TQObject")) {
TQObject* object = reinterpret_cast<TQObject*>(source);
if ( object->parent() && 0 == qstrcmp( object->name(), kdeToolbarWidget ) ) {