aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/coverviewer_p.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-03-09 19:36:12 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-03-09 19:36:12 +0000
commit012d7dab72fdcac72381db2493882eace82f8095 (patch)
tree75f7607d340b8921ee82b48fdd9747b7cbacb922 /src/qmmpui/coverviewer_p.h
parentec3164f83ee035abeefabcc69936db0a3b245f1c (diff)
downloadqmmp-012d7dab72fdcac72381db2493882eace82f8095.tar.gz
qmmp-012d7dab72fdcac72381db2493882eace82f8095.tar.bz2
qmmp-012d7dab72fdcac72381db2493882eace82f8095.zip
added cover tab to the track details dialog
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7083 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/coverviewer_p.h')
-rw-r--r--src/qmmpui/coverviewer_p.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/qmmpui/coverviewer_p.h b/src/qmmpui/coverviewer_p.h
new file mode 100644
index 000000000..d4a1b7bff
--- /dev/null
+++ b/src/qmmpui/coverviewer_p.h
@@ -0,0 +1,53 @@
+/***************************************************************************
+ * Copyright (C) 2017 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., *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
+ ***************************************************************************/
+#ifndef COVERVIEWER_H
+#define COVERVIEWER_H
+
+#include <QWidget>
+#include <QPixmap>
+
+class QMouseEvent;
+
+/**
+ @internal
+ @author Ilya Kotov <forkotov02@hotmail.ru>
+*/
+
+class CoverViewer : public QWidget
+{
+Q_OBJECT
+public:
+ CoverViewer(QWidget *parent = 0);
+
+ ~CoverViewer();
+
+ void setPixmap(const QPixmap&);
+
+protected:
+ void paintEvent(QPaintEvent *event);
+
+private slots:
+ void saveAs();
+
+private:
+ QPixmap m_pixmap;
+};
+
+#endif