remove network reply to fix
This commit is contained in:
2026-02-14 14:31:11 +01:00
parent bf6d5c5182
commit 031bb8b0a6
2 changed files with 0 additions and 21 deletions
-19
View File
@@ -68,22 +68,3 @@ void reset_widget_color(QWidget *widget)
{ {
widget->setStyleSheet(""); widget->setStyleSheet("");
} }
QString network_reply_to_fix(QNetworkReply::NetworkError error)
{
switch (error)
{
case QNetworkReply::NetworkError::ConnectionRefusedError:
return "Make sure the server is started ($ systemctl status unocan_server)";
break;
case QNetworkReply::NetworkError::HostNotFoundError:
return "Make sure the simulator is turned on";
break;
case QNetworkReply::NetworkError::InternalServerError:
return "Server had an oopsie, restart the client and if it fails again restart the server";
break;
default:
return "";
break;
}
}
-2
View File
@@ -1,7 +1,6 @@
#ifndef HELPERS_H #ifndef HELPERS_H
#define HELPERS_H #define HELPERS_H
#include <QNetworkReply>
#include <QtWidgets> #include <QtWidgets>
#include <qwt_color_map.h> #include <qwt_color_map.h>
#include <qwt_dial.h> #include <qwt_dial.h>
@@ -19,6 +18,5 @@ void set_widget_color(QWidget *widget, QString color, QString bg);
QColor widget_bg_color(QWidget *widget); QColor widget_bg_color(QWidget *widget);
QColor widget_color(QWidget *widget); QColor widget_color(QWidget *widget);
void reset_widget_color(QWidget *widget); void reset_widget_color(QWidget *widget);
QString network_reply_to_fix(QNetworkReply::NetworkError error);
#endif // HELPERS_H #endif // HELPERS_H