Warning, file /multimedia/amarok/src/widgets/TimeLabel.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) 2005 Max Howell <max.howell@methylblue.com> * 0003 * Copyright (c) 2011 Kevin Funk <krf@electrostorm.net> * 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_TIMELABEL_H 0019 #define AMAROK_TIMELABEL_H 0020 0021 #include <QLabel> 0022 0023 0024 class TimeLabel : public QLabel 0025 { 0026 Q_OBJECT 0027 0028 public: 0029 explicit TimeLabel( QWidget *parent ); 0030 0031 bool showTime() const; 0032 void setShowTime( bool showTime ); 0033 0034 // hide base-class function 0035 void setText( const QString &text ); 0036 0037 protected: 0038 QSize sizeHint() const override; 0039 0040 private: 0041 bool m_showTime; 0042 }; 0043 0044 #endif /*AMAROK_TIMELABEL_H*/