author | sandman <sandman> | 2002-10-06 03:07:56 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-10-06 03:07:56 (UTC) |
commit | 56276f60d5dd404c3cd8a65003faf75b289f1131 (patch) (side-by-side diff) | |
tree | b531ea59a3dfbb737078d07ef006d417bd5f8698 /noncore | |
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) - if ( !w-> inherits("QFrame") || (((QFrame*) w)-> frameShape () == QFrame::NoFrame )) - w-> setBackgroundOrigin ( QWidget::ParentOrigin ); + @@ -875,2 +874,3 @@ void LiquidStyle::polish(QWidget *w) w-> setBackgroundMode ( QWidget::PaletteBackground ); + w->setBackgroundOrigin ( QWidget::ParentOrigin); } @@ -910,2 +910,5 @@ void LiquidStyle::polish(QWidget *w) } + if(w-> inherits("QToolBarSeparator")&&w->parent()->inherits("QToolBar")) { + ((QFrame *) w)-> setFrameShape ( QFrame::NoFrame ); + } if(w->ownPalette() && !w->inherits("QButton") && !w->inherits("QComboBox")){ @@ -923,6 +926,15 @@ void LiquidStyle::polish(QWidget *w) w->backgroundMode() == QWidget::PaletteButton){ - w->setBackgroundMode(QWidget::X11ParentRelative); + w->setBackgroundMode(w->parentWidget()->backgroundMode( )/*QWidget::X11ParentRelative*/); + w->setBackgroundOrigin(QWidget::ParentOrigin); +// w->setBackgroundMode(QWidget::NoBackground); } } + if ( !w-> inherits("QFrame") || (((QFrame*) w)-> frameShape () == QFrame::NoFrame )) + w-> setBackgroundOrigin ( QWidget::ParentOrigin ); + else if ( w-> inherits("QFrame") ) + w->setBackgroundOrigin ( QWidget::WidgetOrigin ); + if ( w->parentWidget()->inherits ( "QWidgetStack" )) { + w->setBackgroundOrigin ( QWidget::WidgetOrigin ); + } } |