aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/qmmp/coverwidget.cpp47
-rw-r--r--src/qmmp/coverwidget.h50
-rw-r--r--src/qmmp/qmmp.pro4
3 files changed, 1 insertions, 100 deletions
diff --git a/src/qmmp/coverwidget.cpp b/src/qmmp/coverwidget.cpp
deleted file mode 100644
index b54e544e0..000000000
--- a/src/qmmp/coverwidget.cpp
+++ /dev/null
@@ -1,47 +0,0 @@
-/***************************************************************************
- * Copyright (C) 2009 by Ilya Kotov *
- * forkotov02@hotmail.ru *
- * *
- * This program 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 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program 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 this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
- ***************************************************************************/
-#include <QPixmap>
-#include <QPainter>
-#include <QPaintEvent>
-#include <QPixmap>
-
-#include "coverwidget.h"
-
-CoverWidget::CoverWidget(QWidget *parent)
- : QWidget(parent)
-{}
-
-
-CoverWidget::~CoverWidget()
-{}
-
-void CoverWidget::setPixmap(const QPixmap &pixmap)
-{
- m_pixmap = pixmap;
- update();
-}
-
-void CoverWidget::paintEvent (QPaintEvent *p)
-{
- QPainter paint(this);
- if(!m_pixmap.isNull())
- paint.drawPixmap(0,0, m_pixmap.scaled(p->rect().size()));
-}
-
diff --git a/src/qmmp/coverwidget.h b/src/qmmp/coverwidget.h
deleted file mode 100644
index b06e66f7e..000000000
--- a/src/qmmp/coverwidget.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/***************************************************************************
- * Copyright (C) 2009 by Ilya Kotov *
- * forkotov02@hotmail.ru *
- * *
- * This program 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 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program 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 this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
- ***************************************************************************/
-#ifndef PIXMAPWIDGET_H
-#define PIXMAPWIDGET_H
-
-#include <QWidget>
-#include <QPixmap>
-
-/**
- @author Ilya Kotov <forkotov02@hotmail.ru>
-*/
-
-class CoverWidget : public QWidget
-{
-Q_OBJECT
-public:
- CoverWidget(QWidget *parent = 0);
-
- ~CoverWidget();
-
- virtual void setPixmap(const QPixmap&);
-
-protected:
- void paintEvent (QPaintEvent *event);
-
-private:
- QPixmap m_pixmap;
-
-
-
-};
-
-#endif
diff --git a/src/qmmp/qmmp.pro b/src/qmmp/qmmp.pro
index 1c80f602f..9783539d2 100644
--- a/src/qmmp/qmmp.pro
+++ b/src/qmmp/qmmp.pro
@@ -20,7 +20,6 @@ HEADERS += recycler.h \
qmmp.h \
fileinfo.h \
volumecontrol.h \
- coverwidget.h \
metadatamodel.h \
tagmodel.h
SOURCES += recycler.cpp \
@@ -38,10 +37,9 @@ SOURCES += recycler.cpp \
qmmp.cpp \
fileinfo.cpp \
volumecontrol.cpp \
- coverwidget.cpp \
metadatamodel.cpp \
tagmodel.cpp
-FORMS +=
+
unix:TARGET = ../../lib/qmmp
win32:TARGET = ../../../bin/qmmp
CONFIG += release \