mirror of
https://gitlab.com/eql/lqml.git
synced 2026-01-25 14:00:36 -08:00
revisions
This commit is contained in:
parent
745954f846
commit
eb497baedd
6 changed files with 15 additions and 12 deletions
|
|
@ -6,7 +6,7 @@
|
|||
#include <QNetworkInterface>
|
||||
#include <QHostAddress>
|
||||
|
||||
#ifdef Q_OS_LINUX
|
||||
#ifdef Q_OS_UNIX
|
||||
#include "usb/usb.h"
|
||||
#endif
|
||||
|
||||
|
|
@ -341,7 +341,7 @@ QVariant QT::localIp() {
|
|||
|
||||
// USB
|
||||
|
||||
#ifdef Q_OS_LINUX
|
||||
#ifdef Q_OS_UNIX
|
||||
QVariant QT::connectUsb() {
|
||||
if (usb == nullptr) {
|
||||
usb = new USB();
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ QT_BEGIN_NAMESPACE
|
|||
|
||||
extern "C" { LIB_EXPORT QObject* ini(); }
|
||||
|
||||
#ifdef Q_OS_LINUX
|
||||
#ifdef Q_OS_UNIX
|
||||
class USB;
|
||||
#endif
|
||||
|
||||
|
|
@ -111,7 +111,7 @@ public:
|
|||
Q_INVOKABLE QVariant localIp();
|
||||
|
||||
// USB
|
||||
#ifdef Q_OS_LINUX
|
||||
#ifdef Q_OS_UNIX
|
||||
Q_INVOKABLE QVariant connectUsb ();
|
||||
Q_INVOKABLE QVariant sendToUlisp (const QVariant&);
|
||||
|
||||
|
|
|
|||
|
|
@ -12,10 +12,13 @@ MOC_DIR = ./tmp/
|
|||
HEADERS += qt.h
|
||||
SOURCES += qt.cpp
|
||||
|
||||
linux {
|
||||
unix {
|
||||
QT += serialport
|
||||
HEADERS += usb/usb.h
|
||||
SOURCES += usb/usb.cpp
|
||||
}
|
||||
|
||||
linux {
|
||||
LIBS += -L../../../platforms/linux/lib
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue