dtkWidgetsHUDItem.h 585 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// Version: $Id$
//
//

// Commentary:
//
//

// Change Log:
//
//

// Code:

#pragma once
#include <dtkWidgetsExport>

KLOCZKO Thibaud's avatar
KLOCZKO Thibaud committed
18 19 20
#include <dtkFonts/dtkFontAwesome>

#include <QtWidgets/QFrame>
21 22 23 24 25 26

class DTKWIDGETS_EXPORT dtkWidgetsHUDItem : public QFrame
{
    Q_OBJECT

public:
KLOCZKO Thibaud's avatar
KLOCZKO Thibaud committed
27
     dtkWidgetsHUDItem(fa::icon icon, QWidget *parent = nullptr);
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
    ~dtkWidgetsHUDItem(void);

signals:
    void clicked(void);

protected:
    void mousePressEvent(QMouseEvent *event);
    void paintEvent(QPaintEvent *event);

private:
    class dtkWidgetsHUDItemPrivate *d;
};

//
// dtkWidgetsHUDItem.h ends here