to be easily usable outside of libplasma, signals need full namespace usage. we really ought to do a good review of libplasma for this issue
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=760653
This commit is contained in:
parent
6329570f8f
commit
d191de06d3
@ -113,11 +113,11 @@ void LayoutAnimator::setAutoDeleteOnRemoval(bool autoDelete)
|
|||||||
d->autoDeleteOnRemoval = autoDelete;
|
d->autoDeleteOnRemoval = autoDelete;
|
||||||
|
|
||||||
if ( autoDelete ) {
|
if ( autoDelete ) {
|
||||||
connect( this , SIGNAL(stateChanged(LayoutItem*,State,State)) , this ,
|
connect( this , SIGNAL(stateChanged(Plasma::LayoutItem*,Plasma::LayoutAnimator::State,Plasma::LayoutAnimator::State)) , this ,
|
||||||
SLOT(itemAutoDeleter(LayoutItem*,State,State)) );
|
SLOT(itemAutoDeleter(Plasma::LayoutItem*,Plasma::LayoutAnimator::State,Plasma::LayoutAnimator::State)) );
|
||||||
} else {
|
} else {
|
||||||
disconnect( this , SIGNAL(stateChanged(LayoutItem*,State,State)) , this ,
|
disconnect( this , SIGNAL(stateChanged(Plasma::LayoutItem*,Plasma::LayoutAnimator::State,Plasma::LayoutAnimator::State)) , this ,
|
||||||
SLOT(itemAutoDeleter(LayoutItem*,State,State)) );
|
SLOT(itemAutoDeleter(Plasma::LayoutItem*,Plasma::LayoutAnimator::State,Plasma::LayoutAnimator::State)) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -126,7 +126,7 @@ bool LayoutAnimator::autoDeleteOnRemoval() const
|
|||||||
return d->autoDeleteOnRemoval;
|
return d->autoDeleteOnRemoval;
|
||||||
}
|
}
|
||||||
|
|
||||||
void LayoutAnimator::itemAutoDeleter(LayoutItem *item , State oldState , State newState)
|
void LayoutAnimator::itemAutoDeleter(Plasma::LayoutItem *item, Plasma::LayoutAnimator::State oldState, Plasma::LayoutAnimator::State newState)
|
||||||
{
|
{
|
||||||
if ( oldState == RemovedState && newState == DeadState ) {
|
if ( oldState == RemovedState && newState == DeadState ) {
|
||||||
if ( item->graphicsItem() ) {
|
if ( item->graphicsItem() ) {
|
||||||
@ -275,7 +275,6 @@ void LayoutAnimator::animationFinished(LayoutItem* item)
|
|||||||
case RemovedState:
|
case RemovedState:
|
||||||
d->states.remove(item);
|
d->states.remove(item);
|
||||||
d->geometries.remove(item);
|
d->geometries.remove(item);
|
||||||
|
|
||||||
emit stateChanged(item, RemovedState, DeadState);
|
emit stateChanged(item, RemovedState, DeadState);
|
||||||
break;
|
break;
|
||||||
case StandardState:
|
case StandardState:
|
||||||
|
@ -184,7 +184,7 @@ public:
|
|||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
/** This signal is emitted when the state of an item in the animator changes. */
|
/** This signal is emitted when the state of an item in the animator changes. */
|
||||||
void stateChanged( LayoutItem *item , State oldState , State newState );
|
void stateChanged(Plasma::LayoutItem *item, Plasma::LayoutAnimator::State oldState, Plasma::LayoutAnimator::State newState);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void updateItem( qreal value , LayoutItem* item );
|
virtual void updateItem( qreal value , LayoutItem* item );
|
||||||
@ -192,7 +192,7 @@ protected:
|
|||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void valueChanged(qreal value);
|
void valueChanged(qreal value);
|
||||||
void animationCompleted();
|
void animationCompleted();
|
||||||
void itemAutoDeleter( LayoutItem *item , State oldState , State newState );
|
void itemAutoDeleter(Plasma::LayoutItem *item, Plasma::LayoutAnimator::State oldState, Plasma::LayoutAnimator::State newState);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void moveEffectUpdateItem(qreal value,LayoutItem* item,Effect effect);
|
void moveEffectUpdateItem(qreal value,LayoutItem* item,Effect effect);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user