First QML Steps with StartView and CreateLocalGameView

This commit is contained in:
Felix Hammer
2015-08-07 00:49:54 +02:00
parent 85611c6cdf
commit 9b1ad883a2
23 changed files with 808 additions and 180 deletions
-40
View File
@@ -1,40 +0,0 @@
<?xml version='1.0' encoding='utf-8'?>
<manifest package="org.qtproject.example" android:versionName="1.1" xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto" android:versionCode="1">
<application android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" android:name="org.qtproject.qt5.android.bindings.QtApplication" android:label="PokerTH" android:icon="@drawable/icon">
<activity android:name="org.qtproject.qt5.android.bindings.QtActivity" android:label="PokerTH" android:screenOrientation="landscape" android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|locale|fontScale|keyboard|keyboardHidden|navigation">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<meta-data android:name="android.app.lib_name" android:value="pokerth"/>
<meta-data android:name="android.app.qt_sources_resource_id" android:resource="@array/qt_sources"/>
<meta-data android:name="android.app.repository" android:value="default"/>
<meta-data android:name="android.app.qt_libs_resource_id" android:resource="@array/qt_libs"/>
<meta-data android:name="android.app.bundled_libs_resource_id" android:resource="@array/bundled_libs"/>
<!-- Deploy Qt libs as part of package -->
<meta-data android:name="android.app.bundle_local_qt_libs" android:value="-- %%BUNDLE_LOCAL_QT_LIBS%% --"/>
<meta-data android:name="android.app.bundled_in_lib_resource_id" android:resource="@array/bundled_in_lib"/>
<meta-data android:name="android.app.bundled_in_assets_resource_id" android:resource="@array/bundled_in_assets"/>
<!-- Run with local libs -->
<meta-data android:name="android.app.use_local_qt_libs" android:value="-- %%USE_LOCAL_QT_LIBS%% --"/>
<meta-data android:name="android.app.libs_prefix" android:value="/data/local/tmp/qt/"/>
<meta-data android:name="android.app.load_local_libs" android:value="-- %%INSERT_LOCAL_LIBS%% --"/>
<meta-data android:name="android.app.load_local_jars" android:value="-- %%INSERT_LOCAL_JARS%% --"/>
<meta-data android:name="android.app.static_init_classes" android:value="-- %%INSERT_INIT_CLASSES%% --"/>
<!-- Messages maps -->
<meta-data android:name="android.app.ministro_not_found_msg" android:value="@string/ministro_not_found_msg"/>
<meta-data android:name="android.app.ministro_needed_msg" android:value="@string/ministro_needed_msg"/>
<meta-data android:name="android.app.fatal_error_msg" android:value="@string/fatal_error_msg"/>
<!-- Messages maps -->
<!-- Splash screen -->
<meta-data android:name="android.app.splash_screen" android:resource="@layout/splash"/>
<!-- Splash screen -->
</activity>
</application>
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="19"/>
<supports-screens android:smallScreens="true" android:anyDensity="true" android:largeScreens="true" android:normalScreens="true"/>
<!-- %%INSERT_PERMISSIONS -->
<!-- %%INSERT_FEATURES -->
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
</manifest>
+14 -3
View File
@@ -412,8 +412,8 @@ unix:!mac {
$$system(qmake -query QT_INSTALL_LIBS)
}
android{
LIBPATH += $${PREFIX}/lib/armv5
LIB_DIRS = $${PREFIX}/lib/armv5
LIBPATH += $${PREFIX}/lib/armv5
LIB_DIRS = $${PREFIX}/lib/armv5
}
BOOST_FS = boost_filesystem \
boost_filesystem-mt
@@ -523,7 +523,7 @@ unix:!mac {
$$BOOST_REGEX \
$$BOOST_CHRONO \
$$BOOST_SYS
!count(BOOST_LIBS, 6):error("Unable to find boost libraries in PREFIX=$${PREFIX}/armv5")
!count(BOOST_LIBS, 6):error("Unable to find boost libraries in PREFIX=$${PREFIX}lib/armv5")
LIBS += -ltinyxml
LIBS += $$BOOST_LIBS
LIBS += -lgsasl -lidn
@@ -685,3 +685,14 @@ android_test{
HEADERS += src/gui/qt/sound/androidapi8dummy.h
SOURCES += src/gui/qt/sound/androidapi8dummy.cpp
}
DISTFILES += \
android/AndroidManifest.xml \
android/gradle/wrapper/gradle-wrapper.jar \
android/gradlew \
android/res/values/libs.xml \
android/build.gradle \
android/gradle/wrapper/gradle-wrapper.properties \
android/gradlew.bat
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
+37 -6
View File
@@ -1,24 +1,30 @@
TEMPLATE = app
QT += core qml quick widgets
QT += core qml quick widgets svg
DEFINES += QML_CLIENT
INCLUDEPATH += \
src/gui/qml \
src/gui/qml/views
src/gui/qml/views \
src/gui/qml/components
DEPENDPATH += \
src \
src/gui/qml \
src/gui/qml/views
src/gui/qml/views \
src/gui/qml/components
RESOURCES += src/gui/qml/views/qml.qrc
RESOURCES += src/gui/qml/qml.qrc
# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH = src/gui/qml/views/
QML_IMPORT_PATH = \
src/gui/qml/views/ \
src/gui/qml/views/startview/ \
src/gui/qml/views/createlocalgameview/ \
src/gui/qml/components
# Default rules for deployment.
include(src/gui/qml/views/deployment.pri)
include(src/gui/qml/deployment.pri)
HEADERS += \
src/gui/qml/qmlwrapper.h \
@@ -28,3 +34,28 @@ SOURCES += \
src/pokerth.cpp \
src/gui/qml/qmlwrapper.cpp \
src/gui/qml/views/startview/startview.cpp
unix:!mac {
# #### My release static build options
# QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections
# QMAKE_LFLAGS += -Wl,--gc-sections
INCLUDEPATH += $${PREFIX}/include
QMAKE_LIBDIR += lib
!android{
LIBPATH += $${PREFIX}/lib /opt/gsasl/lib
LIB_DIRS = $${PREFIX}/lib \
$${PREFIX}/lib64 \
$${PREFIX}/lib/x86_64-linux-gnu \
$$system(qmake -query QT_INSTALL_LIBS)
}
android{
LIBPATH += $${PREFIX}/lib/armv5
LIB_DIRS = $${PREFIX}/lib/armv5
}
}
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
contains(ANDROID_TARGET_ARCH,armeabi) {
ANDROID_EXTRA_LIBS =
}
@@ -0,0 +1,182 @@
import QtQuick 2.2
import QtQuick.Layouts 1.1
import QtQuick.Window 2.0
import QtQuick.Dialogs 1.2
import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.2
Item {
id: root
property int myListViewsHeight: 0
property int myListViewsWidth: 0
property var componentMap: {
"ComboBox": myComboBox,
"SpinBox": mySpinBox
}
width: myListViewsWidth
Loader {
id: listViewFactoryLoader
function setSourceComponent(comp) {
sourceComponent = comp;
}
}
Component {
id: myComboBox
Rectangle {
color: mouse.pressed ? "#11000000" : "white"
width: root.width
height: Math.round(comboBoxTitle.contentHeight*2.1 + comboBoxValue.contentHeight*1.0)
Text {
id: comboBoxTitle
anchors.left: parent.left
anchors.margins: 30
y: myValue != "" ? Math.round(parent.height*0.5 - contentHeight*0.9) : Math.round(parent.height*0.5 - contentHeight*0.5)
color: "black"
font.pixelSize: Math.round(myListViewsHeight*0.06)
text: myTitle
}
Text {
id: comboBoxValue
anchors.left: parent.left
anchors.margins: 30
y: Math.round(parent.height*0.5 + contentHeight*0.15)
color: "grey"
font.pixelSize: myValue != "" ? Math.round(myListViewsHeight*0.05) : 0
text: myValue
}
Rectangle {
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: parent.bottom
width: parent.width - 30
height: 1
color: "lightgrey"
}
MouseArea {
id: mouse
anchors.fill: parent
onClicked: {
myComboBoxSelector.show(myTitle, myValuesList)
}
}
Component.onCompleted: {
root.height = Qt.binding(function() { return height })
}
}
}
Component {
id: mySpinBox
Rectangle {
width: root.width
height: Math.round(comboBoxTitle.contentHeight*2.1 + comboBoxValue.contentHeight*1.0)
Text {
id: comboBoxTitle
anchors.left: parent.left
anchors.margins: 30
y: myValue != "" ? Math.round(parent.height*0.5 - contentHeight*0.9) : Math.round(parent.height*0.5 - contentHeight*0.5)
color: "black"
font.pixelSize: Math.round(myListViewsHeight*0.06)
text: myTitle
}
Text {
id: comboBoxValue
anchors.left: parent.left
anchors.margins: 30
y: Math.round(parent.height*0.5 + contentHeight*0.15)
color: "grey"
font.pixelSize: myValue != "" ? Math.round(myListViewsHeight*0.05) : 0
text: myValue
}
Rectangle {
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: parent.bottom
width: parent.width - 30
height: 1
color: "lightgrey"
}
MouseArea {
anchors.fill: parent
}
Component.onCompleted: {
root.height = Qt.binding(function() { return height })
}
}
}
Component.onCompleted: {
listViewFactoryLoader.setSourceComponent(componentMap[myType])
}
}
// Column {
// anchors.verticalCenter: parent.verticalCenter
// anchors.left: parent.left
// anchors.leftMargin: 30
// Text {
// id: comboBoxTitle
// color: "#0F0F0F"
// font.pixelSize: parent.height*0.30
// renderType: Text.NativeRendering
// text: title
// anchors.left: parent.left
// }
// Text {
// id: comboBoxValue
// color: "#0F0F0F"
// font.pixelSize: parent.height*0.30
// renderType: Text.NativeRendering
// text: value
// anchors.left: parent.left
// }
// }
// Rectangle { //seperator
// anchors.horizontalCenter: parent.horizontalCenter
// anchors.bottom: parent.bottom
// width: parent.width - 30
// height: 1
// color: "lightgrey"
// }
// MouseArea {
// id: mouse
// anchors.fill: parent
// onClicked: root.clicked()
// }
// Image {
// anchors.right: parent.right
// anchors.rightMargin: 20
// anchors.verticalCenter: parent.verticalCenter
// source: "../../images/navigation_next_item.png"
// }
//// CheckBox {
//// id: myCheckBox
//// anchors.verticalCenter: parent.verticalCenter
//// x: rect1.width-rect1.width*0.10
//// style: CheckBoxStyle {
//// indicator: Rectangle {
//// color: "#FAFAFA"
//// implicitWidth: rect1.width*0.04
//// implicitHeight: rect1.width*0.04
//// radius: 3
//// border.color: control.activeFocus ? "darkblue" : "gray"
//// border.width: 1
//// Rectangle {
//// visible: control.checked
//// color: "#555"
//// border.color: "#333"
//// radius: 1
//// anchors.margins: 4
//// anchors.fill: parent
//// }
//// }
//// }
//// }
@@ -0,0 +1,89 @@
import QtQuick 2.0
import QtQuick.Layouts 1.1
import QtQuick.Controls 1.2
Rectangle {
id: selector
z:1000
visible: false
anchors.fill: parent
color: "#88000000" //Background
property ListModel mySelectionModel: ListModel {}
property string myTitleString
property var returnSelection
function show(title, map) {
//at first fill the model
myTitleString = title
// for (var i=0; i < map.count; i++) {
// mySelectionModel.append({"value": map.get(i).value});
// }
visible = true;
}
function reject() {
visible = false;
}
function selected() {
visible = false;
}
MouseArea {
anchors.fill: parent
onClicked: console.log("1001")
}
Rectangle {
id: selectionBox
visible: true
color: "white"
height: Math.round(parent.height*0.9)
width: Math.round(parent.width*0.6)
x: Math.round(parent.width*0.5 - width*0.5)
y: Math.round(parent.height*0.5 - height*0.5)
ColumnLayout {
anchors.fill: parent
Text {
id: titleText
font.pixelSize: Math.round(selectionBox.height*0.10)
font.bold: true
text: myTitleString
anchors.left: parent.left
anchors.margins: 30
Layout.preferredHeight: titleText.contentHeight
}
ScrollView {
ListView {
anchors.fill: parent
model: mySelectionModel
delegate: Text {
text: modelData
}
}
}
Text {
id: cancelButton
font.pixelSize: Math.round(selectionBox.height*0.07)
font.bold: true
text: qsTr("Cancel")
anchors.right: parent.right
anchors.bottom: parent.bottom
anchors.margins: 50
Layout.preferredHeight: cancelButton.contentHeight
MouseArea {
id: cancelMouse
anchors.fill: parent
// preventStealing: true
onClicked: {
console.log("1002")
reject()
}
}
}
}
}
}
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="white" viewBox="0 0 18 18"><path d="M15 8.25H5.87l4.19-4.19L9 3 3 9l6 6 1.06-1.06-4.19-4.19H15v-1.5z"/></svg>

After

Width:  |  Height:  |  Size: 179 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 317 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 463 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="white" viewBox="0 0 18 18"><path d="M6.61 11.89L3.5 8.78 2.44 9.84 6.61 14l8.95-8.95L14.5 4z"/></svg>

After

Width:  |  Height:  |  Size: 171 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="white" viewBox="0 0 18 18"><path d="M9 5.5c.83 0 1.5-.67 1.5-1.5S9.83 2.5 9 2.5 7.5 3.17 7.5 4 8.17 5.5 9 5.5zm0 2c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5S9.83 7.5 9 7.5zm0 5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"/></svg>

After

Width:  |  Height:  |  Size: 338 B

+295
View File
@@ -0,0 +1,295 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 15.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="800px" height="800px" viewBox="0 0 800 800" enable-background="new 0 0 800 800" xml:space="preserve">
<path fill="#801E18" d="M536.133,712.925c66.804-21.577,129.325-57.317,175.53-110.908c56.564-65.608,77.015-140.425,73.442-225.409
c-1.214-31.591-10.896-69.142-25.374-100.533l-0.08-0.1c-39.174-84.88-113.951-142.139-200.696-173.14l-0.08-0.093
c-95.3-33.99-197.881-34.774-294.124-3.978c-66.552,21.421-120.761,53.629-162.542,96.632
c-54.12,55.665-90.71,134.26-87.516,210.332c4.857,115.098,55.876,212.366,157.272,271.003
c109.877,63.543,243.836,74.77,363.972,36.169L536.133,712.925z"/>
<g>
<g>
<path fill="#F2F2F2" d="M361.804,77.386l4.374,37.294c-28.484,2.912-57.11,9.042-85.96,18.295l-16.275-34.932
C296.793,87.531,329.41,80.649,361.804,77.386z"/>
</g>
<g>
<path fill="#C12D25" d="M459.426,78.306c33.229,4.061,66.335,11.965,99.301,23.724l-18.914,34.531
c-2.347-0.905-4.612-1.696-6.88-2.467c-26.667-9.066-53.477-15.25-80.428-18.563c-28.98-3.521-57.574-3.779-86.327-0.851
l-4.374-37.294C394.469,74.041,427.006,74.344,459.426,78.306z"/>
</g>
<g>
<path fill="#F2F2F2" d="M558.808,102.122c31.755,11.348,60.38,25.22,85.85,41.693l-29.21,29.457
c-22.344-14.434-47.56-26.641-75.635-36.711L558.808,102.122z"/>
</g>
<g>
<path fill="#C12D25" d="M263.942,98.043l16.071,34.907c-58.905,18.942-106.682,47.295-143.484,85.279l-35.494-23.337
C142.911,151.792,197.24,119.513,263.942,98.043z"/>
</g>
<g>
<path fill="#F2F2F2" d="M101.035,194.892l35.502,23.345c-18.023,18.627-33.441,39.395-46.103,62.494l-41.752-14.893
C63.197,239.561,80.623,215.887,101.035,194.892z"/>
</g>
<g>
<path fill="#C12D25" d="M644.657,143.815c51.835,33.466,90.217,77.493,115.297,131.835l-42.726,13.869
c-22.213-48.025-56.123-86.688-101.781-116.248L644.657,143.815z"/>
</g>
<g>
<path fill="#C12D25" d="M692.234,364.056c2.606,20.29,1.869,40.534-2.232,60.721c-4.235,20.826-12.051,41.589-23.474,62.272
c-11.056,20.144-24.304,38.191-39.994,54.279c-31.902,32.78-73.257,57.354-124.08,73.797
c-25.044,7.894-49.954,13.147-74.699,15.599c-0.723,0.075-1.448,0.146-2.17,0.217c-1.4,0.135-2.796,0.262-4.191,0.377
c-23.983,1.882-45.865,1.416-67.635-1.229c-22.255-2.746-43.769-7.565-65.154-14.532c-1.68-0.55-3.185-1.05-4.694-1.565
c-1.952-0.666-3.907-1.349-5.858-2.052c-24.413-8.711-46.306-19.354-65.593-31.914c-39.408-25.479-68.617-58.921-87.736-100.258
c-9.525-20.334-15.535-40.568-18.114-60.804c-2.695-20.34-2.004-40.609,2.08-60.825c4.214-20.859,12.037-41.664,23.479-62.432
c11.037-20.063,24.287-38.11,39.959-54.119c31.902-32.78,73.273-57.435,124.179-73.784c24.883-8.081,49.68-13.266,74.439-15.797
c1.047-0.106,2.096-0.208,3.144-0.306c23.62-2.188,47.151-1.864,70.604,0.982c24.99,3.077,49.317,8.811,73.562,17.281
c0.891,0.31,1.781,0.624,2.672,0.943c24.314,8.699,46.125,19.25,65.52,31.822c39.487,25.573,68.886,59.039,87.995,100.456
C683.67,323.509,689.564,343.813,692.234,364.056z M674.546,426.452l0.918-4.534c3.082-15.225-0.801-28.978-11.755-41.265
c-10.833-12.361-25.45-19.54-43.895-21.794l-18.337-2.24c2.394-16.31,4.368-32.582,6.132-48.798
c0.215-1.682,0.477-3.256,0.774-4.717c0.6-2.926,1.343-5.398,2.163-7.411c1.789-4.217,4.301-6.651,7.771-7.803
c2.12-0.487,5.443-0.911,10.044-1.178l9.624,0.84l0.936-16.563c-33.125-10.103-66.937-18.799-101.254-25.979l-2.313,17.888
c1.304,0.578,4.29,2.265,8.896,4.985c4.407,3.28,7.114,5.454,8.744,7.216c3.156,3.372,5.146,7.014,5.857,10.999
c0.682,3.653,0.764,8.227-0.042,13.692c-2.407,16.884-4.915,33.755-7.631,50.683l-85.604-10.46
c4.494-23.688,7.955-42.765,10.491-57.309c0.108-0.688,0.232-1.377,0.376-2.073c0.773-3.755,2.058-7.642,3.745-11.777
c2.408-4.589,5.144-7.064,8.748-8.304c1.179-0.448,3.806-0.986,7.94-1.833c0.508-0.104,1.038-0.213,1.592-0.328l10.425-0.548
l2.623-17.939c-1.322-0.255-2.646-0.507-3.97-0.759c-1.345-0.254-2.689-0.507-4.038-0.756c-1.728-0.323-3.455-0.638-5.187-0.952
c-22.304-4.043-44.806-7.469-67.459-10.25c-4.354-0.532-7.894-0.948-11.44-1.347c-3.967-0.447-7.644-0.844-11.324-1.224
l-3.812,18.288c2.079,0.722,4.891,1.971,8.638,3.788c4.223,2.593,7.298,4.881,9.201,6.935c3.04,2.949,4.756,6.475,5.319,10.696
c0.381,3.608-0.051,8.209-1.165,13.711l-11.189,55.812l-113.216-13.833c6.182-27.043,12.839-53.953,19.896-80.806l6.554,0.554
c1.604,0.074,3.317,0.222,5.143,0.444c1.824,0.223,3.762,0.521,5.811,0.894l10.682,2.135c4.883,1.844,8.7,10.937,11.463,27.211
c0.25,1.571,0.489,3.129,0.718,4.675c2.196,14.934,3.294,28.654,3.123,41.27l11.14,1.361l20.484-94.177
c-62.278-5.869-125.671-7.221-189.964-4.121c-10.307,28.443-19.275,56.311-26.698,83.454l11.214,0.542
c6.124-12.284,14.79-25.662,25.942-40.319c10.94-14.594,19.323-22.532,25.188-23.555l29.582-1.867
c-7.468,25.39-14.318,50.782-20.671,76.146l-46.252-5.651c-18.442-2.253-35.28,1.082-50.578,10.251
c-15.184,9.093-24.313,21.257-27.395,36.481l-0.918,4.533c-0.479,2.366-0.788,4.697-0.926,6.992
c-0.751,12.394,3.452,23.758,12.6,34.188c8.986,10.08,20.475,16.841,34.494,20.19c3.069,0.733,6.263,1.304,9.576,1.708
l45.07,5.508c-3.38,19.168-6.556,38.362-9.341,57.605c-0.18,1.446-0.404,2.852-0.675,4.211c-0.696,3.472-1.699,6.65-3.008,9.528
c-2.141,4.361-4.827,6.661-8.415,8.099c-1.568,0.879-4.364,1.181-8.205,0.974c-0.629-0.033-1.284-0.079-1.969-0.142l-11.424-0.482
l-1.749,17.133c1.115,0.27,2.232,0.537,3.351,0.804c34.628,8.256,69.205,15.424,104.015,21.441l3.184-18.198
c-3.141-0.967-6.756-2.566-10.93-4.905c-4.642-2.555-7.667-4.589-9.213-5.938c-3.378-3.541-5.049-7.223-5.571-11.389
c-0.491-3.487-0.36-7.554,0.207-12.163c0.104-0.854,0.224-1.727,0.355-2.615c3.195-19.282,6.582-38.533,10.175-57.758
l114.104,13.942l-12.818,63.819c-1.164,5.751-2.938,10.515-5.012,14.243c-2.44,4.1-5.448,6.967-9.018,8.606
c-1.864,0.766-5.336,1.423-10.354,1.723l-10.466,0.296l-3.462,18.086c1.09,0.15,2.176,0.3,3.266,0.449
c0.836,0.113,1.675,0.228,2.514,0.34c4.573,0.614,7.563,1.008,10.558,1.393c3.275,0.42,6.556,0.831,9.837,1.232
c26.505,3.238,53.163,5.826,79.906,7.724l4.347-17.976c-2.97-0.78-6.291-1.852-9.931-3.371c-3.81-1.63-6.519-3.201-8.171-4.568
c-2.821-3.003-4.357-6.426-4.864-10.387c-0.267-4.475,0.107-8.531,0.98-12.899c0.096-0.483,0.198-0.97,0.307-1.461
c4.67-21.088,9.086-41.378,13.264-61.032l86.191,10.532c-4.487,19.696-9.341,39.68-14.458,59.966
c-1.449,5.634-3.287,10.219-5.48,13.604c-2.158,3.643-5.346,6.404-9.615,8.534c-2.249,1.137-5.639,1.888-10.028,2.098
l-10.678,0.854l-4.379,17.637c32.688,1.753,68.732,2.422,107.929,1.984l5.137-16.385c-0.721,0.028-1.507-0.01-2.355-0.113
c-2.159-0.264-4.721-0.951-7.617-2.017c-4.37-1.358-6.987-2.465-8.734-3.809c-3.026-2.528-4.539-5.53-4.735-9.04
c-0.069-2.406,0.188-5.242,0.83-8.475c0.29-1.47,0.661-3.019,1.116-4.65c4.957-17.981,9.518-36.014,13.662-54.006l16.959,2.072
c3.316,0.404,6.575,0.623,9.782,0.656c14.641,0.153,28.171-3.551,40.62-11.012c12.908-7.736,21.411-17.549,25.596-29.522
C673.44,431.11,674.067,428.818,674.546,426.452"/>
</g>
<g>
<path fill="#C12D25" d="M229.714,356.004c3.346,0.409,5.927,1.635,7.902,3.871c1.993,2.147,2.699,4.639,2.157,7.313
c-0.573,2.835-2.213,4.957-4.977,6.614c-2.762,1.648-5.721,2.288-9.066,1.879l-9.274-1.133l3.983-19.678L229.714,356.004z"/>
</g>
<g>
<path fill="#F2F2F2" d="M760.033,275.75c12.288,26.64,20.145,53.247,23.646,79.896l-45.597,4.056
c-3.063-23.28-10.063-46.623-20.854-70.183L760.033,275.75z"/>
</g>
<g>
<path fill="#F2F2F2" d="M739.273,388.255c-0.006-0.061-0.006-0.121-0.008-0.182c-0.001,0-0.442-10.476-0.447-10.581
c-0.252-5.982-0.505-11.965-0.757-17.947l0,0c0.007,0.053,0.014,0.105,0.021,0.157l1.212,28.71
C739.287,388.359,739.28,388.308,739.273,388.255z"/>
</g>
<g>
<path fill="#F2F2F2" d="M260.268,358.325c1.184,3.633,1.431,7.397,0.612,11.442c-0.82,4.052-2.56,7.655-5.138,10.911
c-2.17,2.722-5.079,5.1-8.51,7.086c-7.491,4.566-15.808,6.201-24.977,5.081l-9.274-1.133l-1.722,8.505l-21.204-2.591
l12.688-62.679l30.479,3.724c9.168,1.121,16.419,4.748,21.746,10.873C257.449,352.254,259.277,355.218,260.268,358.325z
M234.797,373.803c2.764-1.657,4.403-3.779,4.977-6.614c0.542-2.675-0.164-5.166-2.157-7.313
c-1.976-2.236-4.557-3.462-7.902-3.871l-9.274-1.133l-3.983,19.678l9.274,1.133C229.076,376.091,232.035,375.451,234.797,373.803"
/>
</g>
<g>
<path fill="#C12D25" d="M575.994,398.144c3.452,0.422,6.21,1.759,8.187,3.987c1.968,2.234,2.763,4.818,2.189,7.654
c-0.558,2.755-2.319,4.943-5.091,6.682c-2.764,1.656-5.932,2.345-9.384,1.923l-9.568-1.169l4.099-20.247L575.994,398.144z"/>
</g>
<g>
<path fill="#F2F2F2" d="M593.788,428.041l11.969,15.233l-19.415,7.583l-24.572-30.882l-4.606,22.754l-20.91-2.556l12.704-62.758
l30.479,3.724c9.07,1.108,16.436,4.667,21.762,10.792c5.359,5.965,7.306,12.843,5.782,20.371
C605.34,420.4,600.935,425.672,593.788,428.041z M581.279,416.467c2.771-1.738,4.533-3.927,5.091-6.682
c0.573-2.836-0.222-5.42-2.189-7.654c-1.977-2.229-4.734-3.565-8.188-3.987l-9.567-1.17l-4.099,20.247l9.568,1.169
C575.348,418.812,578.516,418.123,581.279,416.467"/>
</g>
<g>
<path fill="#FFCB05" d="M738.079,359.704c3.012,23.48,2.14,46.893-2.628,70.241c-4.915,24.09-13.975,48.11-27.189,72.079
c-12.685,23.261-28.131,44.113-46.159,62.821c-36.886,37.892-84.662,66.243-143.47,85.196
c-29.052,9.229-57.761,15.266-86.456,18.234c-1.758,0.178-3.51,0.339-5.266,0.492c-1.297,0.11-2.209,0.185-3.125,0.256
c-25.699,2.019-51.288,1.492-76.77-1.6c-29.92-3.683-59.044-10.661-88.067-21.061c-28.174-10.083-53.289-22.277-75.732-36.722
c-4.992-3.234-9.846-6.576-14.558-10.026c-38.355-28.1-67.326-63.416-86.953-106.024c-10.899-23.57-17.774-46.982-20.946-70.269
c-3.048-23.537-2.216-46.993,2.52-70.386c4.889-24.137,13.932-48.201,27.153-72.204c12.661-23.1,28.08-43.867,46.102-62.495
c36.795-37.991,84.574-66.345,143.478-85.288c29.054-9.227,57.68-15.358,86.163-18.269c28.754-2.93,57.35-2.671,85.786,0.784
c27.489,3.378,54.308,9.565,80.971,18.629c2.267,0.77,4.531,1.562,6.798,2.375c28.158,10.161,53.373,22.37,75.716,36.802
c45.658,29.56,79.568,68.224,101.781,116.25C728.018,313.079,735.018,336.422,738.079,359.704z M666.526,487.051
c11.425-20.685,19.24-41.449,23.474-62.274c4.104-20.187,4.841-40.429,2.232-60.722c-2.669-20.244-8.563-40.546-17.909-60.776
c-19.192-41.511-48.591-74.977-88.078-100.549c-19.392-12.57-41.205-23.123-65.313-31.795c-1.097-0.346-1.985-0.659-2.877-0.97
c-24.249-8.471-48.569-14.207-72.977-17.21c-24.041-2.916-47.567-3.241-71.188-1.052c-1.048,0.096-2.097,0.198-3.146,0.306
c-24.761,2.531-49.557,7.715-74.438,15.795c-50.906,16.351-92.276,41.004-124.177,73.785
c-15.675,16.009-28.924,34.056-39.846,54.05c-11.557,20.839-19.382,41.642-23.596,62.5c-4.084,20.218-4.774,40.487-2.078,60.826
c2.58,20.233,8.589,40.47,18.033,60.713c19.198,41.427,48.41,74.87,87.817,100.349c19.286,12.558,41.18,23.204,65.415,31.804
c2.129,0.813,4.082,1.496,6.035,2.161c1.51,0.517,3.017,1.018,4.525,1.51c21.558,7.024,43.066,11.844,64.696,14.513
c22.396,2.72,44.28,3.186,66.263,1.47c3.396-0.28,4.792-0.405,6.191-0.542c0.723-0.07,1.445-0.141,2.17-0.216
c24.744-2.451,49.654-7.706,74.7-15.6c50.821-16.44,92.177-41.017,124.079-73.794
C642.226,525.238,655.472,507.193,666.526,487.051"/>
</g>
<g>
<polygon fill="#F2F2F2" points="438.854,360.729 454.012,372.208 421.612,393.97 443.86,422.331 424.888,429.727 396.73,394.089
391.043,422.186 370.434,419.667 383.105,357.068 403.716,359.587 398.011,387.771 "/>
</g>
<g>
<path fill="#C12D25" d="M650.109,386.459c9.62,10.885,13.124,23.009,10.418,36.375c-2.721,13.439-10.847,24.149-24.302,32.215
c-13.44,7.984-28.315,11.059-44.584,9.071l-401.176-49.019c-1.271-0.155-2.524-0.339-3.756-0.549
c-14.537-2.48-26.306-8.769-35.198-18.729c-7.878-9.004-11.64-18.871-11.155-29.63c0.101-2.232,0.384-4.504,0.852-6.813
c2.706-13.367,10.839-24.068,24.188-32.146c13.465-8.063,28.413-11.054,44.69-9.065l401.177,49.019
C627.532,369.175,640.489,375.574,650.109,386.459z M341.482,407.414c8.939-5.211,14.227-12.37,16.029-21.276
c1.787-8.826-0.435-16.813-6.866-23.991c-6.337-7.159-14.864-11.442-25.516-12.744c-10.846-1.325-20.761,0.705-29.514,6.021
c-8.958,5.299-14.324,12.357-16.111,21.184c-1.803,8.906,0.498,16.992,6.948,24.084c6.212,7.233,14.864,11.442,25.71,12.768
C322.814,414.76,332.605,412.805,341.482,407.414 M443.864,422.336l-22.253-28.365l32.4-21.763l-15.157-11.479l-40.844,27.041
l5.704-28.184l-20.609-2.518l-12.672,62.598l20.609,2.519l5.688-28.097l28.157,35.638L443.864,422.336 M586.341,450.857
l19.416-7.583l-11.968-15.233c7.146-2.368,11.551-7.641,13.19-15.738c1.523-7.528-0.423-14.405-5.782-20.371
c-5.326-6.125-12.691-9.684-21.762-10.792l-30.479-3.724l-12.705,62.759l20.911,2.555l4.606-22.753L586.341,450.857
M255.742,380.679c2.578-3.255,4.317-6.859,5.138-10.911c0.818-4.045,0.571-7.81-0.612-11.442c-0.99-3.107-2.818-6.071-5.299-8.78
c-5.327-6.125-12.578-9.752-21.747-10.872l-30.479-3.725l-12.688,62.679l21.204,2.591l1.722-8.505l9.274,1.133
c9.169,1.121,17.485-0.515,24.977-5.081C250.663,385.778,253.572,383.4,255.742,380.679 M511.946,436.958L518.507,420
l-30.966-3.784l1.245-6.151l25.153,3.074l5.827-15.308l-27.815-3.399l1.229-6.071l27.816,3.399l3.541-17.492l-49.313-6.025
l-12.688,62.679L511.946,436.958"/>
</g>
<g>
<path fill="#C12D25" d="M321.9,365.356c5.325,0.65,9.647,2.754,12.761,6.376c3.189,3.706,4.405,7.67,3.521,12.044
c-0.129,0.637-0.295,1.256-0.496,1.854c-1.228,3.664-3.792,6.615-7.63,8.855c-3.775,2.318-7.958,3.361-12.439,3.196
c-0.733-0.027-1.475-0.087-2.224-0.178c-5.521-0.675-9.744-2.767-12.957-6.394c-3.221-3.545-4.322-7.586-3.404-12.119
c0.885-4.373,3.512-7.868,8.01-10.635C311.533,365.665,316.38,364.682,321.9,365.356z"/>
</g>
<g>
<path fill="#C12D25" d="M48.683,265.839l41.752,14.893c-13.224,24.004-22.266,48.071-27.152,72.206
c-4.736,23.393-5.568,46.849-2.521,70.379l-44.903,4.14l-0.62,0.097C8.028,373.31,19.125,319.48,48.683,265.839z"/>
</g>
<g>
<path fill="#F2F2F2" d="M350.646,362.146c6.432,7.179,8.653,15.165,6.866,23.991c-1.803,8.906-7.09,16.065-16.029,21.276
c-8.877,5.39-18.668,7.346-29.319,6.044c-10.846-1.325-19.498-5.534-25.71-12.769c-6.449-7.091-8.751-15.177-6.948-24.083
c1.787-8.826,7.154-15.886,16.111-21.184c8.753-5.315,18.668-7.346,29.514-6.021C335.781,350.704,344.31,354.987,350.646,362.146z
M337.686,385.631c0.202-0.599,0.367-1.218,0.496-1.854c0.885-4.374-0.331-8.338-3.521-12.044
c-3.113-3.622-7.436-5.726-12.761-6.376c-5.521-0.675-10.367,0.309-14.859,3.001c-4.498,2.767-7.125,6.262-8.01,10.635
c-0.918,4.533,0.184,8.574,3.404,12.119c3.213,3.627,7.437,5.719,12.957,6.394c0.749,0.091,1.49,0.15,2.224,0.178
c4.481,0.165,8.664-0.878,12.439-3.196C333.894,392.246,336.458,389.295,337.686,385.631"/>
</g>
<g>
<polygon fill="#F2F2F2" points="524.537,374.268 520.996,391.76 493.18,388.36 491.951,394.432 519.768,397.83 513.939,413.138
488.786,410.064 487.541,416.216 518.508,419.999 511.946,436.958 462.536,430.921 475.225,368.242 "/>
</g>
<g>
<path fill="#F2F2F2" d="M60.761,423.323c3.163,23.285,10.047,46.696,20.938,70.268l-42.905,13.765
c-12.27-26.728-20.128-53.327-23.555-79.803l0.618-0.089L60.761,423.323z"/>
</g>
<g>
<path fill="#C12D25" d="M783.679,355.646c6.958,53.958-4.236,107.775-33.68,161.347l-41.654-14.879
c13.134-24.055,22.193-48.08,27.109-72.171c4.765-23.349,5.638-46.76,2.628-70.241L783.679,355.646z"/>
</g>
<g>
<path fill="#F2F2F2" d="M663.709,380.652c10.954,12.288,14.837,26.041,11.755,41.266l-0.918,4.535
c-0.479,2.366-1.104,4.656-1.88,6.874c-4.184,11.975-12.688,21.785-25.596,29.522c-12.448,7.46-25.979,11.165-40.619,11.011
c-3.207-0.033-6.468-0.251-9.782-0.656l-16.961-2.072c-4.142,17.993-8.702,36.025-13.661,54.007
c-0.455,1.63-0.825,3.181-1.116,4.65c-0.642,3.231-0.899,6.068-0.831,8.474c0.199,3.512,1.709,6.519,4.735,9.048
c1.749,1.338,4.366,2.443,7.683,3.48c3.942,1.391,6.499,2.074,8.655,2.338c0.854,0.104,1.646,0.144,2.371,0.112l-5.137,16.386
c-39.196,0.438-75.241-0.232-107.93-1.985l4.38-17.636l10.678-0.854c4.39-0.21,7.779-0.961,10.029-2.098
c4.27-2.131,7.457-4.892,9.612-8.535c2.193-3.376,4.033-7.969,5.482-13.602c5.115-20.286,9.97-40.271,14.458-59.968l-86.19-10.531
c-4.18,19.653-8.596,39.943-13.265,61.031c-0.108,0.491-0.211,0.979-0.308,1.462c-0.873,4.364-1.246,8.423-1.036,12.092
c0.563,4.769,2.099,8.197,4.92,11.193c1.652,1.368,4.363,2.939,8.171,4.567c3.639,1.521,6.961,2.592,9.931,3.373l-4.347,17.976
c-26.743-1.897-53.402-4.485-79.907-7.724c-3.281-0.401-6.562-0.813-9.835-1.232c-2.995-0.385-5.986-0.778-8.976-1.179
c-2.42-0.327-3.259-0.439-4.097-0.556c-1.088-0.147-2.175-0.297-3.264-0.448l3.461-18.085l10.465-0.297
c5.017-0.298,8.489-0.957,10.354-1.723c3.569-1.64,6.578-4.505,9.019-8.606c2.072-3.729,3.847-8.492,5.011-14.243l12.818-63.819
L277.938,434.26c-3.592,19.226-6.979,38.476-10.173,57.757c-0.133,0.891-0.254,1.762-0.357,2.616
c-0.565,4.608-0.697,8.676-0.207,12.17c0.523,4.158,2.193,7.841,5.27,11.071c1.849,1.658,4.875,3.693,9.516,6.248
c4.173,2.338,7.788,3.938,10.93,4.904l-3.185,18.2c-34.809-6.02-69.386-13.187-104.016-21.443
c-1.116-0.266-2.232-0.534-3.35-0.803l1.747-17.128l11.428,0.479c0.684,0.061,1.339,0.106,1.968,0.142
c3.84,0.205,6.635-0.094,8.203-0.968c3.589-1.442,6.277-3.745,7.935-7.048c1.79-3.937,2.793-7.115,3.488-10.587
c0.272-1.358,0.497-2.763,0.676-4.211c2.785-19.241,5.962-38.438,9.341-57.605l-45.069-5.507
c-3.314-0.405-6.506-0.976-9.577-1.709c-14.019-3.348-25.508-10.11-34.494-20.188c-9.146-10.433-13.351-21.796-12.601-34.189
c0.139-2.296,0.448-4.625,0.927-6.991l0.918-4.534c3.082-15.226,12.211-27.389,27.395-36.482
c15.299-9.169,32.136-12.504,50.579-10.25l46.251,5.651c6.353-25.364,13.201-50.748,20.671-76.147l-29.583,1.868
c-5.864,1.023-14.246,8.961-25.187,23.555c-11.151,14.656-19.816,28.033-25.942,40.318l-11.213-0.541
c7.422-27.145,16.393-55.012,26.697-83.454c64.293-3.101,127.686-1.747,189.963,4.121l-20.483,94.177l-11.138-1.36
c0.171-12.616-0.928-26.337-3.125-41.272c-0.229-1.545-0.467-3.102-0.718-4.673c-2.763-16.275-6.579-25.368-11.463-27.211
l-10.682-2.135c-2.049-0.373-3.985-0.671-5.811-0.894c-1.823-0.223-3.538-0.371-5.142-0.444l-6.555-0.553
c-7.055,26.852-13.712,53.761-19.896,80.804l113.218,13.834l11.188-55.813c1.114-5.502,1.545-10.102,1.166-13.711
c-0.564-4.221-2.279-7.747-5.32-10.695c-1.904-2.054-4.979-4.343-9.201-6.935c-3.746-1.818-6.559-3.065-8.457-3.727l3.631-18.35
c3.682,0.38,7.357,0.776,11.032,1.191c3.839,0.433,7.38,0.849,10.92,1.281c23.464,2.88,45.971,6.307,68.273,10.349
c1.73,0.314,3.458,0.631,5.186,0.952c1.348,0.251,2.693,0.503,4.038,0.757c1.323,0.251,2.647,0.503,3.97,0.759l-2.623,17.939
l-10.425,0.548c-0.554,0.114-1.084,0.222-1.592,0.327c-4.135,0.847-6.765,1.385-7.94,1.833c-3.605,1.238-6.34,3.715-8.273,7.354
c-2.162,5.086-3.446,8.973-4.221,12.729c-0.142,0.694-0.269,1.386-0.376,2.073c-2.535,14.543-5.997,33.621-10.491,57.307
l85.605,10.46c2.716-16.927,5.223-33.799,7.631-50.682c0.807-5.467,0.722-10.039,0.043-13.691
c-0.712-3.985-2.704-7.629-5.859-11.001c-1.631-1.76-4.337-3.936-7.999-6.661c-5.351-3.274-8.338-4.962-9.641-5.539l2.312-17.888
c34.317,7.18,68.129,15.875,101.254,25.98l-0.934,16.563l-9.626-0.84c-4.602,0.267-7.924,0.689-10.042,1.178
c-3.472,1.152-5.982,3.586-7.526,7.213c-1.065,2.602-1.811,5.076-2.408,8c-0.299,1.465-0.562,3.039-0.778,4.726
c-1.762,16.208-3.738,32.486-6.128,48.789l18.336,2.241C638.259,361.112,652.877,368.291,663.709,380.652z M636.226,455.049
c13.455-8.065,21.58-18.775,24.301-32.215c2.705-13.366-0.798-25.49-10.417-36.375c-9.62-10.885-22.577-17.284-38.847-19.271
l-401.176-49.019c-16.277-1.989-31.226,1.001-44.691,9.064c-13.35,8.078-21.481,18.78-24.188,32.146
c-0.468,2.31-0.752,4.581-0.853,6.813c-0.484,10.76,3.277,20.627,11.156,29.629c8.892,9.962,20.66,16.251,35.197,18.731
c1.232,0.209,2.484,0.393,3.756,0.548l401.176,49.02C607.91,466.108,622.785,463.033,636.226,455.049"/>
</g>
<g>
<path fill="#F2F2F2" d="M708.247,502.102l41.752,14.892c-14.515,26.28-32.071,50.109-52.597,71.165l-35.299-23.313
C680.133,546.137,695.578,525.283,708.247,502.102z"/>
</g>
<g>
<path fill="#C12D25" d="M81.698,493.591c19.637,42.608,48.605,77.928,86.963,106.026c4.711,3.45,9.563,6.792,14.558,10.025
l-29.097,29.389c-51.736-33.455-90.232-77.412-115.329-131.676L81.698,493.591z"/>
</g>
<g>
<path fill="#F2F2F2" d="M183.219,609.643c22.441,14.446,47.559,26.641,75.731,36.723l-18.783,34.383
c-32.048-11.385-60.673-25.256-86.045-41.717L183.219,609.643z"/>
</g>
<g>
<path fill="#C12D25" d="M662.104,564.846l35.299,23.313c-41.646,42.956-95.961,75.163-162.68,96.713l-16.201-34.759
C577.442,631.09,625.22,602.736,662.104,564.846z"/>
</g>
<g>
<path fill="#F2F2F2" d="M518.521,650.112l16.006,34.735c-32.753,10.523-65.37,17.405-97.975,20.725l-4.374-37.294
C460.874,665.31,489.582,659.272,518.521,650.112z"/>
</g>
<g>
<path fill="#C12D25" d="M258.95,646.365c29.027,10.4,58.143,17.38,87.391,20.979c26.16,3.174,51.748,3.699,77.446,1.682
c0.917-0.072,1.828-0.146,2.745-0.225c2.136-0.185,3.889-0.348,5.646-0.523l4.374,37.294c-32.38,3.288-64.624,2.958-96.736-0.965
c-33.375-4.078-66.605-12.042-99.649-23.859L258.95,646.365z"/>
</g>
<g>
<path fill="#C74A34" d="M14.535,434.404c-0.404-9.57-0.808-19.139-1.212-28.708c0.308,7.278,0.945,14.563,1.915,21.856
l1.212,28.709C15.48,448.969,14.842,441.683,14.535,434.404z"/>
</g>
<g>
<path fill="#BFBFBF" d="M38.793,507.355l1.212,28.71c-12.271-26.728-20.128-53.327-23.555-79.804l-1.212-28.709
C18.665,454.028,26.523,480.628,38.793,507.355z"/>
</g>
<g>
<path fill="#801E18" d="M785.465,376.509c0.403,9.571,0.808,19.141,1.211,28.711c1.982,46.968-9.817,93.818-35.465,140.483
l-1.212-28.71C775.646,470.328,787.447,423.478,785.465,376.509z"/>
</g>
<g>
<path fill="#BFBFBF" d="M749.999,516.993l1.212,28.71c-14.516,26.28-32.072,50.109-52.597,71.165l-1.212-28.71
C717.928,567.103,735.484,543.273,749.999,516.993z"/>
</g>
<g>
<path fill="#801E18" d="M154.122,639.031l1.212,28.71c-51.737-33.455-90.233-77.412-115.329-131.676l-1.212-28.71
C63.89,561.619,102.386,605.576,154.122,639.031z"/>
</g>
<g>
<path fill="#BFBFBF" d="M240.167,680.748l1.211,28.71c-32.047-11.385-60.672-25.256-86.044-41.717l-1.212-28.71
C179.494,655.492,208.119,669.363,240.167,680.748z"/>
</g>
<g>
<path fill="#801E18" d="M697.402,588.158l1.212,28.71c-41.646,42.956-95.961,75.163-162.68,96.713l-1.212-28.71
C601.441,663.321,655.756,631.114,697.402,588.158z"/>
</g>
<g>
<path fill="#BFBFBF" d="M534.527,684.848l1.212,28.71c-32.753,10.523-65.37,17.405-97.975,20.725l-1.212-28.71
C469.157,702.253,501.774,695.371,534.527,684.848z"/>
</g>
<g>
<path fill="#801E18" d="M436.553,705.572l1.212,28.71c-32.38,3.288-64.625,2.958-96.736-0.966
c-33.375-4.077-66.605-12.041-99.65-23.858l-1.211-28.71c33.044,11.817,66.274,19.781,99.649,23.859
C371.929,708.53,404.173,708.86,436.553,705.572z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 MiB

+14 -7
View File
@@ -1,24 +1,31 @@
#include <QtCore>
#include "startview/startview.h"
#include <QQmlApplicationEngine>
#include <QQmlComponent>
//#include "startview/startview.h"
#include "qmlwrapper.h"
qmlWrapper::qmlWrapper()
:QObject()
{
qDebug("qmlWrapperKonstruktor");
myStartView.reset(new startView);
myEngine.reset(new QQmlApplicationEngine);
myEngine->load(QUrl(QStringLiteral("qrc:/main.qml")));
// QTimer *timer = new QTimer(this);
// timer->setSingleShot(true);
// connect(timer, SIGNAL(timeout()), this, SLOT(showStartForm()));
// timer->start(1000);
}
qmlWrapper::~qmlWrapper()
{
myEngine->deleteLater();
}
qmlWrapper::qmlWrapper(const qmlWrapper&)
:QObject()
{
}
void qmlWrapper::showStartView()
{
qDebug("showStartView() in qmlWrapper");
myStartView->show();
}
+6 -5
View File
@@ -1,21 +1,22 @@
#ifndef QMLWRAPPER_H
#define QMLWRAPPER_H
#include <QtCore>
#include <boost/shared_ptr.hpp>
class startView;
class QQmlApplicationEngine;
class qmlWrapper
class qmlWrapper: public QObject
{
Q_OBJECT
public:
qmlWrapper();
~qmlWrapper();
qmlWrapper(const qmlWrapper&);
void showStartView();
public slots:
private:
boost::shared_ptr<startView> myStartView;
boost::shared_ptr<QQmlApplicationEngine> myEngine;
};
#endif // QMLWRAPPER_H
-31
View File
@@ -1,31 +0,0 @@
import QtQuick 2.4
import QtQuick.Controls 1.3
import QtQuick.Layouts 1.1
Item {
width: 640
height: 480
property alias button3: button3
property alias button2: button2
property alias button1: button1
RowLayout {
anchors.centerIn: parent
Button {
id: button1
text: qsTr("Press Me 1")
}
Button {
id: button2
text: qsTr("Press Me 2")
}
Button {
id: button3
text: qsTr("Press Me 3")
}
}
}
@@ -0,0 +1,85 @@
import QtQuick 2.4
import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.2
import QtQuick.Layouts 1.1
import "../../components"
Rectangle {
width: parent.width
height: parent.height
color: "#FAFAFA"
MyComboBoxSelector {
id: myComboBoxSelector
}
ScrollView {
width: parent.width
height: parent.height
ListView {
id:myListView
anchors.fill: parent
model: ListModel {
ListElement {
myId: "comboBox_NumberOfPlayers"
myTitle: qsTr("Number of players")
myType: "ComboBox"
myValue: "10"
// property var myValuesInt: [10, 9, 8, 7, 6, 5, 4, 3, 2]
}
ListElement {
myId: "spinBox_StartCash"
myTitle: qsTr("Start cash")
myType: "SpinBox"
myMaxValue: 10000000
myMinValue: 1000
myPrefix: "$"
myValue: "5000"
}
ListElement {
myId: "comboBox_Blinds"
myTitle: qsTr("Blinds")
myType: "ComboBox"
myValuesList: [
ListElement { value: qsTr("Use saved blinds settings") },
ListElement { value: qsTr("Change blinds settings ...") }
]
myValue: "0"
}
ListElement {
myId: "comboBox_GameSpeed"
myTitle: qsTr("Game speed")
myType: "ComboBox"
// myValuesInt: [11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1]
myValue: "5"
}
ListElement {
myId: "comboBox_GameSpeed"
myTitle: qsTr("Game speed")
myType: "ComboBox"
// myValuesInt: [11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1]
myValue: "5"
}
}
delegate: ListViewDelegateFactory {
myListViewsHeight: myListView.height
myListViewsWidth: myListView.width
}
}
}
function setupToolBar() {
toolBarRightButton.myIconName = "accept";
toolBarLeftButton.myIconName = "back";
}
Component.onCompleted: {
setupToolBar();
}
onVisibleChanged: {
if(visible) setupToolBar()
}
}
-27
View File
@@ -1,27 +0,0 @@
android-no-sdk {
target.path = /data/user/qt
export(target.path)
INSTALLS += target
} else:android {
x86 {
target.path = /libs/x86
} else: armeabi-v7a {
target.path = /libs/armeabi-v7a
} else {
target.path = /libs/armeabi
}
export(target.path)
INSTALLS += target
} else:unix {
isEmpty(target.path) {
qnx {
target.path = /tmp/$${TARGET}/bin
} else {
target.path = /opt/$${TARGET}/bin
}
export(target.path)
}
INSTALLS += target
}
export(INSTALLS)
-12
View File
@@ -1,12 +0,0 @@
#include <QApplication>
#include <QQmlApplicationEngine>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
return app.exec();
}
-42
View File
@@ -1,42 +0,0 @@
import QtQuick 2.4
import QtQuick.Controls 1.3
import QtQuick.Window 2.2
import QtQuick.Dialogs 1.2
ApplicationWindow {
title: qsTr("Hello World")
width: 640
height: 480
visible: true
menuBar: MenuBar {
Menu {
title: qsTr("&File")
MenuItem {
text: qsTr("&Open")
onTriggered: messageDialog.show(qsTr("Open action triggered"));
}
MenuItem {
text: qsTr("E&xit")
onTriggered: Qt.quit();
}
}
}
MainForm {
anchors.fill: parent
button1.onClicked: messageDialog.show(qsTr("Button 1 pressed"))
button2.onClicked: messageDialog.show(qsTr("Button 2 pressed"))
button3.onClicked: messageDialog.show(qsTr("Button 3 pressed"))
}
MessageDialog {
id: messageDialog
title: qsTr("May I have your attention, please?")
function show(caption) {
messageDialog.text = caption;
messageDialog.open();
}
}
}
-6
View File
@@ -1,6 +0,0 @@
<RCC>
<qresource prefix="/">
<file>main.qml</file>
<file>MainForm.ui.qml</file>
</qresource>
</RCC>
@@ -0,0 +1,42 @@
import QtQuick 2.0
import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.2
Button {
property string page
width: parent.width*0.50
height: parent.height/7
onClicked: stackView.push(Qt.resolvedUrl(page))
anchors.horizontalCenter: parent.horizontalCenter
Component {
id: myStyle
ButtonStyle {
panel: Item {
implicitHeight: height
implicitWidth: width
BorderImage {
anchors.fill: parent
antialiasing: true
border.bottom: 8
border.top: 8
border.left: 8
border.right: 8
anchors.margins: control.pressed ? -4 : 0
source: control.pressed ? "../../images/button-pressed.png" : "../../images/button-default.png"
Text {
text: control.text
anchors.centerIn: parent
color: "white"
font.pixelSize: Math.min(parent.width*0.10, parent.height*0.40)
renderType: Text.NativeRendering
}
}
}
}
}
style: myStyle
}
+41
View File
@@ -0,0 +1,41 @@
import QtQuick 2.4
import QtQuick.Controls 1.2
import QtQuick.Layouts 1.1
Item {
Image {
id: background
source: "../../images/startViewBackground.png"
anchors.fill: parent
fillMode: Image.PreserveAspectCrop
}
ColumnLayout {
anchors.fill: parent
StartButton {
text: qsTr("Local game")
page: "../createlocalgameview/CreateLocalGameView.qml"
}
StartButton {
text: qsTr("Internet game")
page: "JoinInternetGameView.qml"
}
StartButton {
text: qsTr("Logs")
page: "LogsView.qml"
}
}
function setupToolBar() {
toolBarRightButton.myIconName = "more";
toolBarLeftButton.myIconName = "PokerTH";
}
Component.onCompleted: {
setupToolBar();
}
onVisibleChanged: {
if(visible) setupToolBar()
}
}
-1
View File
@@ -38,7 +38,6 @@ int main(int argc, char *argv[])
{
QApplication app(argc, argv);
qmlWrapper myQml;
myQml.showStartView();
return app.exec();
}