[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenox/konq-embed/src
From: Eva Brucherseifer <eva () kde ! org>
Date: 2006-11-23 18:55:41
Message-ID: 1164308141.106000.16192.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 607227 by eva:
fix Qt2 compile, which was broken by qt3 port
M +7 -0 toggletoolbutton.cc
--- trunk/kdenox/konq-embed/src/toggletoolbutton.cc #607226:607227
@@ -59,10 +59,17 @@
#endif
p->setFont( font() );
const int textWidth = p->fontMetrics().width( textLabel() );
+#if (QT_VERSION < 0x030000)
+ style().drawItem( p, x + w - textWidth, y, textWidth, h / 2 , // HACK: this \
is hard coded for the ROAD browser tab button; if this class is ever used more \
generally, it needs a system to position the label as desired + \
AlignCenter + ShowPrefix, + colorGroup(), isEnabled(),
+ 0, textLabel() );
+#else
style().drawItem( p, QRect(x + w - textWidth-1, y, textWidth-1, h / 2) , // \
HACK: this is hard coded for the ROAD browser tab button; if this class is ever used \
more generally, it needs a system to position the label as desired AlignCenter + \
ShowPrefix, colorGroup(), isEnabled(),
0, textLabel() );
+#endif
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic