|
Lines 1168-1176
void LiquidStyle::drawPrimitive( Primiti
Link Here
|
| 1168 |
// break; |
1168 |
// break; |
| 1169 |
} |
1169 |
} |
| 1170 |
case PE_Separator: |
1170 |
case PE_Separator: |
| 1171 |
/*case PE_DockWindowSeparator:*/ { |
1171 |
case PE_DockWindowSeparator: { |
|
|
1172 |
break; //don't draw anything |
| 1172 |
//qWarning("%s",p->device()->className()); |
1173 |
//qWarning("%s",p->device()->className()); |
| 1173 |
if (!(p->device() && p->device()->devType() == QInternal::Widget && ::qt_cast<QToolBar*>((QWidget*)p->device()) /*((QWidget*)p->device())->inherits("QToolBar")*/)){ |
1174 |
if (!(p->device() && p->device()->devType() == QInternal::Widget && ::qt_cast<QToolBar*>((QWidget*)p->device()))){ |
| 1174 |
if ( !( flags & Style_Horizontal ) ) { |
1175 |
if ( !( flags & Style_Horizontal ) ) { |
| 1175 |
p->setPen( cg.mid() ); |
1176 |
p->setPen( cg.mid() ); |
| 1176 |
p->drawLine( 4, r.height() / 2, r.width() - 5, r.height() / 2 ); |
1177 |
p->drawLine( 4, r.height() / 2, r.width() - 5, r.height() / 2 ); |
|
Lines 1997-2004
void LiquidStyle::drawComplexControl( Co
Link Here
|
| 1997 |
if ( widget == highlightWidget ) |
1998 |
if ( widget == highlightWidget ) |
| 1998 |
bflags |= Style_MouseOver; |
1999 |
bflags |= Style_MouseOver; |
| 1999 |
if ( controls & SC_ToolButton ) { |
2000 |
if ( controls & SC_ToolButton ) { |
| 2000 |
bool sunken = mflags & ( Style_Down | Style_On ); |
2001 |
bool sunken = mflags & ( Style_Down /*| Style_On*/ ); |
| 2001 |
bool hover = bflags & Style_MouseOver; |
2002 |
bool hover = bflags & (Style_MouseOver | Style_On ); |
| 2002 |
|
2003 |
|
| 2003 |
if ( !optionHandler->useToolButtonFrame() || !(toolbutton->parentWidget() && ( ::qt_cast<QToolBar*>(toolbutton->parentWidget()) || toolbutton->parentWidget()->inherits("KonqFrameTabs")))) { |
2004 |
if ( !optionHandler->useToolButtonFrame() || !(toolbutton->parentWidget() && ( ::qt_cast<QToolBar*>(toolbutton->parentWidget()) || toolbutton->parentWidget()->inherits("KonqFrameTabs")))) { |
| 2004 |
if (!(hover || sunken) && toolbutton->parentWidget() && !::qt_cast<QToolBar*>(toolbutton->parent()) && toolbutton->parentWidget()->paletteBackgroundPixmap() && !toolbutton->parentWidget()->paletteBackgroundPixmap()->isNull()) { |
2005 |
if (!(hover || sunken) && toolbutton->parentWidget() && !::qt_cast<QToolBar*>(toolbutton->parent()) && toolbutton->parentWidget()->paletteBackgroundPixmap() && !toolbutton->parentWidget()->paletteBackgroundPixmap()->isNull()) { |