diff options
-rw-r--r-- | helper.cpp | 2 | ||||
-rw-r--r-- | helper.h | 2 | ||||
-rw-r--r-- | playerwidget.cpp | 2 | ||||
-rw-r--r-- | playerwidget.h | 4 |
4 files changed, 5 insertions, 5 deletions
@@ -31,7 +31,7 @@ namespace Helper { return a; } - quint64 lengthInSeconds(const QString &file){ + int lengthInSeconds(const QString &file){ TagLib::FileRef f(QString(file).toUtf8()); if(f.isNull()){ return 0; @@ -11,7 +11,7 @@ class QLabel; namespace Helper { QIcon iconFromQChar(const QChar &c, int pixelSize); QAction* createSeparator(QObject *parent); - quint64 lengthInSeconds(const QString &file); + int lengthInSeconds(const QString &file); QColor colorFromLabel(QLabel *l); void fillLabel(QLabel *l, QColor c); } diff --git a/playerwidget.cpp b/playerwidget.cpp index a21cdca..c9e8214 100644 --- a/playerwidget.cpp +++ b/playerwidget.cpp @@ -644,7 +644,7 @@ void PlayerWidget::addSong(const QModelIndex &idx){ item->setText(display); item->setIcon(QIcon(":/song.png")); item->setData(idx.data(CollectionWidget::FullPathRole), CollectionWidget::FullPathRole); - quint64 len = idx.data(CollectionWidget::LengthRole).toUInt(); + int len = idx.data(CollectionWidget::LengthRole).toInt(); if(len == 0){ len = Helper::lengthInSeconds(idx.data(CollectionWidget::FullPathRole).toString()); } diff --git a/playerwidget.h b/playerwidget.h index 1ace3fc..15da4fa 100644 --- a/playerwidget.h +++ b/playerwidget.h @@ -80,7 +80,7 @@ class PlayerWidget : public QWidget { void viewModeChanged(const QString &viewMode); void playModeChanged(const QString &playMode); void numFilesChanged(int numFiles); - void playListLengthChanged(quint64 secs); + void playListLengthChanged(qint64 secs); void message(const QString &msg); void modelChanged(); void setWinTitle(const QString &title); @@ -117,7 +117,7 @@ class PlayerWidget : public QWidget { QAction *mPauseA; QAction *mViewByAlbumsA; int mDurSecs; - quint64 mPlayListLength; + qint64 mPlayListLength; QString mCurWinTitle; QString mCurToolTip; QSystemTrayIcon *mTrayIcon; |