Fullscreen button class. More...
#include "ui/fullscreenbutton.h"
Public Slots | |
void | invoke () |
Invoke the button (if not already visible) and set hiding timer. | |
Public Member Functions | |
FullScreenButton (QWidget *parent=0) | |
Constructor. | |
~FullScreenButton () | |
Desctructor. | |
Protected Member Functions | |
void | paintEvent (QPaintEvent *event) |
Event handler for paint events. | |
Private Attributes | |
QColor * | m_normalColor |
Normal background color. | |
QLinearGradient * | m_selectedGradient |
Selected background. | |
QPainterPath | m_backgroundPath |
Item shape path. | |
QTimer * | m_hidingTimer |
Timer for hiding the button after a delay. |
Fullscreen button class.
FullScreenButton::FullScreenButton | ( | QWidget * | parent = 0 |
) |
Constructor.
parent | Parent widget |
void FullScreenButton::paintEvent | ( | QPaintEvent * | event | ) | [protected] |
Event handler for paint events.
Paints the button and its icon
event | Paint event |