summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Bache-Wiig <jbache@trolltech.com>2009-05-26 12:46:15 (GMT)
committerJens Bache-Wiig <jbache@trolltech.com>2009-05-26 13:03:23 (GMT)
commit7c383fc79510276439deeb706d48ad5543fb54e7 (patch)
tree3d5e8c568b9d5a358f421d66635dc247b1a6e767
parentc17f27a9a14c353c6149f2c15f6a0ff6afe3dedd (diff)
downloadQt-7c383fc79510276439deeb706d48ad5543fb54e7.zip
Qt-7c383fc79510276439deeb706d48ad5543fb54e7.tar.gz
Qt-7c383fc79510276439deeb706d48ad5543fb54e7.tar.bz2
Fix a painting issue in the QGtkStyle statusbar
We should use the "statusbar" string when we draw the sizegrip. Since gtkstatusbar is the only gtk widget using the paint_resize_grip and it uses the "statusbar" string itself it should be safe to assume this. Task-number: 254535 Reviewed-by: rosch
-rw-r--r--src/gui/styles/qgtkstyle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qgtkstyle.cpp b/src/gui/styles/qgtkstyle.cpp
index 86653df..14be518 100644
--- a/src/gui/styles/qgtkstyle.cpp
+++ b/src/gui/styles/qgtkstyle.cpp
@@ -2344,7 +2344,7 @@ void QGtkStyle::drawControl(ControlElement element,
case CE_SizeGrip: {
GtkWidget *gtkStatusbar = QGtk::gtkWidget(QLS("GtkStatusbar.GtkFrame"));
QRect gripRect = option->rect.adjusted(0, 0, -gtkStatusbar->style->xthickness, -gtkStatusbar->style->ythickness);
- gtkPainter.paintResizeGrip( gtkStatusbar, "window", gripRect, GTK_STATE_NORMAL,
+ gtkPainter.paintResizeGrip( gtkStatusbar, "statusbar", gripRect, GTK_STATE_NORMAL,
GTK_SHADOW_OUT, QApplication::isRightToLeft() ?
GDK_WINDOW_EDGE_SOUTH_WEST : GDK_WINDOW_EDGE_SOUTH_EAST,
gtkStatusbar->style);