diff options
author | Timothy Pearson <[email protected]> | 2013-12-22 16:44:58 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-12-22 16:44:58 -0600 |
commit | 6e6dbb068e03a8bb818a76ba774d6f94ade7389f (patch) | |
tree | 731dbbe8b8cd5b1dea593fbf252247ae3cfc0428 /src/qt_qt_wrapper.cpp | |
parent | 690b6e163ba9b4da03fcd2b4f133bb5631be437b (diff) | |
download | gtk-qt-engine-6e6dbb068e03a8bb818a76ba774d6f94ade7389f.tar.gz gtk-qt-engine-6e6dbb068e03a8bb818a76ba774d6f94ade7389f.zip |
Fix numerous drawing glitches in Firefox
Diffstat (limited to 'src/qt_qt_wrapper.cpp')
-rw-r--r-- | src/qt_qt_wrapper.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/qt_qt_wrapper.cpp b/src/qt_qt_wrapper.cpp index d3e13bb..928aef3 100644 --- a/src/qt_qt_wrapper.cpp +++ b/src/qt_qt_wrapper.cpp @@ -651,7 +651,7 @@ void drawButton(GdkWindow* window, GtkStyle* style, GtkStateType state, int defa } if (gwidget) { - TQString gwLabel(gtk_button_get_label(gwidget)); + TQString gwLabel(gtk_button_get_label(gwidget)); if (gtk_button_get_use_stock(gwidget)) { GtkStockItem stockData; gtk_stock_lookup(gwLabel.ascii(), &stockData); @@ -660,8 +660,8 @@ void drawButton(GdkWindow* window, GtkStyle* style, GtkStateType state, int defa gwLabel.replace("&", "&&"); gwLabel.replace("_", "&"); - TQPixmap buttonicon; - TQBitmap buttonicon_mask; + TQPixmap buttonicon; + TQBitmap buttonicon_mask; GtkWidget* giconwidget = gtk_button_get_image(gwidget); if (giconwidget) { @@ -746,9 +746,9 @@ void drawButton(GdkWindow* window, GtkStyle* style, GtkStateType state, int defa if (defaultButton) sflags |= TQStyle::Style_ButtonDefault; button.setDefault(defaultButton); - + painter.fillRect(0, 0, w, h, tqApp->palette().active().background()); - + tqApp->style().drawControl(TQStyle::CE_PushButton, &painter, &button, TQRect(0,0,w,h), button.palette().active(), sflags); |