Fix some old warnings

half-duplex
Phil Taylor 2023-01-01 20:28:59 +00:00
rodzic 32528a02b8
commit 6199c648c1
4 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -155,7 +155,7 @@ int main(int argc, char *argv[])
signal(SIGTERM, cleanup);
signal(SIGKILL, cleanup);
#endif
w = new servermain(settingsFile, logFilename);
w = new servermain(settingsFile);
#else
a.setWheelScrollLines(1); // one line per wheel click
wfmain w(settingsFile, logFilename, debugMode);

Wyświetl plik

@ -60,7 +60,7 @@ void selectRadio::setInUse(quint8 radio, quint8 busy, QString user, QString ip)
void selectRadio::on_table_cellClicked(int row, int col) {
qInfo() << "Clicked on " << row << "," << col;
#if (QT_VERSION < QT_VERSION_CHECK(6,0,0))
#if (QT_VERSION < QT_VERSION_CHECK(5,11,0))
if (ui->table->item(row, col)->backgroundColor() != Qt::darkGreen) {
#else
if (ui->table->item(row, col)->background() != Qt::darkGreen) {

Wyświetl plik

@ -8,7 +8,7 @@
// This code is copyright 2017-2020 Elliott H. Liggett
// All rights reserved
servermain::servermain(const QString settingsFile, const QString logFile)
servermain::servermain(const QString settingsFile)
{
qRegisterMetaType <udpPreferences>(); // Needs to be registered early.

Wyświetl plik

@ -46,7 +46,7 @@ class servermain : public QObject
Q_OBJECT
public:
servermain(const QString logFile, const QString settingsFile);
servermain(const QString logFile);
~servermain();
signals: