1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-15 06:52:34 +02:00

Removed Google Tracker for MacOS

This commit is contained in:
Dominik Louven 2018-11-26 20:37:18 +01:00
parent 964b63f604
commit ddc80ceedc
5 changed files with 10 additions and 27 deletions

View File

@ -4,11 +4,11 @@ SUBDIRS = \
ScreenPlaySDK/ScreenPlaySDK.pro \
ScreenPlaySysInfo/ScreenPlaySysInfo.pro \
ScreenPlayWindow/ScreenPlayWindow.pro \
ScreenPlay/ThirdParty/qt-google-analytics/qt-google-analytics.pro \
ScreenPlay/ThirdParty/stomt-qt-sdk/sdk/stomt-qt-sdk.pro \
ScreenPlayWidget/ScreenPlayWidget.pro \
#ScreenPlay/ThirdParty/qt-google-analytics/qt-google-analytics.pro \
ScreenPlayWindow.depends = ScreenPlaySDK
ScreenPlayWidget.depends = ScreenPlaySDK
ScreenPlay.depends = qt-google-analytics
#ScreenPlay.depends = qt-google-analytics

View File

@ -56,16 +56,16 @@ INCLUDEPATH += \
$$PWD/ThirdParty/ \
$$PWD/src/
include(ThirdParty/qt-google-analytics/qt-google-analytics.pri)
LIBS += -lqt-google-analytics
#include(ThirdParty/qt-google-analytics/qt-google-analytics.pri)
#LIBS += -lqt-google-analytics
CONFIG(debug, debug|release) {
install_it.path = $${OUT_PWD}/debug/
QMAKE_LIBDIR += $$OUT_PWD/ThirdParty/qt-google-analytics/debug
#QMAKE_LIBDIR += $$OUT_PWD/ThirdParty/qt-google-analytics/debug
} else {
install_it.path = $${OUT_PWD}/release/
QMAKE_LIBDIR += $$OUT_PWD/ThirdParty/qt-google-analytics/release
#QMAKE_LIBDIR += $$OUT_PWD/ThirdParty/qt-google-analytics/release
}

View File

@ -25,7 +25,7 @@
#include <qt_windows.h>
#endif
#include "ThirdParty/qt-google-analytics/ganalytics.h"
//#include "ThirdParty/qt-google-analytics/ganalytics.h"
#include "src/create.h"
#include "src/installedlistfilter.h"
#include "src/installedlistmodel.h"
@ -138,7 +138,7 @@ int main(int argc, char* argv[])
QQmlApplicationEngine mainWindowEngine;
qmlRegisterType<GAnalytics>("analytics", 0, 1, "Tracker");
//qmlRegisterType<GAnalytics>("analytics", 0, 1, "Tracker");
mainWindowEngine.rootContext()->setContextProperty("screenPlay", &screenPlay);
mainWindowEngine.rootContext()->setContextProperty("screenPlayCreate", &create);
mainWindowEngine.rootContext()->setContextProperty("utility", &qmlUtil);

View File

@ -4,7 +4,6 @@ import QtQuick.Controls 2.3
import QtQuick.Layouts 1.3
import QtGraphicalEffects 1.0
import Qt.labs.platform 1.0
import analytics 0.1
import "qml/"
import "qml/Installed"
@ -19,26 +18,16 @@ ApplicationWindow {
minimumHeight: 788
minimumWidth: 1050
Tracker {
id: tracker
Component.onCompleted: tracker.sendScreenView("Installed")
trackingID: "UA-43193236-3"
sendInterval: 100
}
Component.onCompleted: {
tracker.startSession()
if (!screenPlaySettings.autostart) {
show()
}
steamWorkshop.initSteam()
}
Component.onDestruction: {
tracker.endSession()
}
function switchPage(name) {
tracker.sendScreenView(name)
if (name === "Create") {
pageLoader.visible = false
pageLoaderCreate.setSource("qrc:/qml/Create/Create.qml")

View File

@ -3,7 +3,7 @@ import QtQml.Models 2.2
import QtQuick.Controls 2.3
import QtQuick.Controls.Styles 1.4
import QtGraphicalEffects 1.0
import analytics 0.1
Item {
id: pageInstalled
@ -149,12 +149,6 @@ Item {
}
}
Tracker {
id: tracker
trackingID: "UA-43193236-3"
sendInterval: 1000
}
function onPageChanged(name) {
setSidebarActive(false)
if (name === "All") {