parent
2b439b4e52
commit
2749c177bf
Binary file not shown.
@ -0,0 +1,61 @@
|
|||||||
|
QT += core gui
|
||||||
|
|
||||||
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||||
|
|
||||||
|
CONFIG += c++11
|
||||||
|
|
||||||
|
# The following define makes your compiler emit warnings if you use
|
||||||
|
# any Qt feature that has been marked deprecated (the exact warnings
|
||||||
|
# depend on your compiler). Please consult the documentation of the
|
||||||
|
# deprecated API in order to know how to port your code away from it.
|
||||||
|
DEFINES += QT_DEPRECATED_WARNINGS
|
||||||
|
|
||||||
|
# You can also make your code fail to compile if it uses deprecated APIs.
|
||||||
|
# In order to do so, uncomment the following line.
|
||||||
|
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
||||||
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||||
|
|
||||||
|
SOURCES += \
|
||||||
|
conditionwidget.cpp \
|
||||||
|
informationwidget.cpp \
|
||||||
|
loginwidget.cpp \
|
||||||
|
main.cpp \
|
||||||
|
mainwindow.cpp \
|
||||||
|
planwidget.cpp \
|
||||||
|
preferencewidget.cpp \
|
||||||
|
rankwidget.cpp \
|
||||||
|
recommandrouteswidget.cpp \
|
||||||
|
recommandwidget.cpp \
|
||||||
|
searchwidget.cpp \
|
||||||
|
showroutewidget.cpp
|
||||||
|
|
||||||
|
HEADERS += \
|
||||||
|
conditionwidget.h \
|
||||||
|
informationwidget.h \
|
||||||
|
loginwidget.h \
|
||||||
|
mainwindow.h \
|
||||||
|
planwidget.h \
|
||||||
|
preferencewidget.h \
|
||||||
|
rankwidget.h \
|
||||||
|
recommandrouteswidget.h \
|
||||||
|
recommandwidget.h \
|
||||||
|
searchwidget.h \
|
||||||
|
showroutewidget.h
|
||||||
|
|
||||||
|
FORMS += \
|
||||||
|
conditionwidget.ui \
|
||||||
|
informationwidget.ui \
|
||||||
|
loginwidget.ui \
|
||||||
|
mainwindow.ui \
|
||||||
|
planwidget.ui \
|
||||||
|
preferencewidget.ui \
|
||||||
|
rankwidget.ui \
|
||||||
|
recommandrouteswidget.ui \
|
||||||
|
recommandwidget.ui \
|
||||||
|
searchwidget.ui \
|
||||||
|
showroutewidget.ui
|
||||||
|
|
||||||
|
# Default rules for deployment.
|
||||||
|
qnx: target.path = /tmp/$${TARGET}/bin
|
||||||
|
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
||||||
|
!isEmpty(target.path): INSTALLS += target
|
@ -0,0 +1,317 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE QtCreatorProject>
|
||||||
|
<!-- Written by QtCreator 4.11.1, 2021-06-16T10:33:03. -->
|
||||||
|
<qtcreator>
|
||||||
|
<data>
|
||||||
|
<variable>EnvironmentId</variable>
|
||||||
|
<value type="QByteArray">{5009ac75-b61d-4c91-8540-bc9e10b6e582}</value>
|
||||||
|
</data>
|
||||||
|
<data>
|
||||||
|
<variable>ProjectExplorer.Project.ActiveTarget</variable>
|
||||||
|
<value type="int">0</value>
|
||||||
|
</data>
|
||||||
|
<data>
|
||||||
|
<variable>ProjectExplorer.Project.EditorSettings</variable>
|
||||||
|
<valuemap type="QVariantMap">
|
||||||
|
<value type="bool" key="EditorConfiguration.AutoIndent">true</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
|
||||||
|
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
|
||||||
|
<value type="QString" key="language">Cpp</value>
|
||||||
|
<valuemap type="QVariantMap" key="value">
|
||||||
|
<value type="QByteArray" key="CurrentPreferences">CppGlobal</value>
|
||||||
|
</valuemap>
|
||||||
|
</valuemap>
|
||||||
|
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
|
||||||
|
<value type="QString" key="language">QmlJS</value>
|
||||||
|
<valuemap type="QVariantMap" key="value">
|
||||||
|
<value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value>
|
||||||
|
</valuemap>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="EditorConfiguration.CodeStyle.Count">2</value>
|
||||||
|
<value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
|
||||||
|
<value type="int" key="EditorConfiguration.IndentSize">4</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
|
||||||
|
<value type="int" key="EditorConfiguration.MarginColumn">80</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.MouseHiding">true</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
|
||||||
|
<value type="int" key="EditorConfiguration.PaddingMode">1</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.ShowMargin">false</value>
|
||||||
|
<value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.SmartSelectionChanging">true</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
|
||||||
|
<value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
|
||||||
|
<value type="int" key="EditorConfiguration.TabSize">8</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.UseGlobal">true</value>
|
||||||
|
<value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
|
||||||
|
</valuemap>
|
||||||
|
</data>
|
||||||
|
<data>
|
||||||
|
<variable>ProjectExplorer.Project.PluginSettings</variable>
|
||||||
|
<valuemap type="QVariantMap">
|
||||||
|
<valuelist type="QVariantList" key="ClangCodeModel.CustomCommandLineKey"/>
|
||||||
|
<value type="bool" key="ClangCodeModel.UseGlobalConfig">true</value>
|
||||||
|
</valuemap>
|
||||||
|
</data>
|
||||||
|
<data>
|
||||||
|
<variable>ProjectExplorer.Project.Target.0</variable>
|
||||||
|
<valuemap type="QVariantMap">
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.14.2 GCC 64bit</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.14.2 GCC 64bit</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt5.5142.gcc_64_kit</value>
|
||||||
|
<value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
|
||||||
|
<value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
|
||||||
|
<value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
|
||||||
|
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/extra/Program/Qt5.14.2/Trip-in-Chang-sha/build-Changsha_Tour-Desktop_Qt_5_14_2_GCC_64bit-Debug</value>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||||
|
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||||
|
<value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value>
|
||||||
|
<value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
|
||||||
|
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||||
|
<value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value>
|
||||||
|
<value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value>
|
||||||
|
</valuemap>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||||
|
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||||
|
<valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.BuildTargets"/>
|
||||||
|
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
|
||||||
|
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
|
||||||
|
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
|
||||||
|
<value type="bool" key="Qt4ProjectManager.MakeStep.OverrideMakeflags">false</value>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||||
|
</valuemap>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||||
|
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||||
|
<valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.BuildTargets"/>
|
||||||
|
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
|
||||||
|
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||||
|
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
|
||||||
|
<value type="bool" key="Qt4ProjectManager.MakeStep.OverrideMakeflags">false</value>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||||
|
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||||
|
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||||
|
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
|
||||||
|
</valuemap>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
|
||||||
|
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/extra/Program/Qt5.14.2/Trip-in-Chang-sha/build-Changsha_Tour-Desktop_Qt_5_14_2_GCC_64bit-Release</value>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||||
|
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||||
|
<value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
|
||||||
|
<value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
|
||||||
|
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||||
|
<value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value>
|
||||||
|
<value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">true</value>
|
||||||
|
</valuemap>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||||
|
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||||
|
<valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.BuildTargets"/>
|
||||||
|
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
|
||||||
|
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
|
||||||
|
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
|
||||||
|
<value type="bool" key="Qt4ProjectManager.MakeStep.OverrideMakeflags">false</value>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||||
|
</valuemap>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||||
|
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||||
|
<valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.BuildTargets"/>
|
||||||
|
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
|
||||||
|
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||||
|
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
|
||||||
|
<value type="bool" key="Qt4ProjectManager.MakeStep.OverrideMakeflags">false</value>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||||
|
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||||
|
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Release</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||||
|
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
|
||||||
|
</valuemap>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2">
|
||||||
|
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/extra/Program/Qt5.14.2/Trip-in-Chang-sha/build-Changsha_Tour-Desktop_Qt_5_14_2_GCC_64bit-Profile</value>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||||
|
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||||
|
<value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value>
|
||||||
|
<value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
|
||||||
|
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||||
|
<value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">true</value>
|
||||||
|
<value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">true</value>
|
||||||
|
</valuemap>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||||
|
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||||
|
<valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.BuildTargets"/>
|
||||||
|
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
|
||||||
|
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
|
||||||
|
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
|
||||||
|
<value type="bool" key="Qt4ProjectManager.MakeStep.OverrideMakeflags">false</value>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||||
|
</valuemap>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||||
|
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||||
|
<valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.BuildTargets"/>
|
||||||
|
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
|
||||||
|
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||||
|
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
|
||||||
|
<value type="bool" key="Qt4ProjectManager.MakeStep.OverrideMakeflags">false</value>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||||
|
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||||
|
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Profile</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||||
|
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">3</value>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||||
|
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Deploy</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
|
||||||
|
<value type="QString" key="Analyzer.Perf.CallgraphMode">dwarf</value>
|
||||||
|
<valuelist type="QVariantList" key="Analyzer.Perf.Events">
|
||||||
|
<value type="QString">cpu-cycles</value>
|
||||||
|
</valuelist>
|
||||||
|
<valuelist type="QVariantList" key="Analyzer.Perf.ExtraArguments"/>
|
||||||
|
<value type="int" key="Analyzer.Perf.Frequency">250</value>
|
||||||
|
<valuelist type="QVariantList" key="Analyzer.Perf.RecordArguments">
|
||||||
|
<value type="QString">-e</value>
|
||||||
|
<value type="QString">cpu-cycles</value>
|
||||||
|
<value type="QString">--call-graph</value>
|
||||||
|
<value type="QString">dwarf,4096</value>
|
||||||
|
<value type="QString">-F</value>
|
||||||
|
<value type="QString">250</value>
|
||||||
|
</valuelist>
|
||||||
|
<value type="QString" key="Analyzer.Perf.SampleMode">-F</value>
|
||||||
|
<value type="bool" key="Analyzer.Perf.Settings.UseGlobalSettings">true</value>
|
||||||
|
<value type="int" key="Analyzer.Perf.StackSize">4096</value>
|
||||||
|
<value type="bool" key="Analyzer.QmlProfiler.AggregateTraces">false</value>
|
||||||
|
<value type="bool" key="Analyzer.QmlProfiler.FlushEnabled">false</value>
|
||||||
|
<value type="uint" key="Analyzer.QmlProfiler.FlushInterval">1000</value>
|
||||||
|
<value type="QString" key="Analyzer.QmlProfiler.LastTraceFile"></value>
|
||||||
|
<value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value>
|
||||||
|
<valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/>
|
||||||
|
<value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
|
||||||
|
<value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
|
||||||
|
<value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
|
||||||
|
<value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
|
||||||
|
<value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
|
||||||
|
<value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
|
||||||
|
<value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
|
||||||
|
<value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value>
|
||||||
|
<value type="QString" key="Analyzer.Valgrind.KCachegrindExecutable">kcachegrind</value>
|
||||||
|
<value type="int" key="Analyzer.Valgrind.LeakCheckOnFinish">1</value>
|
||||||
|
<value type="int" key="Analyzer.Valgrind.NumCallers">25</value>
|
||||||
|
<valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
|
||||||
|
<value type="int" key="Analyzer.Valgrind.SelfModifyingCodeDetection">1</value>
|
||||||
|
<value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value>
|
||||||
|
<value type="bool" key="Analyzer.Valgrind.ShowReachable">false</value>
|
||||||
|
<value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value>
|
||||||
|
<value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
|
||||||
|
<valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
|
||||||
|
<value type="int">0</value>
|
||||||
|
<value type="int">1</value>
|
||||||
|
<value type="int">2</value>
|
||||||
|
<value type="int">3</value>
|
||||||
|
<value type="int">4</value>
|
||||||
|
<value type="int">5</value>
|
||||||
|
<value type="int">6</value>
|
||||||
|
<value type="int">7</value>
|
||||||
|
<value type="int">8</value>
|
||||||
|
<value type="int">9</value>
|
||||||
|
<value type="int">10</value>
|
||||||
|
<value type="int">11</value>
|
||||||
|
<value type="int">12</value>
|
||||||
|
<value type="int">13</value>
|
||||||
|
<value type="int">14</value>
|
||||||
|
</valuelist>
|
||||||
|
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
|
||||||
|
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/home/extra/Program/Qt5.14.2/Trip-in-Chang-sha/Changsha_Tour/Changsha_Tour.pro</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">/home/extra/Program/Qt5.14.2/Trip-in-Chang-sha/Changsha_Tour/Changsha_Tour.pro</value>
|
||||||
|
<value type="QString" key="RunConfiguration.Arguments"></value>
|
||||||
|
<value type="bool" key="RunConfiguration.Arguments.multi">false</value>
|
||||||
|
<value type="QString" key="RunConfiguration.OverrideDebuggerStartup"></value>
|
||||||
|
<value type="bool" key="RunConfiguration.UseCppDebugger">false</value>
|
||||||
|
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
|
||||||
|
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
|
||||||
|
<value type="bool" key="RunConfiguration.UseMultiProcess">false</value>
|
||||||
|
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
|
||||||
|
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
|
||||||
|
<value type="QString" key="RunConfiguration.WorkingDirectory"></value>
|
||||||
|
<value type="QString" key="RunConfiguration.WorkingDirectory.default">/home/extra/Program/Qt5.14.2/Trip-in-Chang-sha/build-Changsha_Tour-Desktop_Qt_5_14_2_GCC_64bit-Debug</value>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
|
||||||
|
</valuemap>
|
||||||
|
</data>
|
||||||
|
<data>
|
||||||
|
<variable>ProjectExplorer.Project.TargetCount</variable>
|
||||||
|
<value type="int">1</value>
|
||||||
|
</data>
|
||||||
|
<data>
|
||||||
|
<variable>ProjectExplorer.Project.Updater.FileVersion</variable>
|
||||||
|
<value type="int">22</value>
|
||||||
|
</data>
|
||||||
|
<data>
|
||||||
|
<variable>Version</variable>
|
||||||
|
<value type="int">22</value>
|
||||||
|
</data>
|
||||||
|
</qtcreator>
|
@ -0,0 +1,337 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE QtCreatorProject>
|
||||||
|
<!-- Written by QtCreator 4.10.0, 2020-11-17T17:02:40. -->
|
||||||
|
<qtcreator>
|
||||||
|
<data>
|
||||||
|
<variable>EnvironmentId</variable>
|
||||||
|
<value type="QByteArray">{0c4c8ccc-c524-4850-ba23-7e124d5915df}</value>
|
||||||
|
</data>
|
||||||
|
<data>
|
||||||
|
<variable>ProjectExplorer.Project.ActiveTarget</variable>
|
||||||
|
<value type="int">0</value>
|
||||||
|
</data>
|
||||||
|
<data>
|
||||||
|
<variable>ProjectExplorer.Project.EditorSettings</variable>
|
||||||
|
<valuemap type="QVariantMap">
|
||||||
|
<value type="bool" key="EditorConfiguration.AutoIndent">true</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
|
||||||
|
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
|
||||||
|
<value type="QString" key="language">Cpp</value>
|
||||||
|
<valuemap type="QVariantMap" key="value">
|
||||||
|
<value type="QByteArray" key="CurrentPreferences">CppGlobal</value>
|
||||||
|
</valuemap>
|
||||||
|
</valuemap>
|
||||||
|
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
|
||||||
|
<value type="QString" key="language">QmlJS</value>
|
||||||
|
<valuemap type="QVariantMap" key="value">
|
||||||
|
<value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value>
|
||||||
|
</valuemap>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="EditorConfiguration.CodeStyle.Count">2</value>
|
||||||
|
<value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
|
||||||
|
<value type="int" key="EditorConfiguration.IndentSize">4</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
|
||||||
|
<value type="int" key="EditorConfiguration.MarginColumn">80</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.MouseHiding">true</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
|
||||||
|
<value type="int" key="EditorConfiguration.PaddingMode">1</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.ShowMargin">false</value>
|
||||||
|
<value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.SmartSelectionChanging">true</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
|
||||||
|
<value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
|
||||||
|
<value type="int" key="EditorConfiguration.TabSize">8</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.UseGlobal">true</value>
|
||||||
|
<value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
|
||||||
|
<value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
|
||||||
|
</valuemap>
|
||||||
|
</data>
|
||||||
|
<data>
|
||||||
|
<variable>ProjectExplorer.Project.PluginSettings</variable>
|
||||||
|
<valuemap type="QVariantMap">
|
||||||
|
<valuelist type="QVariantList" key="ClangCodeModel.CustomCommandLineKey">
|
||||||
|
<value type="QString">-fno-delayed-template-parsing</value>
|
||||||
|
</valuelist>
|
||||||
|
<value type="bool" key="ClangCodeModel.UseGlobalConfig">true</value>
|
||||||
|
</valuemap>
|
||||||
|
</data>
|
||||||
|
<data>
|
||||||
|
<variable>ProjectExplorer.Project.Target.0</variable>
|
||||||
|
<valuemap type="QVariantMap">
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.13.1 MinGW 64-bit</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.13.1 MinGW 64-bit</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt5.5131.win64_mingw73_kit</value>
|
||||||
|
<value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
|
||||||
|
<value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
|
||||||
|
<value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
|
||||||
|
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">F:/QtDemo/build-Changsha_Tour-Desktop_Qt_5_13_1_MinGW_64_bit-Debug</value>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||||
|
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||||
|
<value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value>
|
||||||
|
<value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
|
||||||
|
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||||
|
<value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value>
|
||||||
|
<value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value>
|
||||||
|
</valuemap>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||||
|
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||||
|
<valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.BuildTargets"/>
|
||||||
|
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
|
||||||
|
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
|
||||||
|
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
|
||||||
|
<value type="bool" key="Qt4ProjectManager.MakeStep.OverrideMakeflags">false</value>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||||
|
</valuemap>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||||
|
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||||
|
<valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.BuildTargets"/>
|
||||||
|
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
|
||||||
|
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||||
|
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
|
||||||
|
<value type="bool" key="Qt4ProjectManager.MakeStep.OverrideMakeflags">false</value>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||||
|
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||||
|
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Debug</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||||
|
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
|
||||||
|
<value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value>
|
||||||
|
</valuemap>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
|
||||||
|
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">F:/QtDemo/build-Changsha_Tour-Desktop_Qt_5_13_1_MinGW_64_bit-Release</value>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||||
|
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||||
|
<value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
|
||||||
|
<value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
|
||||||
|
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||||
|
<value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value>
|
||||||
|
<value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">true</value>
|
||||||
|
</valuemap>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||||
|
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||||
|
<valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.BuildTargets"/>
|
||||||
|
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
|
||||||
|
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
|
||||||
|
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
|
||||||
|
<value type="bool" key="Qt4ProjectManager.MakeStep.OverrideMakeflags">false</value>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||||
|
</valuemap>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||||
|
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||||
|
<valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.BuildTargets"/>
|
||||||
|
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
|
||||||
|
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||||
|
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
|
||||||
|
<value type="bool" key="Qt4ProjectManager.MakeStep.OverrideMakeflags">false</value>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||||
|
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||||
|
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Release</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Release</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||||
|
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
|
||||||
|
<value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value>
|
||||||
|
</valuemap>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2">
|
||||||
|
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">F:/QtDemo/build-Changsha_Tour-Desktop_Qt_5_13_1_MinGW_64_bit-Profile</value>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||||
|
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||||
|
<value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value>
|
||||||
|
<value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
|
||||||
|
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||||
|
<value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">true</value>
|
||||||
|
<value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">true</value>
|
||||||
|
</valuemap>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||||
|
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||||
|
<valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.BuildTargets"/>
|
||||||
|
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
|
||||||
|
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
|
||||||
|
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
|
||||||
|
<value type="bool" key="Qt4ProjectManager.MakeStep.OverrideMakeflags">false</value>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||||
|
</valuemap>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||||
|
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||||
|
<valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.BuildTargets"/>
|
||||||
|
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
|
||||||
|
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||||
|
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
|
||||||
|
<value type="bool" key="Qt4ProjectManager.MakeStep.OverrideMakeflags">false</value>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||||
|
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||||
|
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Profile</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Profile</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||||
|
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
|
||||||
|
<value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">3</value>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||||
|
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">部署</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy Configuration</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/>
|
||||||
|
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
|
||||||
|
<value type="QString" key="Analyzer.Perf.CallgraphMode">dwarf</value>
|
||||||
|
<valuelist type="QVariantList" key="Analyzer.Perf.Events">
|
||||||
|
<value type="QString">cpu-cycles</value>
|
||||||
|
</valuelist>
|
||||||
|
<valuelist type="QVariantList" key="Analyzer.Perf.ExtraArguments"/>
|
||||||
|
<value type="int" key="Analyzer.Perf.Frequency">250</value>
|
||||||
|
<value type="QString" key="Analyzer.Perf.SampleMode">-F</value>
|
||||||
|
<value type="bool" key="Analyzer.Perf.Settings.UseGlobalSettings">true</value>
|
||||||
|
<value type="int" key="Analyzer.Perf.StackSize">4096</value>
|
||||||
|
<value type="bool" key="Analyzer.QmlProfiler.AggregateTraces">false</value>
|
||||||
|
<value type="bool" key="Analyzer.QmlProfiler.FlushEnabled">false</value>
|
||||||
|
<value type="uint" key="Analyzer.QmlProfiler.FlushInterval">1000</value>
|
||||||
|
<value type="QString" key="Analyzer.QmlProfiler.LastTraceFile"></value>
|
||||||
|
<value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value>
|
||||||
|
<valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/>
|
||||||
|
<value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
|
||||||
|
<value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
|
||||||
|
<value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
|
||||||
|
<value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
|
||||||
|
<value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
|
||||||
|
<value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
|
||||||
|
<value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
|
||||||
|
<value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value>
|
||||||
|
<value type="QString" key="Analyzer.Valgrind.KCachegrindExecutable">kcachegrind</value>
|
||||||
|
<value type="int" key="Analyzer.Valgrind.LeakCheckOnFinish">1</value>
|
||||||
|
<value type="int" key="Analyzer.Valgrind.NumCallers">25</value>
|
||||||
|
<valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
|
||||||
|
<value type="int" key="Analyzer.Valgrind.SelfModifyingCodeDetection">1</value>
|
||||||
|
<value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value>
|
||||||
|
<value type="bool" key="Analyzer.Valgrind.ShowReachable">false</value>
|
||||||
|
<value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value>
|
||||||
|
<value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
|
||||||
|
<valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
|
||||||
|
<value type="int">0</value>
|
||||||
|
<value type="int">1</value>
|
||||||
|
<value type="int">2</value>
|
||||||
|
<value type="int">3</value>
|
||||||
|
<value type="int">4</value>
|
||||||
|
<value type="int">5</value>
|
||||||
|
<value type="int">6</value>
|
||||||
|
<value type="int">7</value>
|
||||||
|
<value type="int">8</value>
|
||||||
|
<value type="int">9</value>
|
||||||
|
<value type="int">10</value>
|
||||||
|
<value type="int">11</value>
|
||||||
|
<value type="int">12</value>
|
||||||
|
<value type="int">13</value>
|
||||||
|
<value type="int">14</value>
|
||||||
|
</valuelist>
|
||||||
|
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
|
||||||
|
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Changsha_Tour</value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:F:/QtDemo/Changsha_Tour/Changsha_Tour.pro</value>
|
||||||
|
<value type="QString" key="RunConfiguration.Arguments"></value>
|
||||||
|
<value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
|
||||||
|
<value type="bool" key="RunConfiguration.UseCppDebugger">false</value>
|
||||||
|
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
|
||||||
|
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
|
||||||
|
<value type="bool" key="RunConfiguration.UseMultiProcess">false</value>
|
||||||
|
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
|
||||||
|
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
|
||||||
|
<value type="QString" key="RunConfiguration.WorkingDirectory"></value>
|
||||||
|
<value type="QString" key="RunConfiguration.WorkingDirectory.default">F:/QtDemo/build-Changsha_Tour-Desktop_Qt_5_13_1_MinGW_64_bit-Debug</value>
|
||||||
|
</valuemap>
|
||||||
|
<value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
|
||||||
|
</valuemap>
|
||||||
|
</data>
|
||||||
|
<data>
|
||||||
|
<variable>ProjectExplorer.Project.TargetCount</variable>
|
||||||
|
<value type="int">1</value>
|
||||||
|
</data>
|
||||||
|
<data>
|
||||||
|
<variable>ProjectExplorer.Project.Updater.FileVersion</variable>
|
||||||
|
<value type="int">22</value>
|
||||||
|
</data>
|
||||||
|
<data>
|
||||||
|
<variable>Version</variable>
|
||||||
|
<value type="int">22</value>
|
||||||
|
</data>
|
||||||
|
</qtcreator>
|
@ -0,0 +1,59 @@
|
|||||||
|
#include "conditionwidget.h"
|
||||||
|
#include "ui_conditionwidget.h"
|
||||||
|
|
||||||
|
ConditionWidget::ConditionWidget(QWidget *parent) :
|
||||||
|
QWidget(parent),
|
||||||
|
ui(new Ui::ConditionWidget)
|
||||||
|
{
|
||||||
|
ui->setupUi(this);
|
||||||
|
|
||||||
|
QVBoxLayout * verticalLayout = new QVBoxLayout();
|
||||||
|
QHBoxLayout * dateTimeHorizontalLayout = new QHBoxLayout();
|
||||||
|
QHBoxLayout * placeHorizontalLayout = new QHBoxLayout();
|
||||||
|
QHBoxLayout * numberHorizontalLayout = new QHBoxLayout();
|
||||||
|
QHBoxLayout * budgetHorizontalLayout = new QHBoxLayout();
|
||||||
|
|
||||||
|
QLabel * startDateTimeLabel = new QLabel("开始时间");
|
||||||
|
startDateTime = new QDateTimeEdit();
|
||||||
|
QLabel * endDateTimeLabel = new QLabel("结束时间");
|
||||||
|
endDateTime = new QDateTimeEdit();
|
||||||
|
dateTimeHorizontalLayout->addWidget(startDateTimeLabel);
|
||||||
|
dateTimeHorizontalLayout->addWidget(startDateTime);
|
||||||
|
dateTimeHorizontalLayout->addWidget(endDateTimeLabel);
|
||||||
|
dateTimeHorizontalLayout->addWidget(endDateTime);
|
||||||
|
|
||||||
|
QLabel * startPlaceLabel = new QLabel("起点");
|
||||||
|
startPlace = new QLineEdit();
|
||||||
|
QLabel * endPlaceLabel = new QLabel("终点");
|
||||||
|
endPlace = new QLineEdit();
|
||||||
|
placeHorizontalLayout->addWidget(startPlaceLabel);
|
||||||
|
placeHorizontalLayout->addWidget(startPlace);
|
||||||
|
placeHorizontalLayout->addWidget(endPlaceLabel);
|
||||||
|
placeHorizontalLayout->addWidget(endPlace);
|
||||||
|
|
||||||
|
QLabel * numberLabel = new QLabel("人数");
|
||||||
|
numberLine = new QLineEdit();
|
||||||
|
numberLine->setPlaceholderText("请输入大于0小于等于8的整数");
|
||||||
|
numberLine->setValidator(new QIntValidator(numberLine));
|
||||||
|
numberHorizontalLayout->addWidget(numberLabel);
|
||||||
|
numberHorizontalLayout->addWidget(numberLine);
|
||||||
|
|
||||||
|
QLabel * budgetLabel = new QLabel("预算");
|
||||||
|
budgetLine = new QLineEdit();
|
||||||
|
budgetLine->setPlaceholderText("请输入整数");
|
||||||
|
budgetLine->setValidator(new QIntValidator(budgetLine));
|
||||||
|
budgetHorizontalLayout->addWidget(budgetLabel);
|
||||||
|
budgetHorizontalLayout->addWidget(budgetLine);
|
||||||
|
|
||||||
|
verticalLayout->addLayout(dateTimeHorizontalLayout);
|
||||||
|
verticalLayout->addLayout(placeHorizontalLayout);
|
||||||
|
verticalLayout->addLayout(numberHorizontalLayout);
|
||||||
|
verticalLayout->addLayout(budgetHorizontalLayout);
|
||||||
|
|
||||||
|
this->setLayout(verticalLayout);
|
||||||
|
}
|
||||||
|
|
||||||
|
ConditionWidget::~ConditionWidget()
|
||||||
|
{
|
||||||
|
delete ui;
|
||||||
|
}
|
@ -0,0 +1,33 @@
|
|||||||
|
#ifndef CONDITIONWIDGET_H
|
||||||
|
#define CONDITIONWIDGET_H
|
||||||
|
|
||||||
|
#include <QWidget>
|
||||||
|
#include <QLayout>
|
||||||
|
#include <QLabel>
|
||||||
|
#include <QLineEdit>
|
||||||
|
#include <QValidator>
|
||||||
|
#include <QDateTimeEdit>
|
||||||
|
|
||||||
|
namespace Ui {
|
||||||
|
class ConditionWidget;
|
||||||
|
}
|
||||||
|
|
||||||
|
class ConditionWidget : public QWidget
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit ConditionWidget(QWidget *parent = nullptr);
|
||||||
|
~ConditionWidget();
|
||||||
|
|
||||||
|
private:
|
||||||
|
Ui::ConditionWidget *ui;
|
||||||
|
QDateTimeEdit * startDateTime;
|
||||||
|
QDateTimeEdit * endDateTime;
|
||||||
|
QLineEdit * startPlace;
|
||||||
|
QLineEdit * endPlace;
|
||||||
|
QLineEdit * numberLine;
|
||||||
|
QLineEdit * budgetLine;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // CONDITIONWIDGET_H
|
@ -0,0 +1,21 @@
|
|||||||
|
<ui version="4.0">
|
||||||
|
<author/>
|
||||||
|
<comment/>
|
||||||
|
<exportmacro/>
|
||||||
|
<class>ConditionWidget</class>
|
||||||
|
<widget class="QWidget" name="ConditionWidget">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>400</width>
|
||||||
|
<height>300</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Form</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<pixmapfunction/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
@ -0,0 +1,26 @@
|
|||||||
|
#include "informationwidget.h"
|
||||||
|
#include "ui_informationwidget.h"
|
||||||
|
|
||||||
|
InformationWidget::InformationWidget(QWidget *parent) :
|
||||||
|
QWidget(parent),
|
||||||
|
ui(new Ui::InformationWidget)
|
||||||
|
{
|
||||||
|
ui->setupUi(this);
|
||||||
|
|
||||||
|
QVBoxLayout * verticalLayout = new QVBoxLayout();
|
||||||
|
logoutButton = new QPushButton("注销");
|
||||||
|
|
||||||
|
verticalLayout->addWidget(logoutButton);
|
||||||
|
|
||||||
|
this->setLayout(verticalLayout);
|
||||||
|
}
|
||||||
|
|
||||||
|
InformationWidget::~InformationWidget()
|
||||||
|
{
|
||||||
|
delete ui;
|
||||||
|
}
|
||||||
|
|
||||||
|
QPushButton * InformationWidget::GetLogoutButton()
|
||||||
|
{
|
||||||
|
return logoutButton;
|
||||||
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
#ifndef INFORMATIONWIDGET_H
|
||||||
|
#define INFORMATIONWIDGET_H
|
||||||
|
|
||||||
|
#include <QWidget>
|
||||||
|
#include <QLayout>
|
||||||
|
#include <QLabel>
|
||||||
|
#include <QPushButton>
|
||||||
|
|
||||||
|
namespace Ui {
|
||||||
|
class InformationWidget;
|
||||||
|
}
|
||||||
|
|
||||||
|
class InformationWidget : public QWidget
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit InformationWidget(QWidget *parent = nullptr);
|
||||||
|
~InformationWidget();
|
||||||
|
QPushButton * GetLogoutButton();
|
||||||
|
|
||||||
|
private:
|
||||||
|
Ui::InformationWidget *ui;
|
||||||
|
QPushButton * logoutButton;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // INFORMATIONWIDGET_H
|
@ -0,0 +1,21 @@
|
|||||||
|
<ui version="4.0">
|
||||||
|
<author/>
|
||||||
|
<comment/>
|
||||||
|
<exportmacro/>
|
||||||
|
<class>InformationWidget</class>
|
||||||
|
<widget class="QWidget" name="InformationWidget">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>400</width>
|
||||||
|
<height>300</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Form</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<pixmapfunction/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
@ -0,0 +1,46 @@
|
|||||||
|
#include "loginwidget.h"
|
||||||
|
#include "ui_loginwidget.h"
|
||||||
|
|
||||||
|
LoginWidget::LoginWidget(QWidget *parent) :
|
||||||
|
QWidget(parent),
|
||||||
|
ui(new Ui::LoginWidget)
|
||||||
|
{
|
||||||
|
ui->setupUi(this);
|
||||||
|
|
||||||
|
QVBoxLayout * verticalLayout = new QVBoxLayout();
|
||||||
|
QHBoxLayout * accountHorizontalLayout = new QHBoxLayout();
|
||||||
|
QHBoxLayout * passwordHorizontalLayout = new QHBoxLayout();
|
||||||
|
QHBoxLayout * buttonHorizontalLayout = new QHBoxLayout();
|
||||||
|
|
||||||
|
QLabel * accountLabel = new QLabel("账号");
|
||||||
|
accountLine = new QLineEdit();
|
||||||
|
accountHorizontalLayout->addWidget(accountLabel);
|
||||||
|
accountHorizontalLayout->addWidget(accountLine);
|
||||||
|
|
||||||
|
QLabel * passwordLabel = new QLabel("密码");
|
||||||
|
passwordLine = new QLineEdit();
|
||||||
|
passwordLine->setEchoMode(QLineEdit::Password);
|
||||||
|
passwordHorizontalLayout->addWidget(passwordLabel);
|
||||||
|
passwordHorizontalLayout->addWidget(passwordLine);
|
||||||
|
|
||||||
|
loginButton = new QPushButton("登陆");
|
||||||
|
registerButton = new QPushButton("注册");
|
||||||
|
buttonHorizontalLayout->addWidget(loginButton);
|
||||||
|
buttonHorizontalLayout->addWidget(registerButton);
|
||||||
|
|
||||||
|
verticalLayout->addLayout(accountHorizontalLayout);
|
||||||
|
verticalLayout->addLayout(passwordHorizontalLayout);
|
||||||
|
verticalLayout->addLayout(buttonHorizontalLayout);
|
||||||
|
|
||||||
|
this->setLayout(verticalLayout);
|
||||||
|
}
|
||||||
|
|
||||||
|
LoginWidget::~LoginWidget()
|
||||||
|
{
|
||||||
|
delete ui;
|
||||||
|
}
|
||||||
|
|
||||||
|
QPushButton * LoginWidget::GetLoginButton()
|
||||||
|
{
|
||||||
|
return loginButton;
|
||||||
|
}
|
@ -0,0 +1,31 @@
|
|||||||
|
#ifndef LOGINWIDGET_H
|
||||||
|
#define LOGINWIDGET_H
|
||||||
|
|
||||||
|
#include <QWidget>
|
||||||
|
#include <QLayout>
|
||||||
|
#include <QLabel>
|
||||||
|
#include <QPushButton>
|
||||||
|
#include <QLineEdit>
|
||||||
|
|
||||||
|
namespace Ui {
|
||||||
|
class LoginWidget;
|
||||||
|
}
|
||||||
|
|
||||||
|
class LoginWidget : public QWidget
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit LoginWidget(QWidget *parent = nullptr);
|
||||||
|
~LoginWidget();
|
||||||
|
QPushButton * GetLoginButton();
|
||||||
|
|
||||||
|
private:
|
||||||
|
Ui::LoginWidget *ui;
|
||||||
|
QLineEdit * accountLine;
|
||||||
|
QLineEdit * passwordLine;
|
||||||
|
QPushButton * loginButton;
|
||||||
|
QPushButton * registerButton;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // LOGINWIDGET_H
|
@ -0,0 +1,21 @@
|
|||||||
|
<ui version="4.0">
|
||||||
|
<author/>
|
||||||
|
<comment/>
|
||||||
|
<exportmacro/>
|
||||||
|
<class>LoginWidget</class>
|
||||||
|
<widget class="QWidget" name="LoginWidget">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>400</width>
|
||||||
|
<height>300</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Form</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<pixmapfunction/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
@ -0,0 +1,11 @@
|
|||||||
|
#include "mainwindow.h"
|
||||||
|
|
||||||
|
#include <QApplication>
|
||||||
|
|
||||||
|
int main(int argc, char *argv[])
|
||||||
|
{
|
||||||
|
QApplication a(argc, argv);
|
||||||
|
MainWindow w;
|
||||||
|
w.show();
|
||||||
|
return a.exec();
|
||||||
|
}
|
@ -0,0 +1,270 @@
|
|||||||
|
#include "mainwindow.h"
|
||||||
|
#include "ui_mainwindow.h"
|
||||||
|
#include "recommandwidget.h"
|
||||||
|
#include "rankwidget.h"
|
||||||
|
#include "searchwidget.h"
|
||||||
|
#include "planwidget.h"
|
||||||
|
|
||||||
|
MainWindow::MainWindow(QWidget *parent)
|
||||||
|
: QMainWindow(parent)
|
||||||
|
, ui(new Ui::MainWindow)
|
||||||
|
{
|
||||||
|
ui->setupUi(this);
|
||||||
|
setWindowTitle("长沙游");
|
||||||
|
|
||||||
|
loginInterface = new LoginWidget(this);
|
||||||
|
centralWidget = GetCentralWidget();
|
||||||
|
|
||||||
|
setCentralWidget(loginInterface);
|
||||||
|
|
||||||
|
connect(loginInterface->GetLoginButton(), &QPushButton::clicked, this, &MainWindow::SwitchCentralInterface);
|
||||||
|
}
|
||||||
|
|
||||||
|
MainWindow::~MainWindow()
|
||||||
|
{
|
||||||
|
delete ui;
|
||||||
|
}
|
||||||
|
|
||||||
|
QWidget * MainWindow::GetCentralWidget()
|
||||||
|
{
|
||||||
|
centralWidget = new QWidget(this);
|
||||||
|
verticalLayout = new QVBoxLayout();
|
||||||
|
horizontalLayout = new QHBoxLayout();
|
||||||
|
|
||||||
|
/*在horizontalLayout添加首页按键*/
|
||||||
|
homeButton = new QPushButton("首页");
|
||||||
|
homeButton->setStyleSheet("QPushButton{background-color: rgb(20, 62, 134);color:rgb(255, 255, 255);}");
|
||||||
|
//设置按键样式:默认高亮
|
||||||
|
horizontalLayout->addWidget(homeButton);
|
||||||
|
|
||||||
|
/*在horizontalLayout添加个人主页按键*/
|
||||||
|
userButton = new QPushButton("个人主页");
|
||||||
|
userButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
//设置按键样式:光标悬停时高亮
|
||||||
|
horizontalLayout->addWidget(userButton);
|
||||||
|
|
||||||
|
/*在horizontalLayout添加搜索框和搜索按键*/
|
||||||
|
findLine = new QLineEdit();
|
||||||
|
horizontalLayout->addWidget(findLine);
|
||||||
|
|
||||||
|
findButton = new QPushButton("搜索");
|
||||||
|
findButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
horizontalLayout->addWidget(findButton);
|
||||||
|
|
||||||
|
homeSubWidget = GetHomeSubWidget(); //初始化首页
|
||||||
|
userSubWidget = GetUserSubWidget(); //初始化个人主页
|
||||||
|
|
||||||
|
verticalLayout->addLayout(horizontalLayout);
|
||||||
|
verticalLayout->addWidget(homeSubWidget);
|
||||||
|
verticalLayout->addWidget(userSubWidget);
|
||||||
|
userSubWidget->setVisible(false);
|
||||||
|
centralWidget->setLayout(verticalLayout);
|
||||||
|
|
||||||
|
inHomePage = true; //默认显示首页界面
|
||||||
|
|
||||||
|
connect(homeButton, &QPushButton::clicked, this, &MainWindow::SwitchHomeInterface);
|
||||||
|
connect(userButton, &QPushButton::clicked, this, &MainWindow::SwitchUserInterface);
|
||||||
|
|
||||||
|
return centralWidget;
|
||||||
|
}
|
||||||
|
|
||||||
|
QWidget * MainWindow::GetHomeSubWidget()
|
||||||
|
{
|
||||||
|
QWidget * subWidget = new QWidget(centralWidget);
|
||||||
|
QHBoxLayout * subHorizontalLayout = new QHBoxLayout();
|
||||||
|
homeSubVerticalLayout = new QVBoxLayout();
|
||||||
|
|
||||||
|
recommandButton = new QPushButton("猜你喜欢");
|
||||||
|
recommandButton->setStyleSheet("QPushButton{background-color: rgb(20, 62, 134);color:rgb(255, 255, 255);}");
|
||||||
|
subHorizontalLayout->addWidget(recommandButton);
|
||||||
|
|
||||||
|
rankButton = new QPushButton("热门榜单");
|
||||||
|
rankButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
subHorizontalLayout->addWidget(rankButton);
|
||||||
|
|
||||||
|
searchButton = new QPushButton("分类检索");
|
||||||
|
searchButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
subHorizontalLayout->addWidget(searchButton);
|
||||||
|
|
||||||
|
planButton = new QPushButton("方案规划");
|
||||||
|
planButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
subHorizontalLayout->addWidget(planButton);
|
||||||
|
|
||||||
|
recommandInterface = new RecommandWidget();
|
||||||
|
rankInterface = new RankWidget();
|
||||||
|
searchInterface = new SearchWidget();
|
||||||
|
planInterface = new PlanWidget();
|
||||||
|
|
||||||
|
homeSubVerticalLayout->addLayout(subHorizontalLayout);
|
||||||
|
homeSubVerticalLayout->addWidget(recommandInterface);
|
||||||
|
homeSubVerticalLayout->addWidget(rankInterface);
|
||||||
|
rankInterface->setVisible(false);
|
||||||
|
homeSubVerticalLayout->addWidget(searchInterface);
|
||||||
|
searchInterface->setVisible(false);
|
||||||
|
homeSubVerticalLayout->addWidget(planInterface);
|
||||||
|
planInterface->setVisible(false);
|
||||||
|
subWidget->setLayout(homeSubVerticalLayout);
|
||||||
|
|
||||||
|
homeIndex = 0; //首页显示猜你喜欢界面
|
||||||
|
|
||||||
|
connect(recommandButton, &QPushButton::clicked, this, &MainWindow::SwitchRecommandInterface);
|
||||||
|
connect(rankButton, &QPushButton::clicked, this, &MainWindow::SwitchRankInterface);
|
||||||
|
connect(searchButton, &QPushButton::clicked, this, &MainWindow::SwitchSearchInterface);
|
||||||
|
connect(planButton, &QPushButton::clicked, this, &MainWindow::SwitchPlanInterface);
|
||||||
|
|
||||||
|
return subWidget;
|
||||||
|
}
|
||||||
|
|
||||||
|
QWidget * MainWindow::GetUserSubWidget()
|
||||||
|
{
|
||||||
|
QWidget * subWidget = new QWidget(centralWidget);
|
||||||
|
QHBoxLayout * subHorizontalLayout = new QHBoxLayout();
|
||||||
|
userSubVerticalLayout = new QVBoxLayout();
|
||||||
|
|
||||||
|
informationButton = new QPushButton("个人资料");
|
||||||
|
informationButton->setStyleSheet("QPushButton{background-color: rgb(20, 62, 134);color:rgb(255, 255, 255);}");
|
||||||
|
subHorizontalLayout->addWidget(informationButton);
|
||||||
|
|
||||||
|
favoriteButton = new QPushButton("收藏夹");
|
||||||
|
favoriteButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
subHorizontalLayout->addWidget(favoriteButton);
|
||||||
|
|
||||||
|
informationInterface = new InformationWidget();
|
||||||
|
|
||||||
|
userSubVerticalLayout->addLayout(subHorizontalLayout);
|
||||||
|
userSubVerticalLayout->addWidget(informationInterface);
|
||||||
|
subWidget->setLayout(userSubVerticalLayout);
|
||||||
|
|
||||||
|
userIndex = 0; //个人主页显示个人资料界面
|
||||||
|
|
||||||
|
connect(informationButton, &QPushButton::clicked, this, &MainWindow::SwitchInformationInterface);
|
||||||
|
connect(favoriteButton, &QPushButton::clicked, this, &MainWindow::SwitchFavoriteInterface);
|
||||||
|
connect(informationInterface->GetLogoutButton(), &QPushButton::clicked, this, &MainWindow::SwitchLoginInterface);
|
||||||
|
|
||||||
|
return subWidget;
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::SwitchLoginInterface()
|
||||||
|
{
|
||||||
|
setCentralWidget(loginInterface);
|
||||||
|
centralWidget = GetCentralWidget();
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::SwitchCentralInterface()
|
||||||
|
{
|
||||||
|
setCentralWidget(centralWidget);
|
||||||
|
loginInterface = new LoginWidget();
|
||||||
|
connect(loginInterface->GetLoginButton(), &QPushButton::clicked, this, &MainWindow::SwitchCentralInterface);
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::SwitchHomeInterface()
|
||||||
|
{
|
||||||
|
if ( !inHomePage )
|
||||||
|
{
|
||||||
|
homeButton->setStyleSheet("QPushButton{background-color: rgb(20, 62, 134);color:rgb(255, 255, 255);}");
|
||||||
|
userButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
userSubWidget->setVisible(false);
|
||||||
|
homeSubWidget->setVisible(true);
|
||||||
|
}
|
||||||
|
inHomePage = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::SwitchUserInterface()
|
||||||
|
{
|
||||||
|
if ( inHomePage )
|
||||||
|
{
|
||||||
|
userButton->setStyleSheet("QPushButton{background-color: rgb(20, 62, 134);color:rgb(255, 255, 255);}");
|
||||||
|
homeButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
homeSubWidget->setVisible(false);
|
||||||
|
userSubWidget->setVisible(true);
|
||||||
|
}
|
||||||
|
inHomePage = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::SwitchRecommandInterface()
|
||||||
|
{
|
||||||
|
if ( homeIndex != 0 )
|
||||||
|
{
|
||||||
|
recommandButton->setStyleSheet("QPushButton{background-color: rgb(20, 62, 134);color:rgb(255, 255, 255);}");
|
||||||
|
rankButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}""QPushButton:checked{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
searchButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}""QPushButton:checked{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
planButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}""QPushButton:checked{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
|
||||||
|
rankInterface->setVisible(false);
|
||||||
|
searchInterface->setVisible(false);
|
||||||
|
planInterface->setVisible(false);
|
||||||
|
recommandInterface->setVisible(true);
|
||||||
|
}
|
||||||
|
homeIndex = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::SwitchRankInterface()
|
||||||
|
{
|
||||||
|
if ( homeIndex != 1 )
|
||||||
|
{
|
||||||
|
rankButton->setStyleSheet("QPushButton{background-color: rgb(20, 62, 134);color:rgb(255, 255, 255);}");
|
||||||
|
recommandButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}""QPushButton:checked{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
searchButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}""QPushButton:checked{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
planButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}""QPushButton:checked{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
|
||||||
|
rankInterface->setVisible(true);
|
||||||
|
searchInterface->setVisible(false);
|
||||||
|
planInterface->setVisible(false);
|
||||||
|
recommandInterface->setVisible(false);
|
||||||
|
}
|
||||||
|
homeIndex = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::SwitchSearchInterface()
|
||||||
|
{
|
||||||
|
if ( homeIndex != 2 )
|
||||||
|
{
|
||||||
|
searchButton->setStyleSheet("QPushButton{background-color: rgb(20, 62, 134);color:rgb(255, 255, 255);}");
|
||||||
|
rankButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}""QPushButton:checked{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
recommandButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}""QPushButton:checked{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
planButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}""QPushButton:checked{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
|
||||||
|
rankInterface->setVisible(false);
|
||||||
|
searchInterface->setVisible(true);
|
||||||
|
planInterface->setVisible(false);
|
||||||
|
recommandInterface->setVisible(false);
|
||||||
|
}
|
||||||
|
homeIndex = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::SwitchPlanInterface()
|
||||||
|
{
|
||||||
|
if ( homeIndex != 3 )
|
||||||
|
{
|
||||||
|
planButton->setStyleSheet("QPushButton{background-color: rgb(20, 62, 134);color:rgb(255, 255, 255);}");
|
||||||
|
rankButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}""QPushButton:checked{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
searchButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}""QPushButton:checked{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
recommandButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}""QPushButton:checked{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
|
||||||
|
rankInterface->setVisible(false);
|
||||||
|
searchInterface->setVisible(false);
|
||||||
|
planInterface->setVisible(true);
|
||||||
|
recommandInterface->setVisible(false);
|
||||||
|
}
|
||||||
|
homeIndex = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::SwitchInformationInterface()
|
||||||
|
{
|
||||||
|
if ( userIndex != 0 )
|
||||||
|
{
|
||||||
|
informationButton->setStyleSheet("QPushButton{background-color: rgb(20, 62, 134);color:rgb(255, 255, 255);}");
|
||||||
|
favoriteButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}""QPushButton:checked{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
}
|
||||||
|
userIndex = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::SwitchFavoriteInterface()
|
||||||
|
{
|
||||||
|
if ( userIndex != 1 )
|
||||||
|
{
|
||||||
|
favoriteButton->setStyleSheet("QPushButton{background-color: rgb(20, 62, 134);color:rgb(255, 255, 255);}");
|
||||||
|
informationButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}""QPushButton:checked{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
}
|
||||||
|
userIndex = 1;
|
||||||
|
}
|
@ -0,0 +1,82 @@
|
|||||||
|
#ifndef MAINWINDOW_H
|
||||||
|
#define MAINWINDOW_H
|
||||||
|
|
||||||
|
#include <QMainWindow>
|
||||||
|
#include <QPushButton>
|
||||||
|
#include <QLineEdit>
|
||||||
|
#include <QTableWidget>
|
||||||
|
#include <QLayout>
|
||||||
|
#include "loginwidget.h"
|
||||||
|
#include "recommandwidget.h"
|
||||||
|
#include "rankwidget.h"
|
||||||
|
#include "searchwidget.h"
|
||||||
|
#include "planwidget.h"
|
||||||
|
#include "informationwidget.h"
|
||||||
|
|
||||||
|
QT_BEGIN_NAMESPACE
|
||||||
|
namespace Ui { class MainWindow; }
|
||||||
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
|
class MainWindow : public QMainWindow
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
MainWindow(QWidget *parent = nullptr);
|
||||||
|
~MainWindow();
|
||||||
|
QWidget * GetCentralWidget();
|
||||||
|
QWidget * GetHomeSubWidget();
|
||||||
|
QWidget * GetUserSubWidget();
|
||||||
|
|
||||||
|
private:
|
||||||
|
Ui::MainWindow *ui;
|
||||||
|
|
||||||
|
bool inHomePage; //首页是否正在被显示
|
||||||
|
int homeIndex; //首页正在显示的窗口部件索引 0-猜你喜欢 1-热门榜单 2-分类检索 3-方案规划
|
||||||
|
int userIndex; //个人主页正在显示的窗口部件索引 0-个人资料 1-收藏夹
|
||||||
|
|
||||||
|
QWidget * centralWidget;
|
||||||
|
QVBoxLayout * verticalLayout;
|
||||||
|
QHBoxLayout * horizontalLayout;
|
||||||
|
|
||||||
|
LoginWidget * loginInterface;
|
||||||
|
|
||||||
|
QPushButton * homeButton;
|
||||||
|
QPushButton * userButton;
|
||||||
|
QLineEdit * findLine;
|
||||||
|
QPushButton * findButton;
|
||||||
|
|
||||||
|
QWidget * homeSubWidget;
|
||||||
|
QWidget * userSubWidget;
|
||||||
|
QVBoxLayout * homeSubVerticalLayout;
|
||||||
|
QVBoxLayout * userSubVerticalLayout;
|
||||||
|
|
||||||
|
QPushButton * recommandButton;
|
||||||
|
QPushButton * rankButton;
|
||||||
|
QPushButton * searchButton;
|
||||||
|
QPushButton * planButton;
|
||||||
|
QTableWidget * table;
|
||||||
|
|
||||||
|
RecommandWidget * recommandInterface;
|
||||||
|
RankWidget * rankInterface;
|
||||||
|
SearchWidget * searchInterface;
|
||||||
|
PlanWidget * planInterface;
|
||||||
|
|
||||||
|
QPushButton * informationButton;
|
||||||
|
QPushButton * favoriteButton;
|
||||||
|
|
||||||
|
InformationWidget * informationInterface;
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void SwitchLoginInterface(); //切换到登陆界面
|
||||||
|
void SwitchCentralInterface(); //切换到中心界面
|
||||||
|
void SwitchHomeInterface(); //切换到首页
|
||||||
|
void SwitchUserInterface(); //切换到个人主页
|
||||||
|
void SwitchRecommandInterface(); //将首页中子界面切换到猜你喜欢界面
|
||||||
|
void SwitchRankInterface(); //将首页中子界面切换到热门榜单界面
|
||||||
|
void SwitchSearchInterface(); //将首页中子界面切换到分类检索界面
|
||||||
|
void SwitchPlanInterface(); //将首页中子界面切换到方案规划界面
|
||||||
|
void SwitchInformationInterface(); //将个人主页中子界面切换到个人资料界面
|
||||||
|
void SwitchFavoriteInterface(); //将个人主页中子界面切换到收藏夹界面
|
||||||
|
};
|
||||||
|
#endif // MAINWINDOW_H
|
@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>MainWindow</class>
|
||||||
|
<widget class="QMainWindow" name="MainWindow">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>800</width>
|
||||||
|
<height>600</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>MainWindow</string>
|
||||||
|
</property>
|
||||||
|
<widget class="QWidget" name="centralwidget"/>
|
||||||
|
<widget class="QMenuBar" name="menubar"/>
|
||||||
|
<widget class="QStatusBar" name="statusbar"/>
|
||||||
|
</widget>
|
||||||
|
<resources/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
@ -0,0 +1,179 @@
|
|||||||
|
#include "planwidget.h"
|
||||||
|
#include "ui_planwidget.h"
|
||||||
|
|
||||||
|
PlanWidget::PlanWidget(QWidget *parent) :
|
||||||
|
QWidget(parent),
|
||||||
|
ui(new Ui::PlanWidget)
|
||||||
|
{
|
||||||
|
ui->setupUi(this);
|
||||||
|
|
||||||
|
verticalLayout = new QVBoxLayout();
|
||||||
|
horizontalLayout = new QHBoxLayout();
|
||||||
|
|
||||||
|
backButton = new QPushButton("返回");
|
||||||
|
nextButton = new QPushButton("确认");
|
||||||
|
favoriteButton = new QPushButton("收藏");
|
||||||
|
|
||||||
|
horizontalLayout->addWidget(backButton);
|
||||||
|
horizontalLayout->addStretch(5);
|
||||||
|
backButton->setVisible(false);
|
||||||
|
horizontalLayout->addWidget(favoriteButton);
|
||||||
|
favoriteButton->setVisible(false);
|
||||||
|
horizontalLayout->addWidget(nextButton);
|
||||||
|
nextButton->setVisible(false);
|
||||||
|
|
||||||
|
choiceInterface = GetChoiceWidget();
|
||||||
|
conditionInterface = new ConditionWidget();
|
||||||
|
preferenceInterface = new PreferenceWidget();
|
||||||
|
recommandRoutesInterface = new RecommandRoutesWidget();
|
||||||
|
showRouteInterface = new ShowRouteWidget();
|
||||||
|
|
||||||
|
/*默认显示功能选择界面*/
|
||||||
|
verticalLayout->addLayout(horizontalLayout);
|
||||||
|
verticalLayout->addWidget(choiceInterface);
|
||||||
|
verticalLayout->addWidget(conditionInterface);
|
||||||
|
conditionInterface->setVisible(false);
|
||||||
|
verticalLayout->addWidget(preferenceInterface);
|
||||||
|
preferenceInterface->setVisible(false);
|
||||||
|
verticalLayout->addWidget(recommandRoutesInterface);
|
||||||
|
recommandRoutesInterface->setVisible(false);
|
||||||
|
verticalLayout->addWidget(showRouteInterface);
|
||||||
|
showRouteInterface->setVisible(false);
|
||||||
|
interfaceIndex = 0;
|
||||||
|
|
||||||
|
this->setLayout(verticalLayout);
|
||||||
|
|
||||||
|
connect(recommandRouteButton, &QPushButton::clicked, this, &PlanWidget::SwitchConditionInterface);
|
||||||
|
}
|
||||||
|
|
||||||
|
PlanWidget::~PlanWidget()
|
||||||
|
{
|
||||||
|
delete ui;
|
||||||
|
}
|
||||||
|
|
||||||
|
QWidget * PlanWidget::GetChoiceWidget()
|
||||||
|
{
|
||||||
|
QWidget * widget = new QWidget(this);
|
||||||
|
QVBoxLayout * verticalLayout = new QVBoxLayout();
|
||||||
|
|
||||||
|
recommandRouteButton = new QPushButton("推荐方案");
|
||||||
|
customizeRouteButton = new QPushButton("定制方案");
|
||||||
|
verticalLayout->addWidget(recommandRouteButton);
|
||||||
|
verticalLayout->addWidget(customizeRouteButton);
|
||||||
|
|
||||||
|
widget->setLayout(verticalLayout);
|
||||||
|
|
||||||
|
return widget;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PlanWidget::SwitchChoiceInterface()
|
||||||
|
{
|
||||||
|
if ( interfaceIndex == 4 )
|
||||||
|
{
|
||||||
|
showRouteInterface->deleteLater();
|
||||||
|
showRouteInterface = new ShowRouteWidget();
|
||||||
|
verticalLayout->addWidget(showRouteInterface);
|
||||||
|
}
|
||||||
|
|
||||||
|
conditionInterface->deleteLater();
|
||||||
|
conditionInterface = new ConditionWidget();
|
||||||
|
verticalLayout->addWidget(conditionInterface);
|
||||||
|
|
||||||
|
conditionInterface->setVisible(false);
|
||||||
|
choiceInterface->setVisible(true);
|
||||||
|
backButton->setVisible(false);
|
||||||
|
favoriteButton->setVisible(false);
|
||||||
|
nextButton->setVisible(false);
|
||||||
|
|
||||||
|
interfaceIndex = 0;
|
||||||
|
|
||||||
|
disconnect(nextButton, nullptr, nullptr, nullptr);
|
||||||
|
connect(nextButton, &QPushButton::clicked, this, &PlanWidget::SwitchConditionInterface);
|
||||||
|
}
|
||||||
|
|
||||||
|
void PlanWidget::SwitchConditionInterface()
|
||||||
|
{
|
||||||
|
/*若后退至此界面则刷新下一个页面*/
|
||||||
|
if ( interfaceIndex == 2 )
|
||||||
|
{
|
||||||
|
preferenceInterface->deleteLater();
|
||||||
|
preferenceInterface = new PreferenceWidget();
|
||||||
|
verticalLayout->addWidget(preferenceInterface);
|
||||||
|
}
|
||||||
|
|
||||||
|
choiceInterface->setVisible(false);
|
||||||
|
conditionInterface->setVisible(true);
|
||||||
|
preferenceInterface->setVisible(false);
|
||||||
|
backButton->setVisible(true);
|
||||||
|
nextButton->setVisible(true);
|
||||||
|
|
||||||
|
interfaceIndex = 1;
|
||||||
|
|
||||||
|
disconnect(backButton, nullptr, nullptr, nullptr);
|
||||||
|
disconnect(nextButton, nullptr, nullptr, nullptr);
|
||||||
|
connect(backButton, &QPushButton::clicked, this, &PlanWidget::SwitchChoiceInterface);
|
||||||
|
connect(nextButton, &QPushButton::clicked, this, &PlanWidget::SwitchPreferenceInterface);
|
||||||
|
}
|
||||||
|
|
||||||
|
void PlanWidget::SwitchPreferenceInterface()
|
||||||
|
{
|
||||||
|
if ( interfaceIndex == 3 )
|
||||||
|
{
|
||||||
|
recommandRoutesInterface->deleteLater();
|
||||||
|
recommandRoutesInterface = new RecommandRoutesWidget();
|
||||||
|
verticalLayout->addWidget(recommandRoutesInterface);
|
||||||
|
}
|
||||||
|
|
||||||
|
conditionInterface->setVisible(false);
|
||||||
|
preferenceInterface->setVisible(true);
|
||||||
|
recommandRoutesInterface->setVisible(false);
|
||||||
|
backButton->setVisible(true);
|
||||||
|
nextButton->setVisible(true);
|
||||||
|
|
||||||
|
interfaceIndex = 2;
|
||||||
|
|
||||||
|
disconnect(backButton, nullptr, nullptr, nullptr);
|
||||||
|
disconnect(nextButton, nullptr, nullptr, nullptr);
|
||||||
|
connect(backButton, &QPushButton::clicked, this, &PlanWidget::SwitchConditionInterface);
|
||||||
|
connect(nextButton, &QPushButton::clicked, this, &PlanWidget::SwitchRecommandRoutesInterface);
|
||||||
|
}
|
||||||
|
|
||||||
|
void PlanWidget::SwitchRecommandRoutesInterface()
|
||||||
|
{
|
||||||
|
if ( interfaceIndex == 4 )
|
||||||
|
{
|
||||||
|
showRouteInterface->deleteLater();
|
||||||
|
showRouteInterface = new ShowRouteWidget();
|
||||||
|
verticalLayout->addWidget(showRouteInterface);
|
||||||
|
}
|
||||||
|
|
||||||
|
preferenceInterface->setVisible(false);
|
||||||
|
recommandRoutesInterface->setVisible(true);
|
||||||
|
showRouteInterface->setVisible(false);
|
||||||
|
backButton->setVisible(true);
|
||||||
|
favoriteButton->setVisible(false);
|
||||||
|
nextButton->setVisible(true);
|
||||||
|
|
||||||
|
interfaceIndex = 3;
|
||||||
|
|
||||||
|
disconnect(backButton, nullptr, nullptr, nullptr);
|
||||||
|
disconnect(nextButton, nullptr, nullptr, nullptr);
|
||||||
|
connect(backButton, &QPushButton::clicked, this, &PlanWidget::SwitchPreferenceInterface);
|
||||||
|
connect(nextButton, &QPushButton::clicked, this, &PlanWidget::SwitchShowRouteInterface);
|
||||||
|
}
|
||||||
|
|
||||||
|
void PlanWidget::SwitchShowRouteInterface()
|
||||||
|
{
|
||||||
|
recommandRoutesInterface->setVisible(false);
|
||||||
|
showRouteInterface->setVisible(true);
|
||||||
|
backButton->setVisible(true);
|
||||||
|
favoriteButton->setVisible(true);
|
||||||
|
nextButton->setVisible(true);
|
||||||
|
|
||||||
|
interfaceIndex = 4;
|
||||||
|
|
||||||
|
disconnect(backButton, nullptr, nullptr, nullptr);
|
||||||
|
disconnect(nextButton, nullptr, nullptr, nullptr);
|
||||||
|
connect(backButton, &QPushButton::clicked, this, &PlanWidget::SwitchRecommandRoutesInterface);
|
||||||
|
connect(nextButton, &QPushButton::clicked, this, &PlanWidget::SwitchChoiceInterface);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
#ifndef PLANWIDGET_H
|
||||||
|
#define PLANWIDGET_H
|
||||||
|
|
||||||
|
#include <QWidget>
|
||||||
|
#include <QLayout>
|
||||||
|
#include <QTableWidget>
|
||||||
|
#include <QLineEdit>
|
||||||
|
#include <QPushButton>
|
||||||
|
#include <QLabel>
|
||||||
|
#include <QValidator>
|
||||||
|
#include "conditionwidget.h"
|
||||||
|
#include "preferencewidget.h"
|
||||||
|
#include "recommandrouteswidget.h"
|
||||||
|
#include "showroutewidget.h"
|
||||||
|
|
||||||
|
namespace Ui {
|
||||||
|
class PlanWidget;
|
||||||
|
}
|
||||||
|
|
||||||
|
class PlanWidget : public QWidget
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit PlanWidget(QWidget *parent = nullptr);
|
||||||
|
~PlanWidget();
|
||||||
|
|
||||||
|
QWidget * GetChoiceWidget();
|
||||||
|
|
||||||
|
private:
|
||||||
|
Ui::PlanWidget *ui;
|
||||||
|
int interfaceIndex; //界面索引 0-选择界面 1-条件界面 2-偏好界面 3-推荐界面 4-显示界面
|
||||||
|
QVBoxLayout * verticalLayout;
|
||||||
|
QHBoxLayout * horizontalLayout;
|
||||||
|
|
||||||
|
QPushButton * backButton;
|
||||||
|
QPushButton * nextButton;
|
||||||
|
QPushButton * favoriteButton;
|
||||||
|
|
||||||
|
QWidget * choiceInterface;
|
||||||
|
|
||||||
|
QPushButton * recommandRouteButton;
|
||||||
|
QPushButton * customizeRouteButton;
|
||||||
|
|
||||||
|
ConditionWidget * conditionInterface;
|
||||||
|
|
||||||
|
PreferenceWidget * preferenceInterface;
|
||||||
|
|
||||||
|
RecommandRoutesWidget * recommandRoutesInterface;
|
||||||
|
|
||||||
|
ShowRouteWidget * showRouteInterface;
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void SwitchChoiceInterface();
|
||||||
|
void SwitchConditionInterface();
|
||||||
|
void SwitchPreferenceInterface();
|
||||||
|
void SwitchRecommandRoutesInterface();
|
||||||
|
void SwitchShowRouteInterface();
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // PLANWIDGET_H
|
@ -0,0 +1,21 @@
|
|||||||
|
<ui version="4.0">
|
||||||
|
<author/>
|
||||||
|
<comment/>
|
||||||
|
<exportmacro/>
|
||||||
|
<class>PlanWidget</class>
|
||||||
|
<widget class="QWidget" name="PlanWidget">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>400</width>
|
||||||
|
<height>300</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Form</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<pixmapfunction/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
@ -0,0 +1,132 @@
|
|||||||
|
#include "preferencewidget.h"
|
||||||
|
#include "ui_preferencewidget.h"
|
||||||
|
|
||||||
|
PreferenceWidget::PreferenceWidget(QWidget *parent) :
|
||||||
|
QWidget(parent),
|
||||||
|
ui(new Ui::PreferenceWidget)
|
||||||
|
{
|
||||||
|
ui->setupUi(this);
|
||||||
|
|
||||||
|
gridLayout = new QGridLayout();
|
||||||
|
QVBoxLayout * landscapeVerticalLayout = new QVBoxLayout();
|
||||||
|
QVBoxLayout * customVerticalLayout = new QVBoxLayout();
|
||||||
|
QVBoxLayout * foodVerticalLayout = new QVBoxLayout();
|
||||||
|
QVBoxLayout * nightVerticalLayout = new QVBoxLayout();
|
||||||
|
QVBoxLayout * animeVerticalLayout = new QVBoxLayout();
|
||||||
|
QVBoxLayout * loveVerticalLayout = new QVBoxLayout();
|
||||||
|
|
||||||
|
landscapeButton = new QPushButton("游风景名胜");
|
||||||
|
customButton = new QPushButton("赏风土人情");
|
||||||
|
foodButton = new QPushButton("品当地美食");
|
||||||
|
nightButton = new QPushButton("星满夜来香");
|
||||||
|
animeButton = new QPushButton("打破次元壁");
|
||||||
|
loveButton = new QPushButton("感情升温中");
|
||||||
|
|
||||||
|
landscapeLine = new QTextEdit("偏重自然风光");
|
||||||
|
customLine = new QTextEdit("偏重人文风俗");
|
||||||
|
foodLine = new QTextEdit("偏重特色美食");
|
||||||
|
nightLine = new QTextEdit("偏重夜生活");
|
||||||
|
animeLine = new QTextEdit("偏重二次元");
|
||||||
|
loveLine = new QTextEdit("偏重恋人出游");
|
||||||
|
|
||||||
|
landscapeLine->setReadOnly(true);
|
||||||
|
customLine->setReadOnly(true);
|
||||||
|
foodLine->setReadOnly(true);
|
||||||
|
nightLine->setReadOnly(true);
|
||||||
|
animeLine->setReadOnly(true);
|
||||||
|
loveLine->setReadOnly(true);
|
||||||
|
|
||||||
|
landscapeVerticalLayout->addWidget(landscapeButton);
|
||||||
|
landscapeVerticalLayout->addWidget(landscapeLine);
|
||||||
|
customVerticalLayout->addWidget(customButton);
|
||||||
|
customVerticalLayout->addWidget(customLine);
|
||||||
|
foodVerticalLayout->addWidget(foodButton);
|
||||||
|
foodVerticalLayout->addWidget(foodLine);
|
||||||
|
nightVerticalLayout->addWidget(nightButton);
|
||||||
|
nightVerticalLayout->addWidget(nightLine);
|
||||||
|
animeVerticalLayout->addWidget(animeButton);
|
||||||
|
animeVerticalLayout->addWidget(animeLine);
|
||||||
|
loveVerticalLayout->addWidget(loveButton);
|
||||||
|
loveVerticalLayout->addWidget(loveLine);
|
||||||
|
|
||||||
|
gridLayout->addLayout(landscapeVerticalLayout, 0, 0);
|
||||||
|
gridLayout->addLayout(customVerticalLayout, 0, 1);
|
||||||
|
gridLayout->addLayout(foodVerticalLayout, 0, 2);
|
||||||
|
gridLayout->addLayout(nightVerticalLayout, 1, 0);
|
||||||
|
gridLayout->addLayout(animeVerticalLayout, 1, 1);
|
||||||
|
gridLayout->addLayout(loveVerticalLayout, 1, 2);
|
||||||
|
|
||||||
|
setLayout(gridLayout);
|
||||||
|
|
||||||
|
connect(landscapeButton, &QPushButton::clicked, this, &PreferenceWidget::ChooseLandscape);
|
||||||
|
connect(customButton, &QPushButton::clicked, this, &PreferenceWidget::ChooseCustom);
|
||||||
|
connect(foodButton, &QPushButton::clicked, this, &PreferenceWidget::ChooseFood);
|
||||||
|
connect(nightButton, &QPushButton::clicked, this, &PreferenceWidget::ChooseNight);
|
||||||
|
connect(animeButton, &QPushButton::clicked, this, &PreferenceWidget::ChooseAnime);
|
||||||
|
connect(loveButton, &QPushButton::clicked, this, &PreferenceWidget::ChooseLove);
|
||||||
|
}
|
||||||
|
|
||||||
|
PreferenceWidget::~PreferenceWidget()
|
||||||
|
{
|
||||||
|
delete ui;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PreferenceWidget::ChooseLandscape()
|
||||||
|
{
|
||||||
|
landscapeButton->setStyleSheet("QPushButton{background-color: rgb(20, 62, 134);color:rgb(255, 255, 255);}");
|
||||||
|
customButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
foodButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
nightButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
animeButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
loveButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
}
|
||||||
|
|
||||||
|
void PreferenceWidget::ChooseCustom()
|
||||||
|
{
|
||||||
|
customButton->setStyleSheet("QPushButton{background-color: rgb(20, 62, 134);color:rgb(255, 255, 255);}");
|
||||||
|
landscapeButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
foodButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
nightButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
animeButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
loveButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
}
|
||||||
|
|
||||||
|
void PreferenceWidget::ChooseFood()
|
||||||
|
{
|
||||||
|
foodButton->setStyleSheet("QPushButton{background-color: rgb(20, 62, 134);color:rgb(255, 255, 255);}");
|
||||||
|
customButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
landscapeButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
nightButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
animeButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
loveButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
}
|
||||||
|
|
||||||
|
void PreferenceWidget::ChooseNight()
|
||||||
|
{
|
||||||
|
nightButton->setStyleSheet("QPushButton{background-color: rgb(20, 62, 134);color:rgb(255, 255, 255);}");
|
||||||
|
customButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
foodButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
landscapeButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
animeButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
loveButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
}
|
||||||
|
|
||||||
|
void PreferenceWidget::ChooseAnime()
|
||||||
|
{
|
||||||
|
animeButton->setStyleSheet("QPushButton{background-color: rgb(20, 62, 134);color:rgb(255, 255, 255);}");
|
||||||
|
customButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
foodButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
nightButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
landscapeButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
loveButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
}
|
||||||
|
|
||||||
|
void PreferenceWidget::ChooseLove()
|
||||||
|
{
|
||||||
|
loveButton->setStyleSheet("QPushButton{background-color: rgb(20, 62, 134);color:rgb(255, 255, 255);}");
|
||||||
|
customButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
foodButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
nightButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
animeButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
landscapeButton->setStyleSheet("QPushButton{color:rgb(255, 255, 255);}""QPushButton:hover{background-color: rgb(20, 62, 134);border:none;color:rgb(255, 255, 255);}");
|
||||||
|
}
|
@ -0,0 +1,49 @@
|
|||||||
|
#ifndef PREFERENCEWIDGET_H
|
||||||
|
#define PREFERENCEWIDGET_H
|
||||||
|
|
||||||
|
#include <QWidget>
|
||||||
|
#include <QLayout>
|
||||||
|
#include <QPushButton>
|
||||||
|
#include <QLineEdit>
|
||||||
|
#include <QTextEdit>
|
||||||
|
|
||||||
|
namespace Ui {
|
||||||
|
class PreferenceWidget;
|
||||||
|
}
|
||||||
|
|
||||||
|
class PreferenceWidget : public QWidget
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit PreferenceWidget(QWidget *parent = nullptr);
|
||||||
|
~PreferenceWidget();
|
||||||
|
|
||||||
|
private:
|
||||||
|
Ui::PreferenceWidget *ui;
|
||||||
|
QGridLayout * gridLayout;
|
||||||
|
|
||||||
|
QPushButton * landscapeButton;
|
||||||
|
QPushButton * customButton;
|
||||||
|
QPushButton * foodButton;
|
||||||
|
QPushButton * nightButton;
|
||||||
|
QPushButton * animeButton;
|
||||||
|
QPushButton * loveButton;
|
||||||
|
|
||||||
|
QTextEdit * landscapeLine;
|
||||||
|
QTextEdit * customLine;
|
||||||
|
QTextEdit * foodLine;
|
||||||
|
QTextEdit * nightLine;
|
||||||
|
QTextEdit * animeLine;
|
||||||
|
QTextEdit * loveLine;
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void ChooseLandscape();
|
||||||
|
void ChooseCustom();
|
||||||
|
void ChooseFood();
|
||||||
|
void ChooseNight();
|
||||||
|
void ChooseAnime();
|
||||||
|
void ChooseLove();
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // PREFERENCEWIDGET_H
|
@ -0,0 +1,21 @@
|
|||||||
|
<ui version="4.0">
|
||||||
|
<author/>
|
||||||
|
<comment/>
|
||||||
|
<exportmacro/>
|
||||||
|
<class>PreferenceWidget</class>
|
||||||
|
<widget class="QWidget" name="PreferenceWidget">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>400</width>
|
||||||
|
<height>300</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Form</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<pixmapfunction/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
@ -0,0 +1,20 @@
|
|||||||
|
#include "rankwidget.h"
|
||||||
|
#include "ui_rankwidget.h"
|
||||||
|
|
||||||
|
RankWidget::RankWidget(QWidget *parent) :
|
||||||
|
QWidget(parent),
|
||||||
|
ui(new Ui::RankWidget)
|
||||||
|
{
|
||||||
|
ui->setupUi(this);
|
||||||
|
|
||||||
|
verticalLayout = new QVBoxLayout();
|
||||||
|
|
||||||
|
QTableWidget * table = new QTableWidget();
|
||||||
|
verticalLayout->addWidget(table);
|
||||||
|
this->setLayout(verticalLayout);
|
||||||
|
}
|
||||||
|
|
||||||
|
RankWidget::~RankWidget()
|
||||||
|
{
|
||||||
|
delete ui;
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
#ifndef RANKWIDGET_H
|
||||||
|
#define RANKWIDGET_H
|
||||||
|
|
||||||
|
#include <QWidget>
|
||||||
|
#include <QLayout>
|
||||||
|
#include <QTableWidget>
|
||||||
|
|
||||||
|
namespace Ui {
|
||||||
|
class RankWidget;
|
||||||
|
}
|
||||||
|
|
||||||
|
class RankWidget : public QWidget
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit RankWidget(QWidget *parent = nullptr);
|
||||||
|
~RankWidget();
|
||||||
|
|
||||||
|
private:
|
||||||
|
Ui::RankWidget *ui;
|
||||||
|
QVBoxLayout * verticalLayout;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // RANKWIDGET_H
|
@ -0,0 +1,21 @@
|
|||||||
|
<ui version="4.0">
|
||||||
|
<author/>
|
||||||
|
<comment/>
|
||||||
|
<exportmacro/>
|
||||||
|
<class>RankWidget</class>
|
||||||
|
<widget class="QWidget" name="RankWidget">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>400</width>
|
||||||
|
<height>300</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Form</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<pixmapfunction/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
@ -0,0 +1,14 @@
|
|||||||
|
#include "recommandrouteswidget.h"
|
||||||
|
#include "ui_recommandrouteswidget.h"
|
||||||
|
|
||||||
|
RecommandRoutesWidget::RecommandRoutesWidget(QWidget *parent) :
|
||||||
|
QWidget(parent),
|
||||||
|
ui(new Ui::RecommandRoutesWidget)
|
||||||
|
{
|
||||||
|
ui->setupUi(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
RecommandRoutesWidget::~RecommandRoutesWidget()
|
||||||
|
{
|
||||||
|
delete ui;
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
#ifndef RECOMMANDROUTESWIDGET_H
|
||||||
|
#define RECOMMANDROUTESWIDGET_H
|
||||||
|
|
||||||
|
#include <QWidget>
|
||||||
|
#include <QLayout>
|
||||||
|
|
||||||
|
namespace Ui {
|
||||||
|
class RecommandRoutesWidget;
|
||||||
|
}
|
||||||
|
|
||||||
|
class RecommandRoutesWidget : public QWidget
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit RecommandRoutesWidget(QWidget *parent = nullptr);
|
||||||
|
~RecommandRoutesWidget();
|
||||||
|
|
||||||
|
private:
|
||||||
|
Ui::RecommandRoutesWidget *ui;
|
||||||
|
QVBoxLayout * verticalLayout;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // RECOMMANDROUTESWIDGET_H
|
@ -0,0 +1,21 @@
|
|||||||
|
<ui version="4.0">
|
||||||
|
<author/>
|
||||||
|
<comment/>
|
||||||
|
<exportmacro/>
|
||||||
|
<class>RecommandRoutesWidget</class>
|
||||||
|
<widget class="QWidget" name="RecommandRoutesWidget">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>400</width>
|
||||||
|
<height>300</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Form</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<pixmapfunction/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
@ -0,0 +1,14 @@
|
|||||||
|
#include "recommandwidget.h"
|
||||||
|
#include "ui_recommandwidget.h"
|
||||||
|
|
||||||
|
RecommandWidget::RecommandWidget(QWidget *parent) :
|
||||||
|
QWidget(parent),
|
||||||
|
ui(new Ui::RecommandWidget)
|
||||||
|
{
|
||||||
|
ui->setupUi(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
RecommandWidget::~RecommandWidget()
|
||||||
|
{
|
||||||
|
delete ui;
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
#ifndef RECOMMANDWIDGET_H
|
||||||
|
#define RECOMMANDWIDGET_H
|
||||||
|
|
||||||
|
#include <QWidget>
|
||||||
|
#include <QLayout>
|
||||||
|
#include <QTableWidget>
|
||||||
|
|
||||||
|
namespace Ui {
|
||||||
|
class RecommandWidget;
|
||||||
|
}
|
||||||
|
|
||||||
|
class RecommandWidget : public QWidget
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit RecommandWidget(QWidget *parent = nullptr);
|
||||||
|
~RecommandWidget();
|
||||||
|
|
||||||
|
private:
|
||||||
|
Ui::RecommandWidget *ui;
|
||||||
|
QVBoxLayout * verticalLayout;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // RECOMMANDWIDGET_H
|
@ -0,0 +1,21 @@
|
|||||||
|
<ui version="4.0">
|
||||||
|
<author/>
|
||||||
|
<comment/>
|
||||||
|
<exportmacro/>
|
||||||
|
<class>RecommandWidget</class>
|
||||||
|
<widget class="QWidget" name="RecommandWidget">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>400</width>
|
||||||
|
<height>300</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Form</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<pixmapfunction/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
@ -0,0 +1,20 @@
|
|||||||
|
#include "searchwidget.h"
|
||||||
|
#include "ui_searchwidget.h"
|
||||||
|
|
||||||
|
SearchWidget::SearchWidget(QWidget *parent) :
|
||||||
|
QWidget(parent),
|
||||||
|
ui(new Ui::SearchWidget)
|
||||||
|
{
|
||||||
|
ui->setupUi(this);
|
||||||
|
|
||||||
|
verticalLayout = new QVBoxLayout();
|
||||||
|
|
||||||
|
QTableWidget * table = new QTableWidget();
|
||||||
|
verticalLayout->addWidget(table);
|
||||||
|
this->setLayout(verticalLayout);
|
||||||
|
}
|
||||||
|
|
||||||
|
SearchWidget::~SearchWidget()
|
||||||
|
{
|
||||||
|
delete ui;
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
#ifndef SEARCHWIDGET_H
|
||||||
|
#define SEARCHWIDGET_H
|
||||||
|
|
||||||
|
#include <QWidget>
|
||||||
|
#include <QLayout>
|
||||||
|
#include <QTableWidget>
|
||||||
|
|
||||||
|
namespace Ui {
|
||||||
|
class SearchWidget;
|
||||||
|
}
|
||||||
|
|
||||||
|
class SearchWidget : public QWidget
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit SearchWidget(QWidget *parent = nullptr);
|
||||||
|
~SearchWidget();
|
||||||
|
|
||||||
|
private:
|
||||||
|
Ui::SearchWidget *ui;
|
||||||
|
QVBoxLayout * verticalLayout;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // SEARCHWIDGET_H
|
@ -0,0 +1,21 @@
|
|||||||
|
<ui version="4.0">
|
||||||
|
<author/>
|
||||||
|
<comment/>
|
||||||
|
<exportmacro/>
|
||||||
|
<class>SearchWidget</class>
|
||||||
|
<widget class="QWidget" name="SearchWidget">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>400</width>
|
||||||
|
<height>300</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Form</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<pixmapfunction/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
@ -0,0 +1,14 @@
|
|||||||
|
#include "showroutewidget.h"
|
||||||
|
#include "ui_showroutewidget.h"
|
||||||
|
|
||||||
|
ShowRouteWidget::ShowRouteWidget(QWidget *parent) :
|
||||||
|
QWidget(parent),
|
||||||
|
ui(new Ui::ShowRouteWidget)
|
||||||
|
{
|
||||||
|
ui->setupUi(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
ShowRouteWidget::~ShowRouteWidget()
|
||||||
|
{
|
||||||
|
delete ui;
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
#ifndef SHOWROUTEWIDGET_H
|
||||||
|
#define SHOWROUTEWIDGET_H
|
||||||
|
|
||||||
|
#include <QWidget>
|
||||||
|
|
||||||
|
namespace Ui {
|
||||||
|
class ShowRouteWidget;
|
||||||
|
}
|
||||||
|
|
||||||
|
class ShowRouteWidget : public QWidget
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit ShowRouteWidget(QWidget *parent = nullptr);
|
||||||
|
~ShowRouteWidget();
|
||||||
|
|
||||||
|
private:
|
||||||
|
Ui::ShowRouteWidget *ui;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // SHOWROUTEWIDGET_H
|
@ -0,0 +1,21 @@
|
|||||||
|
<ui version="4.0">
|
||||||
|
<author/>
|
||||||
|
<comment/>
|
||||||
|
<exportmacro/>
|
||||||
|
<class>ShowRouteWidget</class>
|
||||||
|
<widget class="QWidget" name="ShowRouteWidget">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>400</width>
|
||||||
|
<height>300</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Form</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<pixmapfunction/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
Loading…
Reference in new issue