missing property

svn path=/trunk/KDE/kdelibs/; revision=1070127
This commit is contained in:
Aaron J. Seigo 2010-01-04 23:06:50 +00:00
parent 29365773e2
commit 0337eb0ae3
2 changed files with 18 additions and 1 deletions

View File

@ -16,14 +16,17 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include "pulser_p.h" #include "pulser_p.h"
#include "pulsershadow_p.h"
#include <QEvent> #include <QEvent>
#include <QGraphicsWidget> #include <QGraphicsWidget>
#include <QParallelAnimationGroup> #include <QParallelAnimationGroup>
#include <QPropertyAnimation> #include <QPropertyAnimation>
#include <QWeakPointer> #include <QWeakPointer>
#include <kdebug.h> #include <kdebug.h>
#include "pulsershadow_p.h"
namespace Plasma namespace Plasma
{ {
@ -40,6 +43,16 @@ PulseAnimation::~PulseAnimation()
{ {
} }
void PulseAnimation::setTargetScale(qreal scale)
{
m_endScale = scale;
}
qreal PulseAnimation::targetScale() const
{
return m_endScale;
}
void PulseAnimation::setCopy() void PulseAnimation::setCopy()
{ {
QGraphicsWidget *target = targetWidget(); QGraphicsWidget *target = targetWidget();

View File

@ -41,6 +41,7 @@ class ShadowFake;
class PulseAnimation : public Animation class PulseAnimation : public Animation
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(qreal targetScale READ targetScale WRITE setTargetScale)
public: public:
/** Default Constructor */ /** Default Constructor */
@ -48,6 +49,9 @@ public:
/** Destructor */ /** Destructor */
~PulseAnimation(); ~PulseAnimation();
void setTargetScale(qreal scale);
qreal targetScale() const;
public Q_SLOTS: public Q_SLOTS:
/** /**
* Resets the shadow widget to its initial state (full translucent * Resets the shadow widget to its initial state (full translucent