summaryrefslogtreecommitdiffstats
path: root/tdestyles/plastik
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-26 02:32:50 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-26 02:32:50 +0900
commit138bb80efac020c7e78871d3f05127eb37f18274 (patch)
tree511cf17073aacacc4e752395839e84c6bbcab3bb /tdestyles/plastik
parent8d79c40791fa0bcac4d4ce1dc7385b19e523ba08 (diff)
downloadtdelibs-138bb80efac020c7e78871d3f05127eb37f18274.tar.gz
tdelibs-138bb80efac020c7e78871d3f05127eb37f18274.zip
Replaced various '#define' with actual strings - part 4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdestyles/plastik')
-rw-r--r--tdestyles/plastik/plastik.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/tdestyles/plastik/plastik.cpp b/tdestyles/plastik/plastik.cpp
index 01026122f..d08b36deb 100644
--- a/tdestyles/plastik/plastik.cpp
+++ b/tdestyles/plastik/plastik.cpp
@@ -197,7 +197,7 @@ void PlastikStyle::updateProgressPos()
bool visible = false;
for (iter = progAnimWidgets.begin(); iter != progAnimWidgets.end(); ++iter)
{
- if ( !::tqqt_cast<TQProgressBar*>(iter.key()) )
+ if ( !::tqt_cast<TQProgressBar*>(iter.key()) )
continue;
pb = dynamic_cast<TQProgressBar*>(iter.key());
@@ -245,27 +245,27 @@ void PlastikStyle::polish(const TQStyleControlElementData &ceData, ControlElemen
connect(widget, TQT_SIGNAL(destroyed(TQObject*)), this, TQT_SLOT(tdehtmlWidgetDestroyed(TQObject*)));
}
- // use tqqt_cast where possible to check if the widget inheits one of the classes. might improve
+ // use tqt_cast where possible to check if the widget inheits one of the classes. might improve
// performance compared to TQObject::inherits()
- if ( ::tqqt_cast<TQPushButton*>(widget) || ::tqqt_cast<TQComboBox*>(widget) ||
- ::tqqt_cast<TQSpinWidget*>(widget) || ::tqqt_cast<TQSlider*>(widget) ||
- ::tqqt_cast<TQCheckBox*>(widget) || ::tqqt_cast<TQRadioButton*>(widget) ||
- ::tqqt_cast<TQToolButton*>(widget) || widget->inherits("TQSplitterHandle") )
+ if ( ::tqt_cast<TQPushButton*>(widget) || ::tqt_cast<TQComboBox*>(widget) ||
+ ::tqt_cast<TQSpinWidget*>(widget) || ::tqt_cast<TQSlider*>(widget) ||
+ ::tqt_cast<TQCheckBox*>(widget) || ::tqt_cast<TQRadioButton*>(widget) ||
+ ::tqt_cast<TQToolButton*>(widget) || widget->inherits("TQSplitterHandle") )
{
// widget->setBackgroundMode(PaletteBackground);
installObjectEventHandler(ceData, elementFlags, ptr, this);
- } else if (::tqqt_cast<TQLineEdit*>(widget)) {
+ } else if (::tqt_cast<TQLineEdit*>(widget)) {
installObjectEventHandler(ceData, elementFlags, ptr, this);
- } else if (::tqqt_cast<TQTabBar*>(widget)) {
+ } else if (::tqt_cast<TQTabBar*>(widget)) {
widget->setMouseTracking(true);
installObjectEventHandler(ceData, elementFlags, ptr, this);
- } else if (::tqqt_cast<TQPopupMenu*>(widget)) {
+ } else if (::tqt_cast<TQPopupMenu*>(widget)) {
widget->setBackgroundMode( NoBackground );
} else if ( !qstrcmp(widget->name(), "tde toolbar widget") ) {
installObjectEventHandler(ceData, elementFlags, ptr, this);
}
- if( _animateProgressBar && ::tqqt_cast<TQProgressBar*>(widget) )
+ if( _animateProgressBar && ::tqt_cast<TQProgressBar*>(widget) )
{
installObjectEventHandler(ceData, elementFlags, ptr, this);
progAnimWidgets[widget] = 0;
@@ -287,25 +287,25 @@ void PlastikStyle::unPolish(const TQStyleControlElementData &ceData, ControlElem
tdehtmlWidgets.remove(widget);
}
- // use tqqt_cast to check if the widget inheits one of the classes.
- if ( ::tqqt_cast<TQPushButton*>(widget) || ::tqqt_cast<TQComboBox*>(widget) ||
- ::tqqt_cast<TQSpinWidget*>(widget) || ::tqqt_cast<TQSlider*>(widget) ||
- ::tqqt_cast<TQCheckBox*>(widget) || ::tqqt_cast<TQRadioButton*>(widget) ||
- ::tqqt_cast<TQToolButton*>(widget) || ::tqqt_cast<TQLineEdit*>(widget) ||
+ // use tqt_cast to check if the widget inheits one of the classes.
+ if ( ::tqt_cast<TQPushButton*>(widget) || ::tqt_cast<TQComboBox*>(widget) ||
+ ::tqt_cast<TQSpinWidget*>(widget) || ::tqt_cast<TQSlider*>(widget) ||
+ ::tqt_cast<TQCheckBox*>(widget) || ::tqt_cast<TQRadioButton*>(widget) ||
+ ::tqt_cast<TQToolButton*>(widget) || ::tqt_cast<TQLineEdit*>(widget) ||
widget->inherits("TQSplitterHandle") )
{
removeObjectEventHandler(ceData, elementFlags, ptr, this);
}
- else if (::tqqt_cast<TQTabBar*>(widget)) {
+ else if (::tqt_cast<TQTabBar*>(widget)) {
widget->setMouseTracking(false);
removeObjectEventHandler(ceData, elementFlags, ptr, this);
- } else if (::tqqt_cast<TQPopupMenu*>(widget)) {
+ } else if (::tqt_cast<TQPopupMenu*>(widget)) {
widget->setBackgroundMode( PaletteBackground );
} else if ( !qstrcmp(widget->name(), "tde toolbar widget") ) {
removeObjectEventHandler(ceData, elementFlags, ptr, this);
}
- if ( ::tqqt_cast<TQProgressBar*>(widget) )
+ if ( ::tqt_cast<TQProgressBar*>(widget) )
{
progAnimWidgets.remove(widget);
}
@@ -3346,7 +3346,7 @@ int PlastikStyle::pixelMetric(PixelMetric m, const TQStyleControlElementData &ce
return 1;
case PM_DefaultFrameWidth: {
- if(widget && ::tqqt_cast<TQPopupMenu*>(widget))
+ if(widget && ::tqt_cast<TQPopupMenu*>(widget))
return 1;
else
return 2;
@@ -3452,7 +3452,7 @@ TQSize PlastikStyle::sizeFromContents(ContentsType t,
case CT_ToolButton:
{
- if(widget->parent() && ::tqqt_cast<TQToolBar*>(widget->parent()) )
+ if(widget->parent() && ::tqt_cast<TQToolBar*>(widget->parent()) )
return TQSize( s.width()+2*4, s.height()+2*4 );
else
return TDEStyle::sizeFromContents (t, ceData, elementFlags, s, opt, widget);
@@ -3503,7 +3503,7 @@ bool PlastikStyle::objectEventHandler( const TQStyleControlElementData &ceData,
if (!obj->isWidgetType() ) return false;
// Track show events for progress bars
- if ( _animateProgressBar && ::tqqt_cast<TQProgressBar*>(obj) )
+ if ( _animateProgressBar && ::tqt_cast<TQProgressBar*>(obj) )
{
if ((ev->type() == TQEvent::Show) && !animationTimer->isActive())
{