TTKMusicPlayer
3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
The class of the cloud shared song upload table widget. More...
#include <musiccloudtablewidget.h>
Signals | |
void | reuploadFilesToServer (const QStringList &items) |
Signals inherited from MusicAbstractDownloadTableWidget | |
void | addSongToPlaylist (const QStringList &items) |
void | updateItemTitle (int index) |
Signals inherited from MusicAbstractSongsListTableWidget | |
void | isCurrentPlaylistRow (bool &state) |
Private Member Functions | |
virtual void | addCellItem (int index, const MusicSong &record) overridefinal |
virtual void | contextMenuEvent (QContextMenuEvent *event) overridefinal |
Additional Inherited Members | |
Protected Member Functions inherited from MusicAbstractSongsListTableWidget | |
void | createMoreMenu (QMenu *menu) |
QString | currentSongPath () const |
QString | songPath (int index) const |
QString | currentSongName () const |
QString | songName (int index) const |
Protected Member Functions inherited from MusicSmoothMovingTableWidget | |
virtual void | wheelEvent (QWheelEvent *event) override |
Protected Member Functions inherited from TTKAbstractTableWidget | |
virtual void | leaveEvent (QEvent *event) override |
void | setRowColor (int row, const QColor &color) const |
bool | isValid () const |
Protected Attributes inherited from MusicAbstractDownloadTableWidget | |
TTK::Record | m_type |
TTKProgressBarItemDelegate * | m_progressBarDelegate |
Protected Attributes inherited from MusicAbstractSongsListTableWidget | |
int | m_playlistRow |
int | m_playRowIndex |
MusicSongList * | m_songs |
Protected Attributes inherited from MusicSmoothMovingTableWidget | |
bool | m_initialized |
int | m_previousValue |
int | m_deltaValue |
QScrollBar * | m_scrollBar |
QTimer * | m_animationTimer |
QPropertyAnimation * | m_slowAnimation |
Protected Attributes inherited from TTKAbstractTableWidget | |
int | m_previousColorRow |
int | m_previousClickRow |
QColor | m_backgroundColor |
The class of the cloud shared song upload table widget.
Definition at line 54 of file musiccloudtablewidget.h.
|
explicit |
Object constructor.
Definition at line 63 of file musiccloudtablewidget.cpp.
References TTK::CloudUpload, G_CONNECTION_PTR, MusicAbstractDownloadTableWidget::m_type, TTK::UI::ScrollBarStyle03, and TTK::Widget::setTransparent().
MusicCloudUploadTableWidget::~MusicCloudUploadTableWidget | ( | ) |
Object destructor.
Definition at line 84 of file musiccloudtablewidget.cpp.
References G_CONNECTION_PTR.
|
finaloverrideprivatevirtual |
Create cell item by input record.
Implements MusicAbstractDownloadTableWidget.
Definition at line 153 of file musiccloudtablewidget.cpp.
References MusicSong::addTimeStr(), TTK::UI::Color01, TTK::Widget::elidedText(), MusicSong::name(), MusicSong::path(), QtItemSetTextAlignment, MusicSong::sizeStr(), MusicAbstractSongsListTableWidget::totalHeight(), TTK_DATA_ROLE, and TTK_TIME_ROLE.
Referenced by uploadFileError().
|
finaloverrideprivatevirtual |
Override the widget event.
Reimplemented from MusicAbstractDownloadTableWidget.
Definition at line 176 of file musiccloudtablewidget.cpp.
References MusicAbstractSongsListTableWidget::clearItems(), MusicAbstractSongsListTableWidget::currentSongPath(), TTK::String::isNetworkUrl(), MusicAbstractSongsListTableWidget::m_songs, TTK::UI::MenuStyle02, MusicAbstractSongsListTableWidget::openFileDir(), MusicAbstractDownloadTableWidget::removeItemAt(), reuploadFile(), reuploadFiles(), and MusicAbstractSongsListTableWidget::showFileInformation().
|
slot |
Reupload failed file.
Definition at line 102 of file musiccloudtablewidget.cpp.
References TTKAbstractTableWidget::isValid(), MusicToastLabel::popup(), reuploadFilesToServer(), and TTK_DATA_ROLE.
Referenced by contextMenuEvent().
|
slot |
Reupload failed files.
Definition at line 123 of file musiccloudtablewidget.cpp.
References TTKAbstractTableWidget::isValid(), MusicToastLabel::popup(), reuploadFilesToServer(), TTKAbstractTableWidget::selectedIndexList(), and TTK_DATA_ROLE.
Referenced by contextMenuEvent().
|
signal |
Reupload files to server.
Referenced by reuploadFile(), and reuploadFiles().
|
slot |
Upload file error occurred.
Definition at line 89 of file musiccloudtablewidget.cpp.
References addCellItem(), MusicCloudDataItem::m_dataItem, QSyncDataItem::m_name, MusicCloudDataItem::m_path, QSyncDataItem::m_size, MusicSong::setName(), MusicSong::setPath(), MusicSong::setSizeStr(), and TTK::Number::sizeByteToLabel().