From 06969072e57d2b915d307fe458485970ed1768f6 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 19 Oct 2011 05:06:16 +0000 Subject: [PATCH] Add notes to gtk engine on how to fix the Tree View...when GTK fixes it first! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gtk-qt-engine@1259600 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/qt_qt_wrapper.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/qt_qt_wrapper.cpp b/src/qt_qt_wrapper.cpp index 6ada4ed..4b01622 100644 --- a/src/qt_qt_wrapper.cpp +++ b/src/qt_qt_wrapper.cpp @@ -2119,6 +2119,11 @@ void setRcProperties(GtkRcStyle* rc_style, int forceRecreate) stream << parse_rc_string("xthickness = 1", "*.GtkButton.*"); stream << parse_rc_string("ythickness = 1", "*.GtkButton.*"); +// stream << parse_rc_string("GtkTreeView::allow-rules = 0", "*"); +// stream << parse_rc_string("GtkTreeView::tree-line-width = 1", "*"); +// stream << parse_rc_string("GtkTreeView::vertical-separator = 30", "*"); +// //stream << parse_rc_string("GtkTreeView::odd-row-color = { 0.0, 0.0, 0.0 }", "*"); + stream << parse_rc_string("GtkButton::inner-border = {0, 0, 0, 0}", "*GtkToolbar*GtkButton*"); stream << parse_rc_string("GtkButton::inner-border = {0, 0, 0, 0}", "*GtkToolbar*GtkToggleButton*"); stream << parse_rc_string("GtkButton::inner-border = {0, 0, 0, 0}", "*GtkNotebook*GtkButton*"); @@ -2126,10 +2131,10 @@ void setRcProperties(GtkRcStyle* rc_style, int forceRecreate) // Qt calls them tab boxes, GTK calls them notebooks (!??!?) Either way they are a pain... stream << parse_rc_string("GtkNotebook::tab-overlap = 1", "*"); - + // This one may not work... //insertIntProperty(rc_style, "GtkCheckButton", "indicator-size", tqApp->tqstyle().tqpixelMetric(TQStyle::PM_IndicatorHeight) ); - + // For icons // Build the list of icon theme directories. @@ -2144,7 +2149,7 @@ void setRcProperties(GtkRcStyle* rc_style, int forceRecreate) } stream << "\npixmap_path \"" + iconThemeDirs.join( ":" ) + "\"\n\n"; - + stream << "style \"KDE-icons\" {\n"; stream << doIconMapping("gtk-about", "actions/about_kde.png"); stream << doIconMapping("gtk-add", "actions/add.png");