From d83f58a1a4a314a3ef8b25dd78432488922a9e31 Mon Sep 17 00:00:00 2001 From: leseb Date: Tue, 02 Jul 2002 21:23:40 +0000 Subject: Fix QToolButton drawing --- (limited to 'noncore/styles/theme/othemestyle.cpp') diff --git a/noncore/styles/theme/othemestyle.cpp b/noncore/styles/theme/othemestyle.cpp index 61127b8..d97b026 100644 --- a/noncore/styles/theme/othemestyle.cpp +++ b/noncore/styles/theme/othemestyle.cpp @@ -309,6 +309,14 @@ void OThemeStyle::drawBevelButton( QPainter *p, int x, int y, int w, int h, drawBaseButton( p, x, y, w, h, *colorGroup( g, type ), sunken, false, type ); } +void OThemeStyle::drawToolButton( QPainter *p, int x, int y, int w, int h, + const QColorGroup &g, bool sunken, + const QBrush * ) +{ + WidgetType type = sunken ? ToolButtonDown : ToolButton; + drawBaseButton( p, x, y, w, h, *colorGroup( g, type ), sunken, false, type ); +} + #if 0 void OThemeStyle::drawKToolBarButton( QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool sunken, -- cgit v0.9.0.2