not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / plasma / applets / kickoff / ui / brandingbutton.h
blob698b34e50372dddc3db9425ab2ac639cf90d49b7
1 /*
2 Copyright 2008 Aaron Seigo <aseigo@kde.org>
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
20 #ifndef BRANDINGBUTTON_H
21 #define BRANDINGBUTTON_H
23 #include <QtGui/QToolButton>
25 namespace Plasma
27 class Svg;
28 } // namespace Plasma
30 namespace Kickoff
33 class BrandingButton : public QToolButton
35 Q_OBJECT
37 public:
38 BrandingButton(QWidget *parent = 0);
40 QSize sizeHint() const;
41 QSize minimumSizeHint() const;
43 protected:
44 void paintEvent(QPaintEvent *event);
46 protected Q_SLOTS:
47 void checkBranding();
48 void openHomepage();
50 private:
51 Plasma::Svg *m_svg;
52 QSize m_size;
53 bool m_doingBranding;
57 } // namespace KickOff
59 #endif