From d1fcc9d3de6cb955f72f1ba6da188d0da08c7ec6 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Wed, 27 Aug 2014 18:45:47 +0200 Subject: [PATCH] * Remove obsolete HeaderWidget class. --- src/libtomahawk/CMakeLists.txt | 1 - src/libtomahawk/widgets/HeaderWidget.cpp | 46 ------------------------ src/libtomahawk/widgets/HeaderWidget.h | 43 ---------------------- 3 files changed, 90 deletions(-) delete mode 100644 src/libtomahawk/widgets/HeaderWidget.cpp delete mode 100644 src/libtomahawk/widgets/HeaderWidget.h diff --git a/src/libtomahawk/CMakeLists.txt b/src/libtomahawk/CMakeLists.txt index 4201c450e..0a9681014 100644 --- a/src/libtomahawk/CMakeLists.txt +++ b/src/libtomahawk/CMakeLists.txt @@ -142,7 +142,6 @@ set( libGuiSources widgets/FilterHeader.cpp widgets/CaptionLabel.cpp widgets/HeaderLabel.cpp - widgets/HeaderWidget.cpp widgets/HistoryWidget.cpp widgets/ImageButton.cpp widgets/NewPlaylistWidget.cpp diff --git a/src/libtomahawk/widgets/HeaderWidget.cpp b/src/libtomahawk/widgets/HeaderWidget.cpp deleted file mode 100644 index fd1a1eb7a..000000000 --- a/src/libtomahawk/widgets/HeaderWidget.cpp +++ /dev/null @@ -1,46 +0,0 @@ -/* === This file is part of Tomahawk Player - === - * - * Copyright 2011, Casey Link - * - * Tomahawk is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Tomahawk is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Tomahawk. If not, see . - */ - -#include "HeaderWidget.h" - -#include "utils/TomahawkStyle.h" - -#include -#include -#include - - -HeaderWidget::HeaderWidget( QWidget* parent ) - : QWidget( parent ) -{ -} - - -HeaderWidget::~HeaderWidget() -{ -} - - -void -HeaderWidget::paintEvent( QPaintEvent* /* event */ ) -{ - QStylePainter p( this ); - QRect r = rect(); - - TomahawkStyle::horizontalHeader( &p, r ); -} diff --git a/src/libtomahawk/widgets/HeaderWidget.h b/src/libtomahawk/widgets/HeaderWidget.h deleted file mode 100644 index c7d693e4e..000000000 --- a/src/libtomahawk/widgets/HeaderWidget.h +++ /dev/null @@ -1,43 +0,0 @@ - -/* === This file is part of Tomahawk Player - === - * - * Copyright 2011, Casey Link - * - * Tomahawk is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Tomahawk is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Tomahawk. If not, see . - */ - -#ifndef HEADERWIDGET_H -#define HEADERWIDGET_H - -#include -#include - -#include "DllMacro.h" - -/** - * \class HeaderWidget - * \brief A QWidget subclass with a background for use in headers. - */ -class DLLEXPORT HeaderWidget : public QWidget -{ -Q_OBJECT - -public: - HeaderWidget( QWidget* parent = 0 ); - virtual ~HeaderWidget(); - - virtual void paintEvent( QPaintEvent* ); -}; - -#endif