From 8fb19a44e78617db075cf458e8c206cf8dd070ab Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Sun, 15 Nov 2009 09:14:43 +0000 Subject: [PATCH] make sure separators are properly drawn when dragging out one tab svn path=/trunk/KDE/kdebase/workspace/; revision=1049387 --- clients/oxygen/oxygenclient.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clients/oxygen/oxygenclient.cpp b/clients/oxygen/oxygenclient.cpp index 71462b13e3..68e4255582 100644 --- a/clients/oxygen/oxygenclient.cpp +++ b/clients/oxygen/oxygenclient.cpp @@ -948,7 +948,8 @@ namespace Oxygen // separators // draw Left separator QColor color( backgroundPalette( widget(), palette ).window().color() ); - if( index != visibleClientGroupItem() && ( ( index == 0 && buttonsLeftWidth() > 0 ) || itemData_.isTarget( index ) ) ) + bool isFirstItem( index == 0 || (index == 1 && !itemData_[0].boundingRect_.isValid() ) ); + if( !active && ( ( isFirstItem && buttonsLeftWidth() > 0 ) || itemData_.isTarget( index ) ) ) { QRect local( item.boundingRect_.topLeft()+QPoint(0,2), QSize( 2, item.boundingRect_.height()-3 ) ); @@ -960,7 +961,7 @@ namespace Oxygen if( ( index == itemCount-1 && buttonsRightWidth() > 0 ) || ( index+1 < itemCount && ( itemData_.isTarget( index+1 ) || - index+1 != visibleClientGroupItem() ) ) ) + !( index+1 == visibleClientGroupItem() && itemData_[index+1].boundingRect_.isValid() ) ) ) ) { QRect local( item.boundingRect_.topRight()+QPoint(0,2), QSize( 2, item.boundingRect_.height()-3 ) );