|
|
@ -98,7 +98,6 @@ int isAlloy;
|
|
|
|
int isDomino;
|
|
|
|
int isDomino;
|
|
|
|
int isPolyester;
|
|
|
|
int isPolyester;
|
|
|
|
int isMotif;
|
|
|
|
int isMotif;
|
|
|
|
int isQtCurve;
|
|
|
|
|
|
|
|
int eclipseFix;
|
|
|
|
int eclipseFix;
|
|
|
|
int openOfficeFix;
|
|
|
|
int openOfficeFix;
|
|
|
|
int mozillaFix;
|
|
|
|
int mozillaFix;
|
|
|
@ -448,7 +447,6 @@ void createTQApp()
|
|
|
|
isPolyester = (TQString(tqApp->style().name()).lower() == "polyester");
|
|
|
|
isPolyester = (TQString(tqApp->style().name()).lower() == "polyester");
|
|
|
|
isMotif = (TQString(tqApp->style().name()).lower() == "motif" ||
|
|
|
|
isMotif = (TQString(tqApp->style().name()).lower() == "motif" ||
|
|
|
|
TQString(tqApp->style().name()).lower() == "cde");
|
|
|
|
TQString(tqApp->style().name()).lower() == "cde");
|
|
|
|
isQtCurve = (TQString(tqApp->style().name()).lower() == "qtcurve");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isDomino)
|
|
|
|
if (isDomino)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1205,12 +1203,11 @@ void drawRadioButton(GdkWindow* window, GtkStyle* style, GtkStateType state, int
|
|
|
|
// We cheat, and draw them over the expected area.
|
|
|
|
// We cheat, and draw them over the expected area.
|
|
|
|
int xOffset = (realW - w) / 2;
|
|
|
|
int xOffset = (realW - w) / 2;
|
|
|
|
int yOffset = (realH - h) / 2;
|
|
|
|
int yOffset = (realH - h) / 2;
|
|
|
|
int bOffset = isQtCurve ? -1 : 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TQBitmap bitmap(realW, realH, TRUE);
|
|
|
|
TQBitmap bitmap(realW, realH, TRUE);
|
|
|
|
TQPainter bpainter(&bitmap);
|
|
|
|
TQPainter bpainter(&bitmap);
|
|
|
|
bpainter.setBrush(TQt::color1);
|
|
|
|
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);
|
|
|
|
pixmap.setMask(bitmap);
|
|
|
|
|
|
|
|
|
|
|
|
drawTQPixmapToWindow(window, style->bg_gc[state], &pixmap, x-xOffset, y-yOffset, realW, realH);
|
|
|
|
drawTQPixmapToWindow(window, style->bg_gc[state], &pixmap, x-xOffset, y-yOffset, realW, realH);
|
|
|
|