diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2016-03-25 20:06:45 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-03-25 20:06:45 +0100 |
commit | 88b7febc2393324ee14940c1c41a8ddc342c35f6 (patch) | |
tree | b9a917fd3a40988e6e0134490f5357e5335c1c70 /style/eventfilter.cpp | |
parent | 2ee99ab520931c5efe91123c85ba10064a45e95d (diff) | |
download | tde-style-baghira-88b7febc2393324ee14940c1c41a8ddc342c35f6.tar.gz tde-style-baghira-88b7febc2393324ee14940c1c41a8ddc342c35f6.zip |
Initial TDE conversion
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'style/eventfilter.cpp')
-rw-r--r-- | style/eventfilter.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/style/eventfilter.cpp b/style/eventfilter.cpp index ba09ff6..4f860b5 100644 --- a/style/eventfilter.cpp +++ b/style/eventfilter.cpp @@ -164,7 +164,7 @@ bool LiquidStyle::eventFilter( TQObject *obj, TQEvent *ev ) } else if ( obj->inherits( "TQDockWindow" ) ) { - if (KStyle::eventFilter( obj, ev )) + if (TDEStyle::eventFilter( obj, ev )) return true; TQWidget * w = ( TQWidget * ) obj; if ( w->backgroundMode() != TQt::PaletteBackground ) @@ -261,7 +261,7 @@ bool LiquidStyle::eventFilter( TQObject *obj, TQEvent *ev ) } return false; } - else if (::tqt_cast<KToolBar*>(obj)) + else if (::tqt_cast<TDEToolBar*>(obj)) { TQObjectList *handlerList = obj->queryList( "TQDockWindowHandle" ); for (uint i= 0; i < handlerList->count(); i++) @@ -402,7 +402,7 @@ bool LiquidStyle::eventFilter( TQObject *obj, TQEvent *ev ) } return false; } - else if (::tqt_cast<KToolBar*>(obj)) + else if (::tqt_cast<TDEToolBar*>(obj)) { TQObjectList *handlerList = obj->queryList( "TQDockWindowHandle" ); for (uint i= 0; i < handlerList->count(); i++) @@ -668,7 +668,7 @@ bool LiquidStyle::eventFilter( TQObject *obj, TQEvent *ev ) progAnimWidgets[(TQWidget*)obj] = 0; return false; } - if ( !qstrcmp(obj->name(), "kde toolbar widget") ) + if ( !qstrcmp(obj->name(), "tde toolbar widget") ) { TQWidget* lb = static_cast<TQWidget*>(obj); if (lb->backgroundMode() == TQt::PaletteButton) @@ -824,10 +824,10 @@ bool LiquidStyle::eventFilter( TQObject *obj, TQEvent *ev ) for (uint i= 0; i < kids->count(); i++) { TQWidget *kid = (TQWidget*)kids->at(i); - if (kid && kid->paletteBackgroundPixmap() && !(kid->isTopLevel() || kid->inherits( "KonqIconViewWidget" ) || kid->inherits( "khtml") || kid->inherits( "KActiveLabel") || qstrcmp( kid->name(), "_B_ALI_HEADER" ) == 0 || (kid->parentWidget() && kid->parentWidget()->inherits("Thumbnail") || kid->parentWidget()->inherits("MarkListItem")) )) + if (kid && kid->paletteBackgroundPixmap() && !(kid->isTopLevel() || kid->inherits( "KonqIconViewWidget" ) || kid->inherits( "tdehtml") || kid->inherits( "KActiveLabel") || qstrcmp( kid->name(), "_B_ALI_HEADER" ) == 0 || (kid->parentWidget() && kid->parentWidget()->inherits("Thumbnail") || kid->parentWidget()->inherits("MarkListItem")) )) { //we can loose those kids anytime - especially if the user plays on konqueror... - if (::tqt_cast<KToolBarButton*>(kid)) + if (::tqt_cast<TDEToolBarButton*>(kid)) kid->setErasePixmap(tmpBrushPix); else { |