Skip to content

Commit

Permalink
added license for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
cagnulein committed Jun 2, 2022
1 parent 94cb089 commit 87a9b54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/homeform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ homeform::homeform(QQmlApplicationEngine *engine, bluetooth *bl) {
stravaPelotonInstructorName = QLatin1String("");
activityDescription = QLatin1String("");

#ifdef Q_OS_WIN
#if defined(Q_OS_WIN) || (defined(Q_OS_MAC) && !defined(Q_OS_IOS))
connect(engine, &QQmlApplicationEngine::quit, &QGuiApplication::quit);
QNetworkAccessManager *mgr = new QNetworkAccessManager(this);
connect(&tLicense, &QTimer::timeout, this, &homeform::licenseTimeout);
Expand Down Expand Up @@ -4037,7 +4037,7 @@ void homeform::clearFiles() {
}
}

#ifdef Q_OS_WIN
#if defined(Q_OS_WIN) || (defined(Q_OS_MAC) && !defined(Q_OS_IOS))
void homeform::licenseReply(QNetworkReply *reply) {
QString r = reply->readAll();
qDebug() << r;
Expand Down
4 changes: 2 additions & 2 deletions src/homeform.h
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ class homeform : public QObject {
bool getLap();
void Start_inner(bool send_event_to_device);

#ifdef Q_OS_WIN
#if defined(Q_OS_WIN) || (defined(Q_OS_MAC) && !defined(Q_OS_IOS))
QTimer tLicense;
#endif

Expand Down Expand Up @@ -564,7 +564,7 @@ class homeform : public QObject {
void gearUp();
void gearDown();

#ifdef Q_OS_WIN
#if defined(Q_OS_WIN) || (defined(Q_OS_MAC) && !defined(Q_OS_IOS))
void licenseReply(QNetworkReply *reply);
void licenseTimeout();
#endif
Expand Down

0 comments on commit 87a9b54

Please sign in to comment.