summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorrjb330 <122177540+rjb330@users.noreply.github.com>2024-10-27 00:24:47 -0700
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-10-31 12:48:04 +0900
commit1030a83acc023601e2f38a273170e55f641dc9eb (patch)
tree23d4a4034009fb61b27a3379f26f124853a5889f /src
parent0c94b667118aa0ba1b53d1b294502fbccd85e593 (diff)
downloadgtk-qt-engine-1030a83acc023601e2f38a273170e55f641dc9eb.tar.gz
gtk-qt-engine-1030a83acc023601e2f38a273170e55f641dc9eb.zip
Remove bitmap offset from radio for qtcurve
Signed-off-by: rjb330 <122177540+rjb330@users.noreply.github.com> (cherry picked from commit 8b22d57a20d86488421b96a27c675d7300d0bc07)
Diffstat (limited to 'src')
-rw-r--r--src/qt_qt_wrapper.cpp5
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);