TTKMusicPlayer
4.1.3.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
#include "ttkqtglobal.h"
Go to the source code of this file.
Namespaces | |
QtCompat | |
The namespace of the qt compat function wrapper. | |
Macros | |
#define | QtFontWidth(p, t) p.horizontalAdvance(t) |
Font string width. More... | |
#define | QtImageBytes(p) p.sizeInBytes() |
Image byte count. More... | |
#define | QtItemSetTextAlignment(p, a) p->setTextAlignment(Qt::Alignment(a)); |
Item text alignment. More... | |
#define | QtContainerSwap(p, i, j) p->swapItemsAt(i, j) |
Container swap. More... | |
#define | QtNetworkErrorConnect(p, q, f, s) QObject::connect(p, SIGNAL(errorOccurred(QNetworkReply::NetworkError)), q, s(f(QNetworkReply::NetworkError))) |
Network error connect. More... | |
#define | QtNetworkErrorVoidConnect(p, q, f, s) QObject::connect(p, SIGNAL(errorOccurred(QNetworkReply::NetworkError)), q, s(f())) |
Network error void connect. More... | |
#define | QtSocketErrorConnect(p, q, f, s) QObject::connect(p, SIGNAL(errorOccurred(QAbstractSocket::SocketError)), q, s(f(QAbstractSocket::SocketError))) |
Socket error connect. More... | |
#define | QtSocketErrorVoidConnect(p, q, f, s) QObject::connect(p, SIGNAL(errorOccurred(QAbstractSocket::SocketError)), q, s(f())) |
Socket error void connect. More... | |
#define | QtProcessConnect(p, q, f, s) QObject::connect(p, SIGNAL(errorOccurred(QProcess::ProcessError)), q, s(f(QProcess::ProcessError))) |
Process error connect. More... | |
#define | QtProcessVoidConnect(p, q, f, s) QObject::connect(p, SIGNAL(errorOccurred(QProcess::ProcessError)), q, s(f())) |
Process error void connect. More... | |
#define | QtButtonGroupConnect(p, q, f, s) QObject::connect(p, SIGNAL(idClicked(int)), q, s(f(int))) |
Button group connect. More... | |
#define | QtButtonGroupVoidConnect(p, q, f, s) QObject::connect(p, SIGNAL(idClicked(int)), q, s(f())) |
Button group void connect. More... | |
#define | QtNamespace(p) Qt::p |
Qt use namespace. More... | |
#define | QtLablePixmap(p) p->pixmap(Qt::ReturnByValue) |
Lable pixmap. More... | |
#define | QtSkipEmptyParts Qt::SkipEmptyParts |
String skip empty parts. More... | |
#define | QtWheelDelta(p) p->angleDelta().y() |
Event wheel. More... | |
#define | QtMouseX(p) p->position().x() |
Event mouse. More... | |
#define | QtMouseY(p) p->position().y() |
#define | QtMousePos(p) p->position() |
#define | QtMouseGlobalX(p) p->globalPosition().x() |
#define | QtMouseGlobalY(p) p->globalPosition().y() |
#define | QtMouseGlobalPos(p) p->globalPosition().toPoint() |
#define | QtEnterEvent QEnterEvent |
Event enter. More... | |
#define | QtVariantType(p) p.typeId() |
Variant type. More... | |
#define | QtKeySequence(k, m) QKeySequence(QKeyCombination(m, k)) |
KeySequence. More... | |
#define | QtKeyCombine(p) p.toCombined() |
KeySequence data. More... | |
#define QtButtonGroupConnect | ( | p, | |
q, | |||
f, | |||
s | |||
) | QObject::connect(p, SIGNAL(idClicked(int)), q, s(f(int))) |
Button group connect.
Definition at line 101 of file ttkqtcompat.h.
Referenced by QKugouWindow::createKugouSongWidget(), MusicWebDJRadioInfoWidget::createLabels(), MusicAlbumQueryWidget::createLabels(), MusicToplistQueryWidget::createLabels(), MusicWebMVRadioInfoWidget::createLabels(), MusicArtistQueryWidget::createLabels(), MusicSongSearchOnlineWidget::createToolWidget(), MusicSettingWidget::initDownloadWidget(), MusicVideoBarrageStylePopWidget::initialize(), MusicConnectTransferWidget::initialize(), MusicEnhancedPopWidget::initialize(), MusicAbstractAnimationWidget::MusicAbstractAnimationWidget(), MusicColorDialog::MusicColorDialog(), MusicLrcFloatSettingWidget::MusicLrcFloatSettingWidget(), MusicMessageBox::MusicMessageBox(), MusicTimerWidget::MusicTimerWidget(), MusicPlaylistQueryInfoWidget::setResultDataItem(), MusicRightAreaWidget::setupUi(), and TTKTabButton::TTKTabButton().
#define QtButtonGroupVoidConnect | ( | p, | |
q, | |||
f, | |||
s | |||
) | QObject::connect(p, SIGNAL(idClicked(int)), q, s(f())) |
Button group void connect.
Definition at line 108 of file ttkqtcompat.h.
#define QtContainerSwap | ( | p, | |
i, | |||
j | |||
) | p->swapItemsAt(i, j) |
Container swap.
Definition at line 52 of file ttkqtcompat.h.
Referenced by MusicSongsContainerWidget::itemIndexSwaped().
#define QtEnterEvent QEnterEvent |
Event enter.
Definition at line 160 of file ttkqtcompat.h.
#define QtFontWidth | ( | p, | |
t | |||
) | p.horizontalAdvance(t) |
Font string width.
Definition at line 31 of file ttkqtcompat.h.
Referenced by TTK::Widget::fontTextWidth(), TTKThemeLineLabel::paintEvent(), and TTKToastLabel::setText().
#define QtImageBytes | ( | p | ) | p.sizeInBytes() |
Image byte count.
Definition at line 38 of file ttkqtcompat.h.
Referenced by QAlgorithm::WaterWave::render().
#define QtItemSetTextAlignment | ( | p, | |
a | |||
) | p->setTextAlignment(Qt::Alignment(a)); |
Item text alignment.
Definition at line 45 of file ttkqtcompat.h.
Referenced by MusicCloudDownloadTableWidget::addCellItem(), MusicDownloadRecordTableWidget::addCellItem(), MusicSongSearchPopTableWidget::addCellItem(), MusicConnectTransferCompleteTableWidget::addCellItem(), MusicLocalManagerStatisticTableWidget::addCellItem(), MusicCloudUploadTableWidget::addCellItem(), MusicCloudManagerTableWidget::addCellItem(), MusicConnectTransferTableWidget::addCellItems(), MusicSongCheckToolsRenameTableWidget::addCellItems(), MusicSongItemSelectedTableWidget::addCellItems(), MusicLrcDownloadBatchTableWidget::addCellItems(), MusicMobileSongsTableWidget::addCellItems(), MusicLrcLocalLinkTableWidget::addCellItems(), MusicFileAssociationTableWidget::addCellItems(), MusicFunctionTableWidget::addCellItems(), MusicSongCheckToolsDuplicateTableWidget::addCellItems(), MusicLocalManagerSongsTableWidget::addCellItems(), MusicSongCheckToolsQualityTableWidget::addCellItems(), MusicLrcPosterTableWidget::addCellItems(), MusicWebFMRadioWidget::addCelltItems(), MusicReplayGainWidget::addItemFinished(), MusicSongsListPlayedTableWidget::adjustPlayWidgetRow(), MusicSongsListPlayTableWidget::adjustPlayWidgetRow(), MusicWebDJRadioProgramTableWidget::createProgramItem(), MusicItemQueryTableWidget::createResultItem(), MusicPlaylistBackupTableWidget::updateSongsList(), MusicSongsListPlayedTableWidget::updateSongsList(), and MusicSongsListPlayTableWidget::updateSongsList().
#define QtKeyCombine | ( | p | ) | p.toCombined() |
KeySequence data.
Definition at line 181 of file ttkqtcompat.h.
Referenced by QGlobalShortcutPrivate::setShortcut().
#define QtKeySequence | ( | k, | |
m | |||
) | QKeySequence(QKeyCombination(m, k)) |
KeySequence.
Definition at line 174 of file ttkqtcompat.h.
Referenced by QGlobalShortcutPrivate::setShortcut(), and QGlobalShortcutPrivate::unsetShortcut().
#define QtLablePixmap | ( | p | ) | p->pixmap(Qt::ReturnByValue) |
Lable pixmap.
Definition at line 122 of file ttkqtcompat.h.
Referenced by MusicLrcFloatPhotoItem::enterEvent(), MusicFunctionToolBoxTopWidget::isExpand(), MusicScreenSaverHoverItem::paintEvent(), MusicLrcFloatPhotoItem::sendUserSelectArt(), and MusicTransitionAnimationLabel::setPixmap().
#define QtMouseGlobalPos | ( | p | ) | p->globalPosition().toPoint() |
Definition at line 148 of file ttkqtcompat.h.
Referenced by MusicMoveButton::mouseMoveEvent(), TTKAbstractMoveDialog::mouseMoveEvent(), TTKAbstractMoveWidget::mouseMoveEvent(), TTKAbstractMoveResizeWidget::mouseMoveEvent(), MusicLrcContainerForDesktop::mouseMoveEvent(), MusicLrcContainerForInterior::mouseMoveEvent(), MusicMoveButton::mousePressEvent(), TTKAbstractMoveDialog::mousePressEvent(), TTKAbstractMoveWidget::mousePressEvent(), TTKAbstractMoveResizeWidget::mousePressEvent(), MusicLrcContainerForDesktop::mousePressEvent(), MusicLrcContainerForInterior::mousePressEvent(), MusicMoveButton::mouseReleaseEvent(), TTKAbstractMoveWidget::mouseReleaseEvent(), TTKAbstractMoveDialog::mouseReleaseEvent(), and MusicLrcContainerForInterior::mouseReleaseEvent().
#define QtMouseGlobalX | ( | p | ) | p->globalPosition().x() |
Definition at line 146 of file ttkqtcompat.h.
Referenced by MusicMoveButton::mouseMoveEvent(), TTKAbstractMoveDialog::mouseMoveEvent(), and TTKAbstractMoveWidget::mouseMoveEvent().
#define QtMouseGlobalY | ( | p | ) | p->globalPosition().y() |
Definition at line 147 of file ttkqtcompat.h.
Referenced by TTKAbstractMoveDialog::mouseMoveEvent(), TTKAbstractMoveWidget::mouseMoveEvent(), and MusicLrcContainerForInterior::mouseMoveEvent().
#define QtMousePos | ( | p | ) | p->position() |
Definition at line 145 of file ttkqtcompat.h.
#define QtMouseX | ( | p | ) | p->position().x() |
Event mouse.
Definition at line 143 of file ttkqtcompat.h.
#define QtMouseY | ( | p | ) | p->position().y() |
Definition at line 144 of file ttkqtcompat.h.
#define QtNamespace | ( | p | ) | Qt::p |
Qt use namespace.
Definition at line 115 of file ttkqtcompat.h.
Referenced by MusicLrcFromKrc::decode(), MusicDownLoadTextRequest::downLoadFinished(), MusicWYDownLoadTextRequest::downLoadFinished(), MusicKWDownLoadTextRequest::downLoadFinished(), and MusicLrcAnalysis::saveData().
#define QtNetworkErrorConnect | ( | p, | |
q, | |||
f, | |||
s | |||
) | QObject::connect(p, SIGNAL(errorOccurred(QNetworkReply::NetworkError)), q, s(f(QNetworkReply::NetworkError))) |
Network error connect.
Definition at line 59 of file ttkqtcompat.h.
Referenced by MusicTXDownloadBackgroundRequest::downLoadUrl(), MusicKWQueryPlaylistRequest::morePlaylistDetails(), QSyncDeleteData::request(), QSyncDownloadData::request(), QSyncListData::request(), QSyncUploadData::request(), MusicDownloadQueueRequest::startDownload(), MusicKWSongCommentsRequest::startToPage(), MusicKGSongCommentsRequest::startToPage(), MusicUnityQueryMovieRequest::startToPage(), MusicKGQueryRequest::startToPage(), MusicKWQueryRequest::startToPage(), MusicKWQueryToplistRequest::startToPage(), MusicWYSongCommentsRequest::startToPage(), MusicKGQueryToplistRequest::startToPage(), MusicKGQueryAlbumRequest::startToPage(), MusicKGQueryArtistListRequest::startToPage(), MusicWYQueryAlbumRequest::startToPage(), MusicWYQueryArtistListRequest::startToPage(), MusicWYQueryArtistRequest::startToPage(), MusicKGQueryArtistRequest::startToPage(), MusicKWQueryAlbumRequest::startToPage(), MusicDJRadioProgramCategoryRequest::startToPage(), MusicWYQueryMovieRequest::startToPage(), MusicWYQueryPlaylistRequest::startToPage(), MusicKGQueryMovieRequest::startToPage(), MusicWYQueryRequest::startToPage(), MusicKWQueryArtistListRequest::startToPage(), MusicWYQueryToplistRequest::startToPage(), MusicKGQueryPlaylistRequest::startToPage(), MusicKWQueryArtistRequest::startToPage(), MusicKWQueryMovieRequest::startToPage(), MusicKWQueryPlaylistRequest::startToPage(), MusicKWPlaylistCommentsRequest::startToPage(), MusicKGPlaylistCommentsRequest::startToPage(), MusicWYPlaylistCommentsRequest::startToPage(), MusicKGQueryArtistAlbumRequest::startToPage(), MusicWYQueryArtistAlbumRequest::startToPage(), MusicKWQueryArtistAlbumRequest::startToPage(), MusicKGQueryArtistMovieRequest::startToPage(), MusicKWQueryArtistMovieRequest::startToPage(), MusicWYQueryArtistMovieRequest::startToPage(), ToolFM::startToRequest(), MusicYDTranslationRequest::startToRequest(), MusicBPDownloadBackgroundRequest::startToRequest(), MusicDownLoadTextRequest::startToRequest(), MusicPVCounterRequest::startToRequest(), MusicResourceRequest::startToRequest(), MusicBingTranslationRequest::startToRequest(), MusicWYTranslationRequest::startToRequest(), MusicFMRadioSongRequest::startToRequest(), MusicKGDownloadBackgroundRequest::startToRequest(), MusicWYCoverSourceRequest::startToRequest(), MusicBarrageRequest::startToRequest(), MusicWYDownLoadTextRequest::startToRequest(), MusicCiBaRequest::startToRequest(), MusicKWDownLoadTextRequest::startToRequest(), MusicKWDownloadBackgroundRequest::startToRequest(), MusicDJRadioCategoryRequest::startToRequest(), MusicBDTranslationRequest::startToRequest(), MusicDataSourceRequest::startToRequest(), MusicDJRadioProgramRequest::startToRequest(), MusicIdentifySongRequest::startToRequest(), MusicTXDownloadBackgroundRequest::startToRequest(), MusicKWDownLoadCoverRequest::startToRequest(), MusicDownloadDataRequest::startToRequest(), MusicSongSuggestRequest::startToSearch(), MusicKGDiscoverListRequest::startToSearch(), MusicSongRecommendRequest::startToSearch(), MusicKWDiscoverListRequest::startToSearch(), MusicWYDiscoverListRequest::startToSearch(), MusicAbstractMVRadioRequest::startToSearch(), MusicWYQueryPlaylistRequest::startToSearch(), MusicDJRadioProgramCategoryRequest::startToSearch(), MusicKWQueryPlaylistRequest::startToSearch(), MusicKGQueryPlaylistRequest::startToSearch(), MusicKWQueryRequest::startToSearchByID(), MusicKGQueryRequest::startToSearchByID(), and MusicWYQueryRequest::startToSearchByID().
#define QtNetworkErrorVoidConnect | ( | p, | |
q, | |||
f, | |||
s | |||
) | QObject::connect(p, SIGNAL(errorOccurred(QNetworkReply::NetworkError)), q, s(f())) |
Network error void connect.
Definition at line 66 of file ttkqtcompat.h.
Referenced by TTK::fetchFileSizeByUrl(), TTK::syncNetworkQueryForGet(), TTK::syncNetworkQueryForPatch(), TTK::syncNetworkQueryForPost(), and TTK::syncNetworkQueryForPut().
#define QtProcessConnect | ( | p, | |
q, | |||
f, | |||
s | |||
) | QObject::connect(p, SIGNAL(errorOccurred(QProcess::ProcessError)), q, s(f(QProcess::ProcessError))) |
Process error connect.
Definition at line 87 of file ttkqtcompat.h.
#define QtProcessVoidConnect | ( | p, | |
q, | |||
f, | |||
s | |||
) | QObject::connect(p, SIGNAL(errorOccurred(QProcess::ProcessError)), q, s(f())) |
Process error void connect.
Definition at line 94 of file ttkqtcompat.h.
Referenced by MusicReplayGainWidget::addFileButtonClicked(), MusicReplayGainWidget::addFilesButtonClicked(), MusicReplayGainWidget::applyButtonClicked(), and MusicDeviceInfoModule::removableDrive().
#define QtSkipEmptyParts Qt::SkipEmptyParts |
String skip empty parts.
Definition at line 129 of file ttkqtcompat.h.
Referenced by TTK::readColorConfig(), MusicSoundEffectsWidget::readSoundEffect(), and MusicApplicationModule::soundEffectChanged().
#define QtSocketErrorConnect | ( | p, | |
q, | |||
f, | |||
s | |||
) | QObject::connect(p, SIGNAL(errorOccurred(QAbstractSocket::SocketError)), q, s(f(QAbstractSocket::SocketError))) |
Socket error connect.
Definition at line 73 of file ttkqtcompat.h.
#define QtSocketErrorVoidConnect | ( | p, | |
q, | |||
f, | |||
s | |||
) | QObject::connect(p, SIGNAL(errorOccurred(QAbstractSocket::SocketError)), q, s(f())) |
Socket error void connect.
Definition at line 80 of file ttkqtcompat.h.
#define QtVariantType | ( | p | ) | p.typeId() |
Variant type.
Definition at line 167 of file ttkqtcompat.h.
Referenced by TTKAbstractXml::writeAttribute().
#define QtWheelDelta | ( | p | ) | p->angleDelta().y() |
Event wheel.
Definition at line 136 of file ttkqtcompat.h.
Referenced by MusicSmoothMovingTableWidget::wheelEvent(), and MusicSmoothMovingScrollArea::wheelEvent().