mirror of
https://github.com/gtalent/sc9k.git
synced 2025-01-23 00:33:36 -06:00
Cleanup
This commit is contained in:
parent
453b584d86
commit
1ab03975f7
@ -16,6 +16,7 @@ SOURCES += \
|
||||
slideview.cpp
|
||||
|
||||
HEADERS += \
|
||||
consts.hpp \
|
||||
mainwindow.hpp \
|
||||
obsclient.hpp \
|
||||
openlpclient.hpp \
|
||||
|
3
main.cpp
3
main.cpp
@ -5,10 +5,11 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
#include "mainwindow.hpp"
|
||||
|
||||
#include <QApplication>
|
||||
|
||||
#include "mainwindow.hpp"
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
QApplication a(argc, argv);
|
||||
MainWindow w;
|
||||
|
@ -5,6 +5,7 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
@ -51,7 +51,7 @@ void OBSClient::poll() {
|
||||
|
||||
void OBSClient::handlePollResponse(QNetworkReply *reply) {
|
||||
if (reply->error()) {
|
||||
qDebug() << reply->errorString();
|
||||
qDebug() << "OBSClient error response:" << reply->errorString();
|
||||
emit pollFailed();
|
||||
return;
|
||||
}
|
||||
|
@ -5,6 +5,7 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QNetworkAccessManager>
|
||||
|
@ -86,13 +86,13 @@ void OpenLPClient::poll() {
|
||||
|
||||
void OpenLPClient::handleGeneralResponse(QNetworkReply *reply) {
|
||||
if (reply->error()) {
|
||||
qDebug() << reply->request().url() << ":" << reply->errorString();
|
||||
qDebug() << "OpenLPClient error response:" << reply->request().url() << ":" << reply->errorString();
|
||||
}
|
||||
}
|
||||
|
||||
void OpenLPClient::handlePollResponse(QNetworkReply *reply) {
|
||||
if (reply->error()) {
|
||||
qDebug() << reply->errorString();
|
||||
qDebug() << "OpenLPClient error response:" << reply->errorString();
|
||||
emit pollFailed();
|
||||
m_currentServiceId = -1;
|
||||
m_currentSongId = "";
|
||||
@ -121,7 +121,7 @@ void OpenLPClient::handlePollResponse(QNetworkReply *reply) {
|
||||
|
||||
void OpenLPClient::handleSongListResponse(QNetworkReply *reply) {
|
||||
if (reply->error()) {
|
||||
qDebug() << reply->errorString();
|
||||
qDebug() << "OpenLPClient error response:" << reply->errorString();
|
||||
}
|
||||
auto data = reply->readAll();
|
||||
if (data.isEmpty()) {
|
||||
@ -143,7 +143,7 @@ void OpenLPClient::handleSongListResponse(QNetworkReply *reply) {
|
||||
|
||||
void OpenLPClient::handleSlideListResponse(QNetworkReply *reply) {
|
||||
if (reply->error()) {
|
||||
qDebug() << reply->errorString();
|
||||
qDebug() << "OpenLPClient error response:" << reply->errorString();
|
||||
}
|
||||
auto data = reply->readAll();
|
||||
if (data.isEmpty()) {
|
||||
|
@ -5,6 +5,7 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QHash>
|
||||
@ -16,6 +17,7 @@
|
||||
|
||||
class OpenLPClient: public QObject {
|
||||
Q_OBJECT
|
||||
|
||||
private:
|
||||
struct Song {
|
||||
QString name;
|
||||
|
@ -9,8 +9,7 @@
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class SlideView : public QWidget
|
||||
{
|
||||
class SlideView: public QWidget {
|
||||
Q_OBJECT
|
||||
private:
|
||||
class QTableWidget *m_slideTable = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user