make "holding tab down like a mad man" give visual feedback
svn path=/trunk/KDE/kdebase/workspace/; revision=984690
This commit is contained in:
parent
f8795d4934
commit
7e8a329eda
1 changed files with 9 additions and 1 deletions
10
tabbox.cpp
10
tabbox.cpp
|
@ -351,7 +351,7 @@ void TabBox::initScene()
|
|||
|
||||
if( mode() == TabBoxWindowsMode )
|
||||
{
|
||||
if( clients.count() == 0 )
|
||||
if( clients.isEmpty() )
|
||||
{
|
||||
QFont f = font();
|
||||
f.setBold( true );
|
||||
|
@ -877,6 +877,11 @@ void TabBoxSelectionItem::moveTo( QGraphicsItem * item )
|
|||
}
|
||||
|
||||
show();
|
||||
|
||||
if (!m_animEndRect.isEmpty()) {
|
||||
setPos(m_animEndRect.topLeft());
|
||||
}
|
||||
|
||||
m_animStartRect = QRectF( pos(), boundingRect().size() );
|
||||
m_animEndRect = QRectF( item->pos(), item->boundingRect().size() );
|
||||
m_timeLine->stop();
|
||||
|
@ -886,6 +891,9 @@ void TabBoxSelectionItem::moveTo( QGraphicsItem * item )
|
|||
void TabBoxSelectionItem::animateMove( qreal t )
|
||||
{
|
||||
setPos(m_animStartRect.topLeft() * (1 - t) + m_animEndRect.topLeft() * t);
|
||||
if (qFuzzyCompare(t, qreal(1.0))) {
|
||||
m_animEndRect = QRect();
|
||||
}
|
||||
}
|
||||
|
||||
//*******************************
|
||||
|
|
Loading…
Reference in a new issue