author | sandman <sandman> | 2002-10-06 03:07:56 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-10-06 03:07:56 (UTC) |
commit | 56276f60d5dd404c3cd8a65003faf75b289f1131 (patch) (unidiff) | |
tree | b531ea59a3dfbb737078d07ef006d417bd5f8698 | |
parent | 0e67d3b0704e10c1e4676d568caf67d97b604445 (diff) | |
download | opie-56276f60d5dd404c3cd8a65003faf75b289f1131.zip opie-56276f60d5dd404c3cd8a65003faf75b289f1131.tar.gz opie-56276f60d5dd404c3cd8a65003faf75b289f1131.tar.bz2 |
- some tweaks to get a better stipple alignment (Qt/E does not understand
X11ParentRelative bg mode)
- toolbar separators are not drawn anymore
-rw-r--r-- | noncore/styles/liquid/liquid.cpp | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/noncore/styles/liquid/liquid.cpp b/noncore/styles/liquid/liquid.cpp index 1d01c65..259f6af 100644 --- a/noncore/styles/liquid/liquid.cpp +++ b/noncore/styles/liquid/liquid.cpp | |||
@@ -856,4 +856,3 @@ void LiquidStyle::polish(QWidget *w) | |||
856 | 856 | ||
857 | if ( !w-> inherits("QFrame") || (((QFrame*) w)-> frameShape () == QFrame::NoFrame )) | 857 | |
858 | w-> setBackgroundOrigin ( QWidget::ParentOrigin ); | ||
859 | 858 | ||
@@ -875,2 +874,3 @@ void LiquidStyle::polish(QWidget *w) | |||
875 | w-> setBackgroundMode ( QWidget::PaletteBackground ); | 874 | w-> setBackgroundMode ( QWidget::PaletteBackground ); |
875 | w->setBackgroundOrigin ( QWidget::ParentOrigin); | ||
876 | } | 876 | } |
@@ -910,2 +910,5 @@ void LiquidStyle::polish(QWidget *w) | |||
910 | } | 910 | } |
911 | if(w-> inherits("QToolBarSeparator")&&w->parent()->inherits("QToolBar")) { | ||
912 | ((QFrame *) w)-> setFrameShape ( QFrame::NoFrame ); | ||
913 | } | ||
911 | if(w->ownPalette() && !w->inherits("QButton") && !w->inherits("QComboBox")){ | 914 | if(w->ownPalette() && !w->inherits("QButton") && !w->inherits("QComboBox")){ |
@@ -923,6 +926,15 @@ void LiquidStyle::polish(QWidget *w) | |||
923 | w->backgroundMode() == QWidget::PaletteButton){ | 926 | w->backgroundMode() == QWidget::PaletteButton){ |
924 | w->setBackgroundMode(QWidget::X11ParentRelative); | 927 | w->setBackgroundMode(w->parentWidget()->backgroundMode( )/*QWidget::X11ParentRelative*/); |
928 | w->setBackgroundOrigin(QWidget::ParentOrigin); | ||
929 | // w->setBackgroundMode(QWidget::NoBackground); | ||
925 | } | 930 | } |
926 | } | 931 | } |
932 | if ( !w-> inherits("QFrame") || (((QFrame*) w)-> frameShape () == QFrame::NoFrame )) | ||
933 | w-> setBackgroundOrigin ( QWidget::ParentOrigin ); | ||
934 | else if ( w-> inherits("QFrame") ) | ||
935 | w->setBackgroundOrigin ( QWidget::WidgetOrigin ); | ||
927 | 936 | ||
937 | if ( w->parentWidget()->inherits ( "QWidgetStack" )) { | ||
938 | w->setBackgroundOrigin ( QWidget::WidgetOrigin ); | ||
939 | } | ||
928 | } | 940 | } |