33 #ifndef BORNAGAIN_GUI_COREGUI_VIEWS_ACCORDIONWIDGET_CLICKABLEFRAME_H
34 #define BORNAGAIN_GUI_COREGUI_VIEWS_ACCORDIONWIDGET_CLICKABLEFRAME_H
37 #include <QGraphicsView>
38 #include <QHBoxLayout>
40 #include <QMouseEvent>
44 #define ATTR_UNUSED __attribute__((unused))
53 ":/qAccordionIcons/caret-right.png";
55 ":/qAccordionIcons/caret-bottom.png";
The ClickableFrame class.
void setClickable(bool status)
Change clickable status.
void setNormalStylesheet(QString stylesheet)
Set the default stylesheet.
void mousePressEvent(QMouseEvent *event)
Reimplemented function to QMouseEvents.
QString getHoverStylesheet()
Get mouseover stylesheet.
void setHeader(QString header)
Set the header string.
void setHoverStylesheet(QString stylesheet)
Set mouseover stylesheet.
QString getHeader()
Get the header string.
void singleClick(QPoint pos)
Signal that is emitted upon a singleclick.
ClickableFrame(QString header, QWidget *parent=0, Qt::WindowFlags f={})
ClickableFrame constructor.
void enterEvent(QEvent *event)
Enter event for mouse over effects.
QString getNormalStylesheet()
Get the default stylesheet.
void setCaretPixmap(QString pixmapPath)
Set the caret pixmap.
bool getClickable()
Check if the frame is clickable.
void leaveEvent(QEvent *event)
Leave effect for mouse over effects.
const char *const CARRET_ICON_OPENED
Qt qrc "path" for the opened icon.
const char *const CARRET_ICON_CLOSED
Qt qrc "path" for the closed icon.