Warning, file /multimedia/amarok/src/playlist/PlaylistInfoWidget.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /**************************************************************************************** 0002 * Copyright (c) 2011 Kevin Funk <krf@electrostorm.net> * 0003 * Copyright (c) 2013 Ralf Engels <ralf-engels@gmx.de> * 0004 * * 0005 * This program is free software; you can redistribute it and/or modify it under * 0006 * the terms of the GNU General Public License as published by the Free Software * 0007 * Foundation; either version 2 of the License, or (at your option) any later * 0008 * version. * 0009 * * 0010 * This program is distributed in the hope that it will be useful, but WITHOUT ANY * 0011 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * 0012 * PARTICULAR PURPOSE. See the GNU General Public License for more details. * 0013 * * 0014 * You should have received a copy of the GNU General Public License along with * 0015 * this program. If not, see <http://www.gnu.org/licenses/>. * 0016 ****************************************************************************************/ 0017 0018 #ifndef AMAROK_PLAYLISTINFOWIDGET_H 0019 #define AMAROK_PLAYLISTINFOWIDGET_H 0020 0021 #include <QLabel> 0022 0023 /** A small widget that displays the current length and size of the playlist. 0024 It is used in the bottom bar of the playlist view */ 0025 class PlaylistInfoWidget : public QLabel 0026 { 0027 Q_OBJECT 0028 0029 public: 0030 explicit PlaylistInfoWidget( QWidget* parent = nullptr ); 0031 ~PlaylistInfoWidget() override; 0032 0033 protected: 0034 bool event( QEvent *event ) override; 0035 0036 private Q_SLOTS: 0037 void updateTotalPlaylistLength(); 0038 0039 }; 0040 #endif