diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-10-26 02:51:31 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-10-26 02:51:31 -0500 |
commit | a02874aa99786561dbf7dbb2f4e35659d22fa2e1 (patch) | |
tree | ecd3929543760ca4d6a7fbf1f52786aabf1cea95 /src/qt_qt_wrapper.cpp | |
parent | 6cead3aea75806f3601d114cf48b2d7888897399 (diff) | |
download | gtk-qt-engine-a02874aa99786561dbf7dbb2f4e35659d22fa2e1.tar.gz gtk-qt-engine-a02874aa99786561dbf7dbb2f4e35659d22fa2e1.zip |
Fix a couple of glitches in tabs and dropdown lists
Diffstat (limited to 'src/qt_qt_wrapper.cpp')
-rw-r--r-- | src/qt_qt_wrapper.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/qt_qt_wrapper.cpp b/src/qt_qt_wrapper.cpp index 0c721a0..e886f5d 100644 --- a/src/qt_qt_wrapper.cpp +++ b/src/qt_qt_wrapper.cpp @@ -2078,14 +2078,16 @@ void setRcProperties(GtkRcStyle* rc_style, int forceRecreate) sc = sc2; } } - + + stream << parse_rc_string(TQString("GtkComboBox::appears-as-list = 1"), "*"); + stream << parse_rc_string(TQString("GtkScrollbar::has-backward-stepper = ") + (back1 ? "1" : "0"), "*"); stream << parse_rc_string(TQString("GtkScrollbar::has-forward-stepper = ") + (forward2 ? "1" : "0"), "*"); stream << parse_rc_string(TQString("GtkScrollbar::has-secondary-forward-stepper = ") + (forward1 ? "1" : "0"), "*"); stream << parse_rc_string(TQString("GtkScrollbar::has-secondary-backward-stepper = ") + (back2 ? "1" : "0"), "*"); - + stream << parse_rc_string("GtkScrollbar::stepper-size = " + TQString::number(tqApp->style().querySubControlMetrics(TQStyle::CC_ScrollBar, &sbar, TQStyle::SC_ScrollBarSubLine).width() - 1), "*"); - + stream << parse_rc_string("GtkScrollbar::min-slider-length = " + TQString::number(tqApp->style().pixelMetric(TQStyle::PM_ScrollBarSliderMin)), "*"); stream << parse_rc_string("GtkScrollbar::slider-width = " + TQString::number(tqApp->style().pixelMetric(TQStyle::PM_ScrollBarExtent)-2), "*"); @@ -2110,7 +2112,7 @@ void setRcProperties(GtkRcStyle* rc_style, int forceRecreate) TQSlider slider(NULL); // To keep BlueCurve happy stream << parse_rc_string("GtkScale::slider-length = " + TQString::number(tqApp->style().pixelMetric(TQStyle::PM_SliderLength, &slider)), "*"); - + stream << parse_rc_string("xthickness = " + TQString::number(tqApp->style().pixelMetric(TQStyle::PM_DefaultFrameWidth)), "*.GtkMenu"); stream << parse_rc_string("ythickness = " + TQString::number(tqApp->style().pixelMetric(TQStyle::PM_DefaultFrameWidth)), "*.GtkMenu"); stream << parse_rc_string("xthickness = 5", "*.GtkMenu.Gtk*MenuItem"); @@ -2133,7 +2135,7 @@ void setRcProperties(GtkRcStyle* rc_style, int forceRecreate) stream << parse_rc_string("GtkButton::inner-border = {0, 0, 0, 0}", "*GtkNotebook*GtkToggleButton*"); // Qt calls them tab boxes, GTK calls them notebooks (!??!?) Either way they are a pain... - stream << parse_rc_string("GtkNotebook::tab-overlap = 1", "*"); + stream << parse_rc_string("GtkNotebook::tab-overlap = " + TQString::number(tqApp->style().pixelMetric(TQStyle::PM_TabBarTabOverlap)), "*"); // This one may not work... //insertIntProperty(rc_style, "GtkCheckButton", "indicator-size", tqApp->style().pixelMetric(TQStyle::PM_IndicatorHeight) ); |