2 Situare - A location system for Facebook
3 Copyright (C) 2010 Ixonos Plc. Authors:
5 Kaj Wallin - kaj.wallin@ixonos.com
6 Pekka Nissinen - pekka.nissinen@ixonos.com
8 Situare is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 version 2 as published by the Free Software Foundation.
12 Situare is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with Situare; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
23 #ifndef FULLSCREENBUTTON_H
24 #define FULLSCREENBUTTON_H
26 #include <QToolButton>
31 * @brief Fullscreen button class
33 * @author Kaj Wallin - kaj.wallin (at) ixonos.com
34 * @author Pekka Nissinen - pekka.nissinen (at) ixonos.com
36 * @class FullScreenButton fullscreenbutton.h "ui/fullscreenbutton.h"
38 class FullScreenButton : public QToolButton
46 * @param parent Parent widget
48 FullScreenButton(QWidget *parent = 0);
55 /*******************************************************************************
56 * BASE CLASS INHERITED AND REIMPLEMENTED MEMBER FUNCTIONS
57 ******************************************************************************/
60 * @brief Event handler for paint events
62 * Paints the button and its icon
63 * @param event Paint event
65 void paintEvent(QPaintEvent *event);
67 /*******************************************************************************
68 * MEMBER FUNCTIONS AND SLOTS
69 ******************************************************************************/
72 * @brief Invoke the button (if not already visible) and set hiding timer
76 /*******************************************************************************
78 ******************************************************************************/
80 QColor *m_normalColor; ///< Normal background color
81 QLinearGradient *m_selectedGradient; ///< Selected background
82 QPainterPath m_backgroundPath; ///< Item shape path
83 QTimer *m_hidingTimer; ///< Timer for hiding the button after a delay
86 #endif // FULLSCREENBUTTON_H