22 #include <QtGui/QPainter>
23 #include <QtGui/QPaintEvent>
25 class axlInspectorSwitchPrivate
35 d->pixmap = QPixmap(
":dtkGuiSupport/pixmaps/axlInspectorSwitch-off.png");
39 this->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
51 return d->pixmap.size();
56 d->toggled = !d->toggled;
59 d->pixmap = QPixmap(
":dtkGuiSupport/pixmaps/axlInspectorSwitch-on.png");
61 d->pixmap = QPixmap(
":dtkGuiSupport/pixmaps/axlInspectorSwitch-off.png");
70 QPainter painter(
this);
71 painter.drawPixmap(event->rect(), d->pixmap);
QSize sizeHint(void) const
void mousePressEvent(QMouseEvent *event)
void paintEvent(QPaintEvent *event)
~axlInspectorSwitch(void)
axlInspectorSwitch(QWidget *parent=0)