mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-22 10:42:29 +01:00
Add stomt
This commit is contained in:
parent
4e1e0bb936
commit
1e5c84eb86
4
.gitmodules
vendored
4
.gitmodules
vendored
@ -1,3 +1,7 @@
|
|||||||
[submodule "ThirdParty/QtAV"]
|
[submodule "ThirdParty/QtAV"]
|
||||||
path = ThirdParty/QtAV
|
path = ThirdParty/QtAV
|
||||||
url = https://github.com/wang-bin/QtAV.git
|
url = https://github.com/wang-bin/QtAV.git
|
||||||
|
|
||||||
|
[submodule "ThirdParty/stomt-qt-sdk"]
|
||||||
|
path = ThirdParty/stomt-qt-sdk
|
||||||
|
url = https://github.com/Aimber/stomt-qt-sdk.git
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
|
|
||||||
QT += qml quick av widgets quickcontrols2
|
QT += qml quick av quickcontrols2 sql widgets
|
||||||
CONFIG += c++17
|
CONFIG += c++17
|
||||||
CONFIG += qtquickcompiler
|
CONFIG += qtquickcompiler
|
||||||
|
|
||||||
|
|
||||||
SOURCES += main.cpp \
|
SOURCES += main.cpp \
|
||||||
src/steamworkshop.cpp \
|
src/steamworkshop.cpp \
|
||||||
src/installedlistmodel.cpp \
|
src/installedlistmodel.cpp \
|
||||||
|
1
ThirdParty/stomtqtsdk
vendored
Submodule
1
ThirdParty/stomtqtsdk
vendored
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit df48d1db61c3de5c58a82269b2d60f7239d8d99c
|
5
main.cpp
5
main.cpp
@ -46,6 +46,7 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
bool steamErrorRestart = false;
|
bool steamErrorRestart = false;
|
||||||
bool steamErrorAPIInit = false;
|
bool steamErrorAPIInit = false;
|
||||||
|
|
||||||
if (SteamAPI_RestartAppIfNecessary(steamID)) {
|
if (SteamAPI_RestartAppIfNecessary(steamID)) {
|
||||||
qWarning() << "SteamAPI_RestartAppIfNecessary";
|
qWarning() << "SteamAPI_RestartAppIfNecessary";
|
||||||
steamErrorRestart = true;
|
steamErrorRestart = true;
|
||||||
@ -69,7 +70,6 @@ int main(int argc, char* argv[])
|
|||||||
// to know where to look for the files
|
// to know where to look for the files
|
||||||
installedListModel.loadScreens();
|
installedListModel.loadScreens();
|
||||||
profileListModel.loadProfiles();
|
profileListModel.loadProfiles();
|
||||||
// The settings depend on the list of available profiles
|
|
||||||
settings.loadActiveProfiles();
|
settings.loadActiveProfiles();
|
||||||
|
|
||||||
QQmlApplicationEngine mainWindowEngine;
|
QQmlApplicationEngine mainWindowEngine;
|
||||||
@ -80,7 +80,6 @@ int main(int argc, char* argv[])
|
|||||||
mainWindowEngine.rootContext()->setContextProperty("packageFileHandler", &packageFileHandler);
|
mainWindowEngine.rootContext()->setContextProperty("packageFileHandler", &packageFileHandler);
|
||||||
mainWindowEngine.rootContext()->setContextProperty("profileListModel", &profileListModel);
|
mainWindowEngine.rootContext()->setContextProperty("profileListModel", &profileListModel);
|
||||||
mainWindowEngine.rootContext()->setContextProperty("steamWorkshop", &steamWorkshop);
|
mainWindowEngine.rootContext()->setContextProperty("steamWorkshop", &steamWorkshop);
|
||||||
mainWindowEngine.load(QUrl(QStringLiteral("qrc:/qml/main.qml")));
|
|
||||||
//mainWindowEngine.rootContext()->setContextProperty("stomtPlugin", &stomt);
|
//mainWindowEngine.rootContext()->setContextProperty("stomtPlugin", &stomt);
|
||||||
|
|
||||||
QQmlApplicationEngine errorWindowEngine;
|
QQmlApplicationEngine errorWindowEngine;
|
||||||
@ -97,7 +96,7 @@ int main(int argc, char* argv[])
|
|||||||
// Timer for steam polls. WTF?
|
// Timer for steam polls. WTF?
|
||||||
QTimer timer;
|
QTimer timer;
|
||||||
QObject::connect(&timer, &QTimer::timeout, [&]() { SteamAPI_RunCallbacks(); });
|
QObject::connect(&timer, &QTimer::timeout, [&]() { SteamAPI_RunCallbacks(); });
|
||||||
timer.setInterval(500);
|
timer.setInterval(200);
|
||||||
timer.start();
|
timer.start();
|
||||||
|
|
||||||
int status = app.exec();
|
int status = app.exec();
|
||||||
|
21
qml/Components/Feedback.qml
Normal file
21
qml/Components/Feedback.qml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
import QtQuick 2.7
|
||||||
|
import com.stomt.qmlSDK 1.0
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
color:"#d1d1d1"
|
||||||
|
|
||||||
|
StomtWidget {
|
||||||
|
id:stomtWidget
|
||||||
|
anchors {
|
||||||
|
top:parent.top
|
||||||
|
topMargin: 30
|
||||||
|
horizontalCenter: parent.horizontalCenter
|
||||||
|
}
|
||||||
|
targetID: "screenplay"
|
||||||
|
appKey: "C1IfJAruqWFdkM8e7BMPK3dx1"
|
||||||
|
targetDisplayName: "ScreenPlay"
|
||||||
|
targetImageUrl: "qrc:/assets/icons/favicon.ico"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user