diff options
author | rjb330 <122177540+rjb330@users.noreply.github.com> | 2024-10-27 00:24:47 -0700 |
---|---|---|
committer | rjb330 <122177540+rjb330@users.noreply.github.com> | 2024-10-27 00:24:47 -0700 |
commit | 8b22d57a20d86488421b96a27c675d7300d0bc07 (patch) | |
tree | 23d4a4034009fb61b27a3379f26f124853a5889f | |
parent | 4ff647a878e51d5c817bfa5fdd3794dc3f620d45 (diff) | |
download | gtk-qt-engine-8b22d57a20d86488421b96a27c675d7300d0bc07.tar.gz gtk-qt-engine-8b22d57a20d86488421b96a27c675d7300d0bc07.zip |
Remove bitmap offset from radio for qtcurve
Signed-off-by: rjb330 <122177540+rjb330@users.noreply.github.com>
-rw-r--r-- | src/qt_qt_wrapper.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/qt_qt_wrapper.cpp b/src/qt_qt_wrapper.cpp index e7644dd..a909463 100644 --- a/src/qt_qt_wrapper.cpp +++ b/src/qt_qt_wrapper.cpp @@ -98,7 +98,6 @@ int isAlloy; int isDomino; int isPolyester; int isMotif; -int isQtCurve; int eclipseFix; int openOfficeFix; int mozillaFix; @@ -448,7 +447,6 @@ void createTQApp() isPolyester = (TQString(tqApp->style().name()).lower() == "polyester"); isMotif = (TQString(tqApp->style().name()).lower() == "motif" || TQString(tqApp->style().name()).lower() == "cde"); - isQtCurve = (TQString(tqApp->style().name()).lower() == "qtcurve"); if (isDomino) { @@ -1205,12 +1203,11 @@ void drawRadioButton(GdkWindow* window, GtkStyle* style, GtkStateType state, int // We cheat, and draw them over the expected area. int xOffset = (realW - w) / 2; int yOffset = (realH - h) / 2; - int bOffset = isQtCurve ? -1 : 0; TQBitmap bitmap(realW, realH, TRUE); TQPainter bpainter(&bitmap); bpainter.setBrush(TQt::color1); - tqApp->style().drawControlMask(TQStyle::CE_RadioButton, &bpainter, &radio, TQRect(0-bOffset,0-bOffset,realW,realH), sflags); + tqApp->style().drawControlMask(TQStyle::CE_RadioButton, &bpainter, &radio, TQRect(0,0,realW,realH), sflags); pixmap.setMask(bitmap); drawTQPixmapToWindow(window, style->bg_gc[state], &pixmap, x-xOffset, y-yOffset, realW, realH); |