From 8fd683f525fe1fd455001c229e643d05ec3f768b Mon Sep 17 00:00:00 2001 From: stv Date: Wed, 1 Jun 2005 05:03:11 +0000 Subject: [PATCH] no message --- src/Qtx/QtxWorkstack.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Qtx/QtxWorkstack.cxx b/src/Qtx/QtxWorkstack.cxx index 96830454f..fd3955e47 100644 --- a/src/Qtx/QtxWorkstack.cxx +++ b/src/Qtx/QtxWorkstack.cxx @@ -1124,7 +1124,11 @@ QRect QtxWorkstackTabBar::tabRect( const int idx ) const int bw = 0; if ( QABS( x2 - x1 ) > width() ) +#if defined QT_VERSION && QT_VERSION >= 0x30300 bw = 2 * style().pixelMetric( QStyle::PM_TabBarScrollButtonWidth, this ); +#else + bw = 2 * 16; +#endif int limit = width() - bw; r.setRight( QMIN( r.right(), limit ) ); -- 2.39.2