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) 2004 Max Howell <max.howell@methylblue.com> * 0005 * Copyright (c) 2007 Dan Meltzer <parallelgrapefruit@gmail.com> * 0006 * Copyright (c) 2009 Martin Sandsmark <sandsmark@samfundet.no> * 0007 * * 0008 * This program is free software; you can redistribute it and/or modify it under * 0009 * the terms of the GNU General Public License as published by the Free Software * 0010 * Foundation; either version 2 of the License, or (at your option) any later * 0011 * version. * 0012 * * 0013 * This program is distributed in the hope that it will be useful, but WITHOUT ANY * 0014 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * 0015 * PARTICULAR PURPOSE. See the GNU General Public License for more details. * 0016 * * 0017 * You should have received a copy of the GNU General Public License along with * 0018 * this program. If not, see <http://www.gnu.org/licenses/>. * 0019 ****************************************************************************************/ 0020 0021 #include "CoverLabel.h" 0022 0023 CoverLabel::CoverLabel( QWidget * parent, Qt::WindowFlags f ) 0024 : QLabel( parent, f) 0025 {} 0026 0027 void CoverLabel::setInformation( const QString &artist, const QString &album ) 0028 { 0029 m_artist = artist; 0030 m_album = album; 0031 } 0032 0033 void CoverLabel::mouseReleaseEvent( QMouseEvent *pEvent ) 0034 { 0035 if( pEvent->button() == Qt::LeftButton || pEvent->button() == Qt::RightButton ) 0036 { 0037 // Amarok::coverContextMenu( this, pEvent->globalPos(), m_albumPtr, false ); 0038 } 0039 } 0040