File indexing completed on 2024-05-05 04:49:25
0001 /**************************************************************************************** 0002 * Copyright (c) 2004 Mark Kretschmann <kretschmann@kde.org> * 0003 * Copyright (c) 2004 Stefan Bogner <bochi@online.ms> * 0004 * Copyright (c) 2007 Dan Meltzer <parallelgrapefruit@gmail.com> * 0005 * Copyright (c) 2009 Martin Sandsmark <sandsmark@samfundet.no> * 0006 * * 0007 * This program is free software; you can redistribute it and/or modify it under * 0008 * the terms of the GNU General Public License as published by the Free Software * 0009 * Foundation; either version 2 of the License, or (at your option) any later * 0010 * version. * 0011 * * 0012 * This program is distributed in the hope that it will be useful, but WITHOUT ANY * 0013 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * 0014 * PARTICULAR PURPOSE. See the GNU General Public License for more details. * 0015 * * 0016 * You should have received a copy of the GNU General Public License along with * 0017 * this program. If not, see <http://www.gnu.org/licenses/>. * 0018 ****************************************************************************************/ 0019 0020 #ifndef AMAROK_COVERLABEL_H 0021 #define AMAROK_COVERLABEL_H 0022 0023 #include <QLabel> 0024 #include <QMouseEvent> 0025 0026 class CoverLabel : public QLabel 0027 { 0028 public: 0029 explicit CoverLabel( QWidget * parent, Qt::WindowFlags f = {} ); 0030 0031 void setInformation( const QString &artist, const QString &album ); 0032 0033 protected: 0034 void mouseReleaseEvent( QMouseEvent *pEvent ) override; 0035 0036 private: 0037 QString m_artist; 0038 QString m_album; 0039 }; 0040 0041 #endif /* AMAROK_COVERLABEL_H */