diff options
Diffstat (limited to 'style/qtc_tdestyle.cpp')
-rw-r--r-- | style/qtc_tdestyle.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/style/qtc_tdestyle.cpp b/style/qtc_tdestyle.cpp index 1686705..548507b 100644 --- a/style/qtc_tdestyle.cpp +++ b/style/qtc_tdestyle.cpp @@ -825,7 +825,7 @@ int TQtCTDEStyle::pixelMetric(PixelMetric m, TQStyleControlElementData ceData, C case PM_SliderControlThickness: { const TQSlider* slider = (const TQSlider*)widget; TQSlider::TickSetting ts = slider->tickmarks(); - int thickness = (slider->orientation() == Qt::Horizontal) ? + int thickness = (slider->orientation() == TQt::Horizontal) ? slider->height() : slider->width(); switch (ts) { case TQSlider::NoMarks: // Use total area. @@ -910,7 +910,7 @@ void TQtCTDEStyle::drawComplexControl( ComplexControl control, const TQScrollBar *sb = (const TQScrollBar*)widget; bool maxedOut = (sb->minValue() == sb->maxValue()); - bool horizontal = (sb->orientation() == Qt::Horizontal); + bool horizontal = (sb->orientation() == TQt::Horizontal); SFlags sflags = ((horizontal ? Style_Horizontal : Style_Default) | (maxedOut ? Style_Default : Style_Enabled)); @@ -1220,7 +1220,7 @@ TQRect TQtCTDEStyle::querySubControlMetrics( ComplexControl control, bool nextScrollBar = d->scrollbarType & NextStyleScrollBar; const TQScrollBar *sb = (const TQScrollBar*)widget; - bool horizontal = sb->orientation() == Qt::Horizontal; + bool horizontal = sb->orientation() == TQt::Horizontal; int sliderstart = sb->sliderStart(); int sbextent = pixelMetric(PM_ScrollBarExtent, ceData, elementFlags, widget); int maxlen = (horizontal ? sb->width() : sb->height()) @@ -1706,7 +1706,7 @@ bool TQtCTDEStyle::objectEventHandler( TQStyleControlElementData ceData, Control TQToolBar *toolbar = ::tqqt_cast< TQToolBar *>( frame ); TQRect r = pe->rect(); - if (toolbar && toolbar->orientation() == Qt::Vertical) + if (toolbar && toolbar->orientation() == TQt::Vertical) horizontal = false; if (horizontal) { |