mirror of
https://github.com/YACReader/yacreader
synced 2026-03-15 10:10:03 -04:00
Eliminado el uso de las macros Q_WS_*, en qt5 ya no est?n disponibles y es mejor usar Q_OS_* (Q_OS_LINUX, Q_OS_MAC, Q_OS_WIN32)
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
#include "startup.h"
|
||||
#include "yacreader_global.h"
|
||||
|
||||
#ifndef Q_WS_WIN
|
||||
#ifndef Q_OS_WIN32
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <ifaddrs.h>
|
||||
@ -190,7 +190,7 @@ void ServerConfigDialog::generateQR()
|
||||
//}
|
||||
ip->clear();
|
||||
QString dir;
|
||||
#ifdef Q_WS_WIN
|
||||
#ifdef Q_OS_WIN32
|
||||
QList<QHostAddress> list = QHostInfo::fromName( QHostInfo::localHostName() ).addresses();
|
||||
|
||||
QList<QString> otherAddresses;
|
||||
@ -244,7 +244,7 @@ void ServerConfigDialog::generateQR()
|
||||
|
||||
}
|
||||
//qrCode->setText(dir+":8080");
|
||||
#ifdef Q_WS_MAC
|
||||
#ifdef Q_OS_MAC
|
||||
ip->setFixedWidth(130);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user