From 88b7febc2393324ee14940c1c41a8ddc342c35f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 25 Mar 2016 20:06:45 +0100 Subject: Initial TDE conversion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- style/polish.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'style/polish.cpp') diff --git a/style/polish.cpp b/style/polish.cpp index 2f4bbeb..650afc9 100644 --- a/style/polish.cpp +++ b/style/polish.cpp @@ -17,8 +17,8 @@ #include #include #include -#include -#include +#include +#include #include #include #include @@ -30,10 +30,10 @@ #include #include #include -#include +#include #include -#include -#include +#include +#include #include #include @@ -376,7 +376,7 @@ void LiquidStyle::polish( TQWidget *w ) - if (qstrcmp( w->name(), "kde toolbar widget" ) == 0 ) + if (qstrcmp( w->name(), "tde toolbar widget" ) == 0 ) w->installEventFilter( this ); if (::tqt_cast(w)) @@ -416,7 +416,7 @@ void LiquidStyle::polish( TQWidget *w ) if ( ::tqt_cast(w)) { - if (optionHandler->useToolButtonFrame() && w->inherits("KToolBar")) + if (optionHandler->useToolButtonFrame() && w->inherits("TDEToolBar")) ((TQToolBar*)w)->boxLayout()->setSpacing( 0 ); ((TQToolBar*)w)->setMargin( 4 ); w->setBackgroundMode(PaletteBackground); @@ -434,7 +434,7 @@ void LiquidStyle::polish( TQWidget *w ) } //if (testWidget) tqWarning("testwidget stage %d",testInt++); - if (tmpBool = ::tqt_cast(w) || w->inherits( "TQToolBarSeparator" ) || w->inherits( "KToolBarSeparator" ) ) + if (tmpBool = ::tqt_cast(w) || w->inherits( "TQToolBarSeparator" ) || w->inherits( "TDEToolBarSeparator" ) ) { if (tmpBool && w->parentWidget() && ::tqt_cast(w->parentWidget()) ) { @@ -465,10 +465,10 @@ void LiquidStyle::polish( TQWidget *w ) goto kstpolish; } - if ( !isPlain () && (w->inherits( "KonqIconViewWidget" ) || w->inherits( "khtml")/* || w->inherits( "TQtVisionView")*/)) + if ( !isPlain () && (w->inherits( "KonqIconViewWidget" ) || w->inherits( "tdehtml")/* || w->inherits( "TQtVisionView")*/)) { // if you want custom backgrounds in konqueror, you have to reset pixmap, since Konq animation can't handle it - // original liquid did this on khtml, too (at speed loss) so we'll see, if we get errors from this... + // original liquid did this on tdehtml, too (at speed loss) so we'll see, if we get errors from this... TQPalette pal( w->palette() ); pal.setBrush( TQColorGroup::Background, pal.active().background() ); w->setPalette( pal ); @@ -483,9 +483,9 @@ void LiquidStyle::polish( TQWidget *w ) if ((::tqt_cast(w) || w->inherits("KateView") || w->inherits("TEWidget") || w->inherits("CHexViewWidget")) && !(w->isA("KOAgenda"))) { - if (::tqt_cast(w) && optionHandler->custCols[7] != -1 && ((KListView*)w)->alternateBackground() == KGlobalSettings::alternateBackgroundColor()) + if (::tqt_cast(w) && optionHandler->custCols[7] != -1 && ((TDEListView*)w)->alternateBackground() == TDEGlobalSettings::alternateBackgroundColor()) { - ((KListView*)w)->setAlternateBackground(TQColor(optionHandler->custCols[7])); + ((TDEListView*)w)->setAlternateBackground(TQColor(optionHandler->custCols[7])); } #if _FORCE_SCROLLBARS_ if (::tqt_cast(w) && !w->inherits( "KActiveLabel" )) @@ -613,7 +613,7 @@ void LiquidStyle::polish( TQWidget *w ) bool italic = w->font().italic(); bool underline = w->font().underline(); bool overline = w->font().overline(); - w->setFont(KGlobalSettings::menuFont()); + w->setFont(TDEGlobalSettings::menuFont()); if (bold) (const_cast(&w->font()))->setBold(true); if (italic) @@ -671,7 +671,7 @@ void LiquidStyle::polish( TQWidget *w ) //if (testWidget) tqWarning("testwidget stage %d",testInt++); - if ( w->parentWidget() && ( ( ::tqt_cast(w) && ::tqt_cast(w->parentWidget())) || w->inherits( "KCompletionBox" ) ) ) { + if ( w->parentWidget() && ( ( ::tqt_cast(w) && ::tqt_cast(w->parentWidget())) || w->inherits( "TDECompletionBox" ) ) ) { TQListBox* listbox = (TQListBox*) w; listbox->setBackgroundMode( NoBackground ); w->installEventFilter( this ); @@ -745,7 +745,7 @@ void LiquidStyle::polish( TQWidget *w ) w->setBackgroundMode( TQWidget::NoBackground ); } //if (testWidget) tqWarning("testwidget stage %d",testInt++); - kstpolish: KStyle::polish( w ); // nothing of all above? do default kde stuff + kstpolish: TDEStyle::polish( w ); // nothing of all above? do default kde stuff } @@ -763,7 +763,7 @@ void LiquidStyle::unPolish( TQWidget *w ) { goto kstunpolish; } - if ( w->inherits("TQToolBar") || qstrcmp( w->name(), "kde toolbar widget" ) == 0 ) { + if ( w->inherits("TQToolBar") || qstrcmp( w->name(), "tde toolbar widget" ) == 0 ) { w->setBackgroundOrigin( TQWidget::WidgetOrigin ); // w->unsetPalette(); goto kstunpolish; @@ -780,7 +780,7 @@ void LiquidStyle::unPolish( TQWidget *w ) { goto kstunpolish; } if ( !isPlain () && w->inherits( "KonqIconViewWidget" ) || - w->inherits( "KHTMLView" ) ) { + w->inherits( "TDEHTMLView" ) ) { w->unsetPalette(); goto kstunpolish; } @@ -874,5 +874,5 @@ void LiquidStyle::unPolish( TQWidget *w ) { goto kstunpolish; } } -kstunpolish: KStyle::unPolish( w ); +kstunpolish: TDEStyle::unPolish( w ); } -- cgit v1.2.1