mirror of
https://github.com/gtalent/sc9k.git
synced 2025-01-23 07:23:38 -06:00
Remove no longer needed variables
This commit is contained in:
parent
3ebe14b411
commit
d52e31cec5
@ -14,7 +14,6 @@ MainWindow::MainWindow(QWidget *parent): QMainWindow(parent) {
|
|||||||
setWindowTitle(tr("Slide Controller 9000"));
|
setWindowTitle(tr("Slide Controller 9000"));
|
||||||
const auto mainWidget = new QWidget(this);
|
const auto mainWidget = new QWidget(this);
|
||||||
const auto rootLyt = new QVBoxLayout;
|
const auto rootLyt = new QVBoxLayout;
|
||||||
//const auto viewsLayout = new QHBoxLayout;
|
|
||||||
const auto controlsLayout = new QGridLayout;
|
const auto controlsLayout = new QGridLayout;
|
||||||
const auto slideView = new SlideView(this);
|
const auto slideView = new SlideView(this);
|
||||||
setCentralWidget(mainWidget);
|
setCentralWidget(mainWidget);
|
||||||
|
@ -117,13 +117,11 @@ void OpenLPClient::handleSongListResponse(QNetworkReply *reply) {
|
|||||||
QStringList songList;
|
QStringList songList;
|
||||||
auto doc = QJsonDocument::fromJson(data);
|
auto doc = QJsonDocument::fromJson(data);
|
||||||
auto items = doc.object()["results"].toObject()["items"].toArray();
|
auto items = doc.object()["results"].toObject()["items"].toArray();
|
||||||
m_songIdMap.clear();
|
|
||||||
m_songNameMap.clear();
|
m_songNameMap.clear();
|
||||||
for (const auto &item : items) {
|
for (const auto &item : items) {
|
||||||
auto song = item.toObject();
|
auto song = item.toObject();
|
||||||
auto name = song["title"].toString();
|
auto name = song["title"].toString();
|
||||||
auto id = song["id"].toString();
|
auto id = song["id"].toString();
|
||||||
m_songIdMap[name] = id;
|
|
||||||
m_songNameMap[id] = name;
|
m_songNameMap[id] = name;
|
||||||
songList.push_back(name);
|
songList.push_back(name);
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,6 @@ class OpenLPClient: public QObject {
|
|||||||
QNetworkAccessManager *m_songListNam = new QNetworkAccessManager(this);
|
QNetworkAccessManager *m_songListNam = new QNetworkAccessManager(this);
|
||||||
QNetworkAccessManager *m_slideListNam = new QNetworkAccessManager(this);
|
QNetworkAccessManager *m_slideListNam = new QNetworkAccessManager(this);
|
||||||
QTimer m_pollTimer;
|
QTimer m_pollTimer;
|
||||||
QHash<QString, QString> m_songIdMap;
|
|
||||||
QHash<QString, QString> m_songNameMap;
|
QHash<QString, QString> m_songNameMap;
|
||||||
int m_currentServiceId = -1;
|
int m_currentServiceId = -1;
|
||||||
QString m_currentSongId;
|
QString m_currentSongId;
|
||||||
|
Loading…
Reference in New Issue
Block a user