summaryrefslogtreecommitdiffstats
path: root/style/polyester.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2024-03-10 20:05:56 +0200
committerMavridis Philippe <[email protected]>2024-03-10 20:09:00 +0200
commit69623f0cddde454f90831506b8df83e0736d5977 (patch)
treebb293d805e8519dd2d3cbbeeac16a01979d0033a /style/polyester.cpp
parent8dbc6179f8b3bd630e3edc6d1e2a01becf5e065b (diff)
downloadtde-style-polyester-69623f0cddde454f90831506b8df83e0736d5977.tar.gz
tde-style-polyester-69623f0cddde454f90831506b8df83e0736d5977.zip
More TQt port fixes
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'style/polyester.cpp')
-rwxr-xr-xstyle/polyester.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/style/polyester.cpp b/style/polyester.cpp
index 5fe43fa..4b4aad3 100755
--- a/style/polyester.cpp
+++ b/style/polyester.cpp
@@ -241,13 +241,13 @@ PolyesterStyle::PolyesterStyle() : TDEStyle( AllowMenuTransparency, ThreeButtonS
}
//Thanks, Lipstik :-)
- else if( !strcmp(_scrollBarStyle,"ThreeButtonScrollBar" ) )
+ else if( _scrollBarStyle == "ThreeButtonScrollBar" )
_scrollBarType = TDEStyle::ThreeButtonScrollBar;
- else if( !strcmp(_scrollBarStyle,"WindowsStyleScrollBar" ) )
+ else if( _scrollBarStyle == "WindowsStyleScrollBar" )
_scrollBarType = TDEStyle::WindowsStyleScrollBar;
- else if( !strcmp(_scrollBarStyle,"PlatinumStyleScrollBar" ) )
+ else if( _scrollBarStyle == "PlatinumStyleScrollBar" )
_scrollBarType = TDEStyle::PlatinumStyleScrollBar;
- else if( !strcmp(_scrollBarStyle,"NextStyleScrollBar" ) )
+ else if( _scrollBarStyle == "NextStyleScrollBar" )
_scrollBarType = TDEStyle::NextStyleScrollBar;
//HACK for gtk-qt: if setScrollBarType is called wxwidgets applications will broke
@@ -262,13 +262,13 @@ PolyesterStyle::PolyesterStyle() : TDEStyle( AllowMenuTransparency, ThreeButtonS
if ( _animateProgressBar )
{
animationTimer = new TQTimer( this );
- connect( animationTimer, SIGNAL(timeout()), this, SLOT(updateProgressPos()) );
+ connect( animationTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(updateProgressPos()) );
}
if ( _animateButton )
{
btnAnimTimer = new TQTimer( this );
- connect( btnAnimTimer, SIGNAL(timeout()), this, SLOT(animate()) );
+ connect( btnAnimTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(animate()) );
}
//create and empty image for the alpha blended menu stripe
@@ -365,7 +365,7 @@ void PolyesterStyle::polish(TQWidget* widget)
{
if( !strcmp(widget->name(), "__tdehtml") ) { // is it a tdehtml widget...?
tdehtmlWidgets[widget] = true;
- connect(widget, SIGNAL(destroyed(TQObject*)), this, SLOT(tdehtmlWidgetDestroyed(TQObject*)));
+ connect(widget, TQ_SIGNAL(destroyed(TQObject*)), this, TQ_SLOT(tdehtmlWidgetDestroyed(TQObject*)));
}
// use tqt_cast where possible to check if the widget inheits one of the classes. might improve
@@ -385,14 +385,14 @@ void PolyesterStyle::polish(TQWidget* widget)
// btnAnimTimer->start( TIMERINTERVAL, false );
animWidgets[widget].active = false;
- connect(widget, SIGNAL(destroyed(TQObject*)), this, SLOT(animWidgetDestroyed(TQObject*)));
+ connect(widget, TQ_SIGNAL(destroyed(TQObject*)), this, TQ_SLOT(animWidgetDestroyed(TQObject*)));
}
TQSlider *slider = ::tqt_cast<TQSlider*>(widget);
if(slider)
{
- connect(slider, SIGNAL(sliderMoved(int)), this, SLOT(sliderThumbMoved(int)));
- connect(slider, SIGNAL(valueChanged(int)), this, SLOT(sliderThumbMoved(int)));
+ connect(slider, TQ_SIGNAL(sliderMoved(int)), this, TQ_SLOT(sliderThumbMoved(int)));
+ connect(slider, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(sliderThumbMoved(int)));
}
} else if (::tqt_cast<TQLineEdit*>(widget)) {
widget->installEventFilter(this);
@@ -404,7 +404,7 @@ void PolyesterStyle::polish(TQWidget* widget)
} else if ( !qstrcmp(widget->name(), "tde toolbar widget") ) {
widget->installEventFilter(this);
} else if (::tqt_cast<TQHeader*>(widget)) {
- connect(widget->parent(), SIGNAL(contentsMoving(int, int)), widget, SLOT(update()));
+ connect(widget->parent(), TQ_SIGNAL(contentsMoving(int, int)), widget, TQ_SLOT(update()));
widget->installEventFilter(this);
}else if (::tqt_cast<TQScrollBar*>(widget)) {
widget->installEventFilter(this);
@@ -414,7 +414,7 @@ void PolyesterStyle::polish(TQWidget* widget)
{
widget->installEventFilter(this);
progAnimWidgets[widget] = 0;
- connect(widget, SIGNAL(destroyed(TQObject*)), this, SLOT(progressBarDestroyed(TQObject*)));
+ connect(widget, TQ_SIGNAL(destroyed(TQObject*)), this, TQ_SLOT(progressBarDestroyed(TQObject*)));
if (!animationTimer->isActive())
animationTimer->start( 50, false );
}
@@ -462,7 +462,7 @@ void PolyesterStyle::unPolish(TQWidget* widget)
TDEStyle::unPolish(widget);
}
-/*a bunch of slots stuff...*/
+/*a bunch of TQ_SLOTs stuff...*/
void PolyesterStyle::tdehtmlWidgetDestroyed(TQObject* obj)
{
tdehtmlWidgets.remove(static_cast<TQWidget*>(obj));
@@ -3283,7 +3283,7 @@ void PolyesterStyle::drawControl(ControlElement element,
// shadow on button text
- if( _shadowedButtonsText && button->isEnabled() && button->text() )
+ if( _shadowedButtonsText && button->isEnabled() && !button->text().isNull() )
{
TQColor shadowColor = alphaBlendColors( cg.highlight(),
cg.button(),