The API changed for rotations, requiring another argument for positions.
[contacts_plasmoid.git] / contactbutton.h
blobf49c76f319b5e3a1a40da6ec506c476fe88dcd69
1 #ifndef ContactButton_H
2 #define ContactButton_H
4 #include <QGraphicsWidget>
5 #include <QPixmap>
7 class ContactButton : public QGraphicsWidget
9 Q_OBJECT
11 public:
12 ContactButton( const QString &pixmapPath, QGraphicsItem *parent = 0 );
13 ContactButton( ContactButton &button );
15 void paint ( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0 );
17 void mousePressEvent(QGraphicsSceneMouseEvent *event);
19 protected:
20 QSizeF sizeHint ( Qt::SizeHint which, const QSizeF & constraint = QSizeF() ) const;
22 private:
23 QPixmap mPixmap;
25 Q_SIGNALS:
26 void clicked();
29 #endif