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