https://github.com/ialhashim/topo-blend
Revision 39b13612ebd645a65eda854771b517371f2f858a authored by ennetws on 13 March 2015, 18:17:18 UTC, committed by ennetws on 13 March 2015, 18:17:18 UTC
1 parent c702819
Raw File
Tip revision: 39b13612ebd645a65eda854771b517371f2f858a authored by ennetws on 13 March 2015, 18:17:18 UTC
Create README.md
Tip revision: 39b1361
TimelineSlider.h
#pragma once

#include <QGraphicsObject>

class TimelineSlider : public QGraphicsObject
{
	Q_OBJECT
public:
    TimelineSlider();

    QImage icon;

    // required QGraphicsItem members:
    QRectF boundingRect() const;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);

	int myY;
	void forceY(int newY);

	// Time operations
	void reset();
	int currentTime();

	bool isEnabled;
	void enable();

protected:
    virtual QVariant itemChange ( GraphicsItemChange change, const QVariant & value );

public slots:

signals:
	void timeChanged(int);
};

back to top