PageRenderTime 81ms CodeModel.GetById 40ms app.highlight 2ms RepoModel.GetById 38ms app.codeStats 0ms

/src/libtomahawk/widgets/HeaderWidget.h

http://github.com/tomahawk-player/tomahawk
C++ Header | 43 lines | 14 code | 8 blank | 21 comment | 0 complexity | d05c1f66de68c225cf524a5cf36ef580 MD5 | raw file
 1
 2/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
 3 *
 4 *   Copyright 2011, Casey Link <unnamedrambler@gmail.com>
 5 *
 6 *   Tomahawk is free software: you can redistribute it and/or modify
 7 *   it under the terms of the GNU General Public License as published by
 8 *   the Free Software Foundation, either version 3 of the License, or
 9 *   (at your option) any later version.
10 *
11 *   Tomahawk is distributed in the hope that it will be useful,
12 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
13 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 *   GNU General Public License for more details.
15 *
16 *   You should have received a copy of the GNU General Public License
17 *   along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef HEADERWIDGET_H
21#define HEADERWIDGET_H
22
23#include <QWidget>
24#include <QPaintEvent>
25
26#include "DllMacro.h"
27
28/**
29 * \class HeaderWidget
30 * \brief A QWidget subclass with a background for use in headers.
31 */
32class DLLEXPORT HeaderWidget : public QWidget
33{
34Q_OBJECT
35
36public:
37    HeaderWidget( QWidget* parent = 0 );
38    virtual ~HeaderWidget();
39
40    virtual void paintEvent( QPaintEvent* );
41};
42
43#endif