added mandelbrot test

This commit is contained in:
2022-06-27 21:38:51 +02:00
commit c0fa4efcd5
567 changed files with 52357 additions and 0 deletions
+78
View File
@@ -0,0 +1,78 @@
cmake_minimum_required(VERSION 3.5)
project(QTierazon VERSION 0.1 LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets)
set(PROJECT_SOURCES
main.cpp
mainfrm.cpp
mainfrm.h
DarkStyle.cpp
DarkStyle.h
framelesswindow.cpp
framelesswindow.h
windowdragger.cpp
windowdragger.h
framelesswindow.ui
mainfrm.ui
)
#add .qrc resource file
qt6_add_resources(PROJECT_SOURCES resources.qrc)
if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
qt_add_executable(QTierazon
MANUAL_FINALIZATION
${PROJECT_SOURCES}
)
# Define target properties for Android with Qt 6 as:
# set_property(TARGET QTierazon APPEND PROPERTY QT_ANDROID_PACKAGE_SOURCE_DIR
# ${CMAKE_CURRENT_SOURCE_DIR}/android)
# For more information, see https://doc.qt.io/qt-6/qt-add-executable.html#target-creation
else()
if(ANDROID)
add_library(QTierazon SHARED
${PROJECT_SOURCES}
)
# Define properties for Android with Qt 5 after find_package() calls as:
# set(ANDROID_PACKAGE_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/android")
else()
add_executable(QTierazon
${PROJECT_SOURCES}
)
endif()
endif()
target_link_libraries(QTierazon PRIVATE Qt${QT_VERSION_MAJOR}::Widgets)
set_target_properties(QTierazon PROPERTIES
MACOSX_BUNDLE_GUI_IDENTIFIER my.example.com
MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
MACOSX_BUNDLE TRUE
WIN32_EXECUTABLE TRUE
)
if(QT_VERSION_MAJOR EQUAL 6)
qt_finalize_executable(QTierazon)
endif()
# add cpp source files to list
#file(GLOB SRC . *.cpp)
#add_executable (your_exe_name ${SRC})
#add .qrc resource file
#set(RSOURCES main.cpp)
#qt6_add_resources(RSOURCES resources.qrc)
#add_executable(QTierazon ${RSOURCES})
+324
View File
@@ -0,0 +1,324 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 7.0.2, 2022-06-25T01:28:36. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
<value type="QByteArray">{bd04c4dc-644d-422c-b78e-bc1f455cedbd}</value>
</data>
<data>
<variable>ProjectExplorer.Project.ActiveTarget</variable>
<value type="qlonglong">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="qlonglong" 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.PreferSingleLineComments">false</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="bool" key="EditorConfiguration.UseIndenter">false</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="QString" key="EditorConfiguration.ignoreFileTypes">*.md, *.MD, Makefile</value>
<value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
<value type="bool" key="EditorConfiguration.skipTrailingWhitespace">true</value>
</valuemap>
</data>
<data>
<variable>ProjectExplorer.Project.PluginSettings</variable>
<valuemap type="QVariantMap">
<valuemap type="QVariantMap" key="AutoTest.ActiveFrameworks">
<value type="bool" key="AutoTest.Framework.Boost">true</value>
<value type="bool" key="AutoTest.Framework.CTest">false</value>
<value type="bool" key="AutoTest.Framework.Catch">true</value>
<value type="bool" key="AutoTest.Framework.GTest">true</value>
<value type="bool" key="AutoTest.Framework.QtQuickTest">true</value>
<value type="bool" key="AutoTest.Framework.QtTest">true</value>
</valuemap>
<valuemap type="QVariantMap" key="AutoTest.CheckStates"/>
<value type="int" key="AutoTest.RunAfterBuild">0</value>
<value type="bool" key="AutoTest.UseGlobal">true</value>
<valuelist type="QVariantList" key="ClangCodeModel.CustomCommandLineKey">
<value type="QString">-fno-delayed-template-parsing</value>
</valuelist>
<value type="bool" key="ClangCodeModel.UseGlobalConfig">true</value>
<value type="QString" key="ClangCodeModel.WarningConfigId">Builtin.BuildSystem</value>
<valuemap type="QVariantMap" key="ClangTools">
<value type="bool" key="ClangTools.AnalyzeOpenFiles">true</value>
<value type="bool" key="ClangTools.BuildBeforeAnalysis">true</value>
<value type="QString" key="ClangTools.DiagnosticConfig">Builtin.DefaultTidyAndClazy</value>
<value type="int" key="ClangTools.ParallelJobs">8</value>
<valuelist type="QVariantList" key="ClangTools.SelectedDirs"/>
<valuelist type="QVariantList" key="ClangTools.SelectedFiles"/>
<valuelist type="QVariantList" key="ClangTools.SuppressedDiagnostics"/>
<value type="bool" key="ClangTools.UseGlobalSettings">true</value>
</valuemap>
</valuemap>
</data>
<data>
<variable>ProjectExplorer.Project.Target.0</variable>
<valuemap type="QVariantMap">
<value type="QString" key="DeviceType">Desktop</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 6.3.1 MinGW 64-bit</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 6.3.1 MinGW 64-bit</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt6.631.win64_mingw_kit</value>
<value type="qlonglong" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
<value type="qlonglong" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
<value type="qlonglong" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
<value type="QString" key="CMake.Build.Type">Debug</value>
<value type="QString" key="CMake.Initial.Parameters">-DCMAKE_GENERATOR:STRING=Ninja
-DCMAKE_BUILD_TYPE:STRING=Debug
-DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=%{IDE:ResourcePath}/package-manager/auto-setup.cmake
-DQT_QMAKE_EXECUTABLE:FILEPATH=%{Qt:qmakeExecutable}
-DCMAKE_PREFIX_PATH:PATH=%{Qt:QT_INSTALL_PREFIX}
-DCMAKE_C_COMPILER:FILEPATH=%{Compiler:Executable:C}
-DCMAKE_CXX_COMPILER:FILEPATH=%{Compiler:Executable:Cxx}</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">C:\Users\bjarn\visualStudioCode-workspace\QTierazon\build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<valuelist type="QVariantList" key="CMakeProjectManager.MakeStep.BuildTargets">
<value type="QString">all</value>
</valuelist>
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Erstellen</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">CMakeProjectManager.MakeStep</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Erstellen</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Erstellen</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">
<valuelist type="QVariantList" key="CMakeProjectManager.MakeStep.BuildTargets">
<value type="QString">clean</value>
</valuelist>
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Erstellen</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">CMakeProjectManager.MakeStep</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Bereinigen</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Bereinigen</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.CustomParsers"/>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">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">CMakeProjectManager.CMakeBuildConfiguration</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
<value type="QString" key="CMake.Build.Type">Release</value>
<value type="QString" key="CMake.Initial.Parameters">-DCMAKE_GENERATOR:STRING=Ninja
-DCMAKE_BUILD_TYPE:STRING=Release
-DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=%{IDE:ResourcePath}/package-manager/auto-setup.cmake
-DQT_QMAKE_EXECUTABLE:FILEPATH=%{Qt:qmakeExecutable}
-DCMAKE_PREFIX_PATH:PATH=%{Qt:QT_INSTALL_PREFIX}
-DCMAKE_C_COMPILER:FILEPATH=%{Compiler:Executable:C}
-DCMAKE_CXX_COMPILER:FILEPATH=%{Compiler:Executable:Cxx}</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">C:\Users\bjarn\visualStudioCode-workspace\QTierazon\build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Release</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<valuelist type="QVariantList" key="CMakeProjectManager.MakeStep.BuildTargets">
<value type="QString">all</value>
</valuelist>
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">CMakeProjectManager.MakeStep</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Erstellen</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Erstellen</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">
<valuelist type="QVariantList" key="CMakeProjectManager.MakeStep.BuildTargets">
<value type="QString">clean</value>
</valuelist>
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">CMakeProjectManager.MakeStep</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Bereinigen</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Bereinigen</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.CustomParsers"/>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">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">CMakeProjectManager.CMakeBuildConfiguration</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2">
<value type="QString" key="CMake.Build.Type">RelWithDebInfo</value>
<value type="QString" key="CMake.Initial.Parameters">-DCMAKE_GENERATOR:STRING=Ninja
-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo
-DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=%{IDE:ResourcePath}/package-manager/auto-setup.cmake
-DQT_QMAKE_EXECUTABLE:FILEPATH=%{Qt:qmakeExecutable}
-DCMAKE_PREFIX_PATH:PATH=%{Qt:QT_INSTALL_PREFIX}
-DCMAKE_C_COMPILER:FILEPATH=%{Compiler:Executable:C}
-DCMAKE_CXX_COMPILER:FILEPATH=%{Compiler:Executable:Cxx}</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">C:\Users\bjarn\visualStudioCode-workspace\QTierazon\build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-RelWithDebInfo</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<valuelist type="QVariantList" key="CMakeProjectManager.MakeStep.BuildTargets">
<value type="QString">all</value>
</valuelist>
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">CMakeProjectManager.MakeStep</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Erstellen</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Erstellen</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">
<valuelist type="QVariantList" key="CMakeProjectManager.MakeStep.BuildTargets">
<value type="QString">clean</value>
</valuelist>
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">CMakeProjectManager.MakeStep</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Bereinigen</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Bereinigen</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.CustomParsers"/>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Release with Debug Information</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">CMakeProjectManager.CMakeBuildConfiguration</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.3">
<value type="QString" key="CMake.Build.Type">MinSizeRel</value>
<value type="QString" key="CMake.Initial.Parameters">-DCMAKE_GENERATOR:STRING=Ninja
-DCMAKE_BUILD_TYPE:STRING=MinSizeRel
-DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=%{IDE:ResourcePath}/package-manager/auto-setup.cmake
-DQT_QMAKE_EXECUTABLE:FILEPATH=%{Qt:qmakeExecutable}
-DCMAKE_PREFIX_PATH:PATH=%{Qt:QT_INSTALL_PREFIX}
-DCMAKE_C_COMPILER:FILEPATH=%{Compiler:Executable:C}
-DCMAKE_CXX_COMPILER:FILEPATH=%{Compiler:Executable:Cxx}</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">C:\Users\bjarn\visualStudioCode-workspace\QTierazon\build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-MinSizeRel</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<valuelist type="QVariantList" key="CMakeProjectManager.MakeStep.BuildTargets">
<value type="QString">all</value>
</valuelist>
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">CMakeProjectManager.MakeStep</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Erstellen</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Erstellen</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">
<valuelist type="QVariantList" key="CMakeProjectManager.MakeStep.BuildTargets">
<value type="QString">clean</value>
</valuelist>
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">CMakeProjectManager.MakeStep</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Bereinigen</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Bereinigen</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.CustomParsers"/>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Minimum Size Release</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">CMakeProjectManager.CMakeBuildConfiguration</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.Target.BuildConfigurationCount">4</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deployment</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Deployment</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
<valuemap type="QVariantMap" key="ProjectExplorer.DeployConfiguration.CustomData"/>
<value type="bool" key="ProjectExplorer.DeployConfiguration.CustomDataEnabled">false</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
<value type="bool" key="Analyzer.Perf.Settings.UseGlobalSettings">true</value>
<value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value>
<value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value>
<valuelist type="QVariantList" key="CustomOutputParsers"/>
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">QTierazon</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">CMakeProjectManager.CMakeRunConfiguration.QTierazon</value>
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">QTierazon</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.UseQmlDebugger">false</value>
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
<value type="QString" key="RunConfiguration.WorkingDirectory.default">C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
</valuemap>
</data>
<data>
<variable>ProjectExplorer.Project.TargetCount</variable>
<value type="qlonglong">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>
+60
View File
@@ -0,0 +1,60 @@
#include "DarkStyle.h"
DarkStyle::DarkStyle() : DarkStyle(styleBase()) {}
DarkStyle::DarkStyle(QStyle *style) : QProxyStyle(style) {}
QStyle *DarkStyle::styleBase(QStyle *style) const {
static QStyle *base =
!style ? QStyleFactory::create(QStringLiteral("Fusion")) : style;
return base;
}
QStyle *DarkStyle::baseStyle() const { return styleBase(); }
void DarkStyle::polish(QPalette &palette) {
// modify palette to dark
palette.setColor(QPalette::Window, QColor(53, 53, 53));
palette.setColor(QPalette::WindowText, Qt::white);
palette.setColor(QPalette::Disabled, QPalette::WindowText,
QColor(127, 127, 127));
palette.setColor(QPalette::Base, QColor(42, 42, 42));
palette.setColor(QPalette::AlternateBase, QColor(66, 66, 66));
palette.setColor(QPalette::ToolTipBase, Qt::white);
palette.setColor(QPalette::ToolTipText, QColor(53, 53, 53));
palette.setColor(QPalette::Text, Qt::white);
palette.setColor(QPalette::Disabled, QPalette::Text, QColor(127, 127, 127));
palette.setColor(QPalette::Dark, QColor(35, 35, 35));
palette.setColor(QPalette::Shadow, QColor(20, 20, 20));
palette.setColor(QPalette::Button, QColor(53, 53, 53));
palette.setColor(QPalette::ButtonText, Qt::white);
palette.setColor(QPalette::Disabled, QPalette::ButtonText,
QColor(127, 127, 127));
palette.setColor(QPalette::BrightText, Qt::red);
palette.setColor(QPalette::Link, QColor(42, 130, 218));
palette.setColor(QPalette::Highlight, QColor(42, 130, 218));
palette.setColor(QPalette::Disabled, QPalette::Highlight, QColor(80, 80, 80));
palette.setColor(QPalette::HighlightedText, Qt::white);
palette.setColor(QPalette::Disabled, QPalette::HighlightedText,
QColor(127, 127, 127));
}
void DarkStyle::polish(QApplication *app) {
if (!app) return;
// increase font size for better reading,
// setPointSize was reduced from +2 because when applied this way in Qt5, the
// font is larger than intended for some reason
QFont defaultFont = QApplication::font();
defaultFont.setPointSize(defaultFont.pointSize() + 1);
app->setFont(defaultFont);
// loadstylesheet
QFile qfDarkstyle(QStringLiteral(":/resources/style/dark2.qss"));
if (qfDarkstyle.open(QIODevice::ReadOnly | QIODevice::Text)) {
// set stylesheet
QString qsStylesheet = QString::fromLatin1(qfDarkstyle.readAll());
app->setStyleSheet(qsStylesheet);
qfDarkstyle.close();
}
}
+26
View File
@@ -0,0 +1,26 @@
#ifndef DARKSTYLE_HPP
#define DARKSTYLE_HPP
#include <QApplication>
#include <QFile>
#include <QFont>
#include <QProxyStyle>
#include <QStyleFactory>
class DarkStyle : public QProxyStyle {
Q_OBJECT
public:
DarkStyle();
explicit DarkStyle(QStyle *style);
QStyle *baseStyle() const;
void polish(QPalette &palette) override;
void polish(QApplication *app) override;
private:
QStyle *styleBase(QStyle *style = Q_NULLPTR) const;
};
#endif // DARKSTYLE_HPP
+445
View File
@@ -0,0 +1,445 @@
#include "framelesswindow.h"
#include <QApplication>
#include <QWidget>
#include <QGraphicsDropShadowEffect>
#include <QScreen>
#include "ui_framelesswindow.h"
FramelessWindow::FramelessWindow(QWidget *parent)
: QWidget(parent),
ui(new Ui::FramelessWindow),
m_bMousePressed(false),
m_bDragTop(false),
m_bDragLeft(false),
m_bDragRight(false),
m_bDragBottom(false) {
setWindowFlags(Qt::FramelessWindowHint | Qt::WindowSystemMenuHint);
// append minimize button flag in case of windows,
// for correct windows native handling of minimize function
#if defined(Q_OS_WIN)
setWindowFlags(windowFlags() | Qt::WindowMinimizeButtonHint);
#endif
setAttribute(Qt::WA_NoSystemBackground, true);
setAttribute(Qt::WA_TranslucentBackground);
ui->setupUi(this);
ui->restoreButton->setVisible(false);
// shadow under window title text
QGraphicsDropShadowEffect *textShadow = new QGraphicsDropShadowEffect;
textShadow->setBlurRadius(4.0);
textShadow->setColor(QColor(0, 0, 0));
textShadow->setOffset(0.0);
ui->titleText->setGraphicsEffect(textShadow);
// window shadow
QGraphicsDropShadowEffect *windowShadow = new QGraphicsDropShadowEffect;
windowShadow->setBlurRadius(9.0);
windowShadow->setColor(palette().color(QPalette::Highlight));
windowShadow->setOffset(0.0);
ui->windowFrame->setGraphicsEffect(windowShadow);
QObject::connect(qApp, &QGuiApplication::applicationStateChanged, this,
&FramelessWindow::on_applicationStateChanged);
setMouseTracking(true);
// important to watch mouse move from all child widgets
QApplication::instance()->installEventFilter(this);
}
FramelessWindow::~FramelessWindow() { delete ui; }
void FramelessWindow::on_restoreButton_clicked() {
ui->restoreButton->setVisible(false);
ui->maximizeButton->setVisible(true);
setWindowState(Qt::WindowNoState);
// on MacOS this hack makes sure the
// background window is repaint correctly
hide();
show();
}
void FramelessWindow::on_maximizeButton_clicked() {
ui->restoreButton->setVisible(true);
ui->maximizeButton->setVisible(false);
this->setWindowState(Qt::WindowMaximized);
this->showMaximized();
styleWindow(true, false);
}
void FramelessWindow::changeEvent(QEvent *event) {
if (event->type() == QEvent::WindowStateChange) {
if (windowState().testFlag(Qt::WindowNoState)) {
ui->restoreButton->setVisible(false);
ui->maximizeButton->setVisible(true);
styleWindow(true, true);
event->ignore();
} else if (windowState().testFlag(Qt::WindowMaximized)) {
ui->restoreButton->setVisible(true);
ui->maximizeButton->setVisible(false);
styleWindow(true, false);
event->ignore();
}
}
event->accept();
}
void FramelessWindow::setContent(QWidget *w) {
ui->windowContent->layout()->addWidget(w);
}
void FramelessWindow::setWindowTitle(const QString &text) {
ui->titleText->setText(text);
}
void FramelessWindow::setWindowIcon(const QIcon &ico) {
ui->icon->setPixmap(ico.pixmap(16, 16));
}
void FramelessWindow::styleWindow(bool bActive, bool bNoState) {
if (bActive) {
if (bNoState) {
layout()->setContentsMargins(QMargins()); // margin 15
ui->windowTitlebar->setStyleSheet(QStringLiteral(
"#windowTitlebar{border: 0px none palette(shadow); "
"border-top-left-radius:5px; border-top-right-radius:5px; "
"background-color:palette(shadow); height:20px;}"));
ui->windowFrame->setStyleSheet(QStringLiteral(
"#windowFrame{border:1px solid palette(highlight); border-radius:5px "
"5px 5px 5px; background-color:palette(Window);}"));
QGraphicsEffect *oldShadow = ui->windowFrame->graphicsEffect();
if (oldShadow) delete oldShadow;
QGraphicsDropShadowEffect *windowShadow = new QGraphicsDropShadowEffect;
windowShadow->setBlurRadius(9.0);
windowShadow->setColor(palette().color(QPalette::Highlight));
windowShadow->setOffset(0.0);
ui->windowFrame->setGraphicsEffect(windowShadow);
} else {
layout()->setContentsMargins(QMargins(0,0,0,0)); // margin 0
ui->windowTitlebar->setStyleSheet(QStringLiteral(
"#windowTitlebar{border: 0px none palette(shadow); "
"border-top-left-radius:0px; border-top-right-radius:0px; "
"background-color:palette(shadow); height:20px;}"));
ui->windowFrame->setStyleSheet(QStringLiteral(
"#windowFrame{border:1px solid palette(dark); border-radius:0px 0px "
"0px 0px; background-color:palette(Window);}"));
QGraphicsEffect *oldShadow = ui->windowFrame->graphicsEffect();
if (oldShadow) delete oldShadow;
ui->windowFrame->setGraphicsEffect(nullptr);
} // if (bNoState) else maximize
} else {
if (bNoState) {
layout()->setContentsMargins(QMargins()); //margin 15
ui->windowTitlebar->setStyleSheet(QStringLiteral(
"#windowTitlebar{border: 0px none palette(shadow); "
"border-top-left-radius:5px; border-top-right-radius:5px; "
"background-color:palette(dark); height:20px;}"));
ui->windowFrame->setStyleSheet(QStringLiteral(
"#windowFrame{border:1px solid #000000; border-radius:5px 5px 5px "
"5px; background-color:palette(Window);}"));
QGraphicsEffect *oldShadow = ui->windowFrame->graphicsEffect();
if (oldShadow) delete oldShadow;
QGraphicsDropShadowEffect *windowShadow = new QGraphicsDropShadowEffect;
windowShadow->setBlurRadius(9.0);
windowShadow->setColor(palette().color(QPalette::Shadow));
windowShadow->setOffset(0.0);
ui->windowFrame->setGraphicsEffect(windowShadow);
} else {
layout()->setContentsMargins(QMargins(0,0,0,0)); // margin 0
ui->windowTitlebar->setStyleSheet(QStringLiteral(
"#titlebarWidget{border: 0px none palette(shadow); "
"border-top-left-radius:0px; border-top-right-radius:0px; "
"background-color:palette(dark); height:20px;}"));
ui->windowFrame->setStyleSheet(QStringLiteral(
"#windowFrame{border:1px solid palette(shadow); border-radius:0px "
"0px 0px 0px; background-color:palette(Window);}"));
QGraphicsEffect *oldShadow = ui->windowFrame->graphicsEffect();
if (oldShadow) delete oldShadow;
ui->windowFrame->setGraphicsEffect(nullptr);
} // if (bNoState) { else maximize
} // if (bActive) { else no focus
}
void FramelessWindow::on_applicationStateChanged(Qt::ApplicationState state) {
if (windowState().testFlag(Qt::WindowNoState)) {
if (state == Qt::ApplicationActive) {
styleWindow(true, true);
} else {
styleWindow(false, true);
}
} else if (windowState().testFlag(Qt::WindowFullScreen)) {
if (state == Qt::ApplicationActive) {
styleWindow(true, false);
} else {
styleWindow(false, false);
}
}
}
void FramelessWindow::on_minimizeButton_clicked() {
setWindowState(Qt::WindowMinimized);
}
void FramelessWindow::on_closeButton_clicked() { close(); }
void FramelessWindow::on_windowTitlebar_doubleClicked() {
if (windowState().testFlag(Qt::WindowNoState)) {
on_maximizeButton_clicked();
} else if (windowState().testFlag(Qt::WindowFullScreen)) {
on_restoreButton_clicked();
}
}
void FramelessWindow::mouseDoubleClickEvent(QMouseEvent *event) {
Q_UNUSED(event);
}
void FramelessWindow::checkBorderDragging(QMouseEvent *event) {
if (isMaximized()) {
return;
}
QPoint globalMousePos = event->globalPos();
if (m_bMousePressed) {
QScreen *screen = QGuiApplication::primaryScreen();
// available geometry excludes taskbar
QRect availGeometry = screen->availableGeometry();
int h = availGeometry.height();
int w = availGeometry.width();
QList<QScreen *> screenlist = screen->virtualSiblings();
if (screenlist.contains(screen)) {
QSize sz = QApplication::screens()[0]->size();
h = sz.height();
w = sz.width();
}
// top right corner
if (m_bDragTop && m_bDragRight) {
int diff =
globalMousePos.x() - (m_StartGeometry.x() + m_StartGeometry.width());
int neww = m_StartGeometry.width() + diff;
diff = globalMousePos.y() - m_StartGeometry.y();
int newy = m_StartGeometry.y() + diff;
if (neww > 0 && newy > 0 && newy < h - 50) {
QRect newg = m_StartGeometry;
newg.setWidth(neww);
newg.setX(m_StartGeometry.x());
newg.setY(newy);
setGeometry(newg);
}
}
// top left corner
else if (m_bDragTop && m_bDragLeft) {
int diff = globalMousePos.y() - m_StartGeometry.y();
int newy = m_StartGeometry.y() + diff;
diff = globalMousePos.x() - m_StartGeometry.x();
int newx = m_StartGeometry.x() + diff;
if (newy > 0 && newx > 0) {
QRect newg = m_StartGeometry;
newg.setY(newy);
newg.setX(newx);
setGeometry(newg);
}
}
// bottom right corner
else if (m_bDragBottom && m_bDragLeft) {
int diff =
globalMousePos.y() - (m_StartGeometry.y() + m_StartGeometry.height());
int newh = m_StartGeometry.height() + diff;
diff = globalMousePos.x() - m_StartGeometry.x();
int newx = m_StartGeometry.x() + diff;
if (newh > 0 && newx > 0) {
QRect newg = m_StartGeometry;
newg.setX(newx);
newg.setHeight(newh);
setGeometry(newg);
}
} else if (m_bDragTop) {
int diff = globalMousePos.y() - m_StartGeometry.y();
int newy = m_StartGeometry.y() + diff;
if (newy > 0 && newy < h - 50) {
QRect newg = m_StartGeometry;
newg.setY(newy);
setGeometry(newg);
}
} else if (m_bDragLeft) {
int diff = globalMousePos.x() - m_StartGeometry.x();
int newx = m_StartGeometry.x() + diff;
if (newx > 0 && newx < w - 50) {
QRect newg = m_StartGeometry;
newg.setX(newx);
setGeometry(newg);
}
} else if (m_bDragRight) {
int diff =
globalMousePos.x() - (m_StartGeometry.x() + m_StartGeometry.width());
int neww = m_StartGeometry.width() + diff;
if (neww > 0) {
QRect newg = m_StartGeometry;
newg.setWidth(neww);
newg.setX(m_StartGeometry.x());
setGeometry(newg);
}
} else if (m_bDragBottom) {
int diff =
globalMousePos.y() - (m_StartGeometry.y() + m_StartGeometry.height());
int newh = m_StartGeometry.height() + diff;
if (newh > 0) {
QRect newg = m_StartGeometry;
newg.setHeight(newh);
newg.setY(m_StartGeometry.y());
setGeometry(newg);
}
}
} else {
// no mouse pressed
if (leftBorderHit(globalMousePos) && topBorderHit(globalMousePos)) {
setCursor(Qt::SizeFDiagCursor);
} else if (rightBorderHit(globalMousePos) && topBorderHit(globalMousePos)) {
setCursor(Qt::SizeBDiagCursor);
} else if (leftBorderHit(globalMousePos) &&
bottomBorderHit(globalMousePos)) {
setCursor(Qt::SizeBDiagCursor);
} else {
if (topBorderHit(globalMousePos)) {
setCursor(Qt::SizeVerCursor);
} else if (leftBorderHit(globalMousePos)) {
setCursor(Qt::SizeHorCursor);
} else if (rightBorderHit(globalMousePos)) {
setCursor(Qt::SizeHorCursor);
} else if (bottomBorderHit(globalMousePos)) {
setCursor(Qt::SizeVerCursor);
} else {
m_bDragTop = false;
m_bDragLeft = false;
m_bDragRight = false;
m_bDragBottom = false;
setCursor(Qt::ArrowCursor);
}
}
}
}
// pos in global virtual desktop coordinates
bool FramelessWindow::leftBorderHit(const QPoint &pos) {
const QRect &rect = this->geometry();
if (pos.x() >= rect.x() && pos.x() <= rect.x() + CONST_DRAG_BORDER_SIZE) {
return true;
}
return false;
}
bool FramelessWindow::rightBorderHit(const QPoint &pos) {
const QRect &rect = this->geometry();
int tmp = rect.x() + rect.width();
if (pos.x() <= tmp && pos.x() >= (tmp - CONST_DRAG_BORDER_SIZE)) {
return true;
}
return false;
}
bool FramelessWindow::topBorderHit(const QPoint &pos) {
const QRect &rect = this->geometry();
if (pos.y() >= rect.y() && pos.y() <= rect.y() + CONST_DRAG_BORDER_SIZE) {
return true;
}
return false;
}
bool FramelessWindow::bottomBorderHit(const QPoint &pos) {
const QRect &rect = this->geometry();
int tmp = rect.y() + rect.height();
if (pos.y() <= tmp && pos.y() >= (tmp - CONST_DRAG_BORDER_SIZE)) {
return true;
}
return false;
}
void FramelessWindow::mousePressEvent(QMouseEvent *event) {
if (isMaximized()) {
return;
}
m_bMousePressed = true;
m_StartGeometry = this->geometry();
QPoint globalMousePos = mapToGlobal(QPoint(event->x(), event->y()));
if (leftBorderHit(globalMousePos) && topBorderHit(globalMousePos)) {
m_bDragTop = true;
m_bDragLeft = true;
setCursor(Qt::SizeFDiagCursor);
} else if (rightBorderHit(globalMousePos) && topBorderHit(globalMousePos)) {
m_bDragRight = true;
m_bDragTop = true;
setCursor(Qt::SizeBDiagCursor);
} else if (leftBorderHit(globalMousePos) && bottomBorderHit(globalMousePos)) {
m_bDragLeft = true;
m_bDragBottom = true;
setCursor(Qt::SizeBDiagCursor);
} else {
if (topBorderHit(globalMousePos)) {
m_bDragTop = true;
setCursor(Qt::SizeVerCursor);
} else if (leftBorderHit(globalMousePos)) {
m_bDragLeft = true;
setCursor(Qt::SizeHorCursor);
} else if (rightBorderHit(globalMousePos)) {
m_bDragRight = true;
setCursor(Qt::SizeHorCursor);
} else if (bottomBorderHit(globalMousePos)) {
m_bDragBottom = true;
setCursor(Qt::SizeVerCursor);
}
}
}
void FramelessWindow::mouseReleaseEvent(QMouseEvent *event) {
Q_UNUSED(event);
if (isMaximized()) {
return;
}
m_bMousePressed = false;
bool bSwitchBackCursorNeeded =
m_bDragTop || m_bDragLeft || m_bDragRight || m_bDragBottom;
m_bDragTop = false;
m_bDragLeft = false;
m_bDragRight = false;
m_bDragBottom = false;
if (bSwitchBackCursorNeeded) {
setCursor(Qt::ArrowCursor);
}
}
bool FramelessWindow::eventFilter(QObject *obj, QEvent *event) {
if (isMaximized()) {
return QWidget::eventFilter(obj, event);
}
// check mouse move event when mouse is moved on any object
if (event->type() == QEvent::MouseMove) {
QMouseEvent *pMouse = dynamic_cast<QMouseEvent *>(event);
if (pMouse) {
checkBorderDragging(pMouse);
}
}
// press is triggered only on frame window
else if (event->type() == QEvent::MouseButtonPress && obj == this) {
QMouseEvent *pMouse = dynamic_cast<QMouseEvent *>(event);
if (pMouse) {
mousePressEvent(pMouse);
}
} else if (event->type() == QEvent::MouseButtonRelease) {
if (m_bMousePressed) {
QMouseEvent *pMouse = dynamic_cast<QMouseEvent *>(event);
if (pMouse) {
mouseReleaseEvent(pMouse);
}
}
}
return QWidget::eventFilter(obj, event);
}
+69
View File
@@ -0,0 +1,69 @@
/*
###############################################################################
# #
# The MIT License #
# #
# Copyright (C) 2017 by Juergen Skrotzky (JorgenVikingGod@gmail.com) #
# >> https://github.com/Jorgen-VikingGod #
# #
# Sources: https://github.com/Jorgen-VikingGod/Qt-Frameless-Window-DarkStyle #
# #
###############################################################################
*/
#ifndef FRAMELESSWINDOW_H
#define FRAMELESSWINDOW_H
#include <QWidget>
namespace Ui {
class FramelessWindow;
}
class FramelessWindow : public QWidget {
Q_OBJECT
public:
explicit FramelessWindow(QWidget *parent = Q_NULLPTR);
virtual ~FramelessWindow();
void setContent(QWidget *w);
private:
bool leftBorderHit(const QPoint &pos);
bool rightBorderHit(const QPoint &pos);
bool topBorderHit(const QPoint &pos);
bool bottomBorderHit(const QPoint &pos);
void styleWindow(bool bActive, bool bNoState);
public slots:
void setWindowTitle(const QString &text);
void setWindowIcon(const QIcon &ico);
private slots:
void on_applicationStateChanged(Qt::ApplicationState state);
void on_minimizeButton_clicked();
void on_restoreButton_clicked();
void on_maximizeButton_clicked();
void on_closeButton_clicked();
void on_windowTitlebar_doubleClicked();
protected:
virtual void changeEvent(QEvent *event);
virtual void mouseDoubleClickEvent(QMouseEvent *event);
virtual void checkBorderDragging(QMouseEvent *event);
virtual void mousePressEvent(QMouseEvent *event);
virtual void mouseReleaseEvent(QMouseEvent *event);
virtual bool eventFilter(QObject *obj, QEvent *event);
private:
Ui::FramelessWindow *ui;
QRect m_StartGeometry;
const quint8 CONST_DRAG_BORDER_SIZE = 15;
bool m_bMousePressed;
bool m_bDragTop;
bool m_bDragLeft;
bool m_bDragRight;
bool m_bDragBottom;
};
#endif // FRAMELESSWINDOW_H
+312
View File
@@ -0,0 +1,312 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>FramelessWindow</class>
<widget class="QWidget" name="FramelessWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1000</width>
<height>1000</height>
</rect>
</property>
<property name="windowTitle">
<string/>
</property>
<property name="windowIcon">
<iconset resource="resources.qrc">
<normaloff>:/resources/icons/mandelbrot.png</normaloff>:/resources/icons/mandelbrot.png</iconset>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>5</number>
</property>
<property name="topMargin">
<number>5</number>
</property>
<property name="rightMargin">
<number>5</number>
</property>
<property name="bottomMargin">
<number>5</number>
</property>
<item>
<widget class="QWidget" name="windowFrame" native="true">
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">#windowFrame{border:1px solid palette(highlight); border-radius:5px 5px 5px 5px; background-color:palette(Window);}</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>1</number>
</property>
<property name="topMargin">
<number>1</number>
</property>
<property name="rightMargin">
<number>1</number>
</property>
<property name="bottomMargin">
<number>1</number>
</property>
<item>
<widget class="WindowDragger" name="windowTitlebar" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">#windowTitlebar{border: 0px none palette(base); border-top-left-radius:5px; border-top-right-radius:5px; background-color:palette(shadow); height:20px;}</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0,1,0,0,0,0">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="spacer">
<property name="minimumSize">
<size>
<width>4</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>4</width>
<height>16777215</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="icon">
<property name="minimumSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="contextMenuPolicy">
<enum>Qt::NoContextMenu</enum>
</property>
<property name="styleSheet">
<string notr="true">#icon {background-color:palette(shadow);
image:url(:/resources/icons/mandelbrot.png);
}</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="titleText">
<property name="font">
<font>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true"> padding-left:5px;
color:rgb(153,153,153);</string>
</property>
<property name="text">
<string>QTierazon</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="minimizeButton">
<property name="font">
<font>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">#minimizeButton{
background-color:none;
border:none;
width:16px;
height:16px;
padding:4px;
image:url(:/resources/icons/icon_window_minimize.png);
}
#minimizeButton:hover{
background-color:palette(alternate-base);
}
#minimizeButton:pressed{
background-color:palette(highlight);
}</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="restoreButton">
<property name="styleSheet">
<string notr="true">#restoreButton{
background-color:none;
border:none;
width:16px;
height:16px;
padding:4px;
image:url(:/resources/icons/icon_window_restore.png);
}
#restoreButton:hover{
background-color:palette(alternate-base);
}
#restoreButton:pressed{
background-color:palette(highlight);
}</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="maximizeButton">
<property name="styleSheet">
<string notr="true">#maximizeButton{
background-color:none;
border:none;
width:16px;
height:16px;
padding:4px;
image:url(:/resources/icons/icon_window_maximize.png);
}
#maximizeButton:hover{
background-color:palette(alternate-base);
}
##maximizeButton:pressed{
background-color:palette(highlight);
}</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="closeButton">
<property name="enabled">
<bool>true</bool>
</property>
<property name="font">
<font>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">#closeButton{
background-color:none;
border:none;
width:16px;
height:16px;
padding:4px;
image:url(:/resources/icons/icon_window_close.png);
border-top-right-radius: 5px;
}
#closeButton:hover{
background-color:palette(alternate-base);
}
##closeButton:pressed{
background-color:palette(highlight);
}</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QWidget" name="windowContent" native="true">
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">#windowContent{
border: 0px none palette(base);
border-radius:0px 0px 5px 5px;
}</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
<class>WindowDragger</class>
<extends>QWidget</extends>
<header>windowdragger.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources>
<include location="resources.qrc"/>
</resources>
<connections/>
</ui>
+46
View File
@@ -0,0 +1,46 @@
#include "mainfrm.h"
#include "framelesswindow.h"
#include "DarkStyle.h"
#include <QFile>
#include <QApplication>
inline const bool frameless = false;
int main(int argc, char *argv[])
{
if(!frameless){
QApplication a(argc, argv);
// Set style sheet
QFile styleSheetFile(":/qss/resources/style/Darkeum.qss");
styleSheetFile.open(QFile::ReadOnly);
printf(styleSheetFile.exists()? "true" : "false");
QString styleSheet = QLatin1String(styleSheetFile.readAll());
a.setStyleSheet(styleSheet);
MainFrm w;
w.show();
return a.exec();
}else{
QApplication a(argc, argv);
// style our application with custom dark style
QApplication::setStyle(new DarkStyle);
//QApplication::setPalette(QApplication::style()->standardPalette());
// create frameless window (and set windowState or title)
FramelessWindow framelessWindow;
//framelessWindow.setWindowState(Qt::WindowMaximized);
//framelessWindow.setWindowTitle("test title");
//framelessWindow.setWindowIcon(a.style()->standardIcon(QStyle::SP_DesktopIcon));
// create our mainwindow instance
MainFrm *w = new MainFrm;
// add the mainwindow to our custom frameless window
framelessWindow.setContent(w);
framelessWindow.show();
return a.exec();
}return 0;
}
+26
View File
@@ -0,0 +1,26 @@
#include "mainfrm.h"
#include "./ui_mainfrm.h"
#include <QMessageBox>
#include <QtCore/QFile>
#include <string>
MainFrm::MainFrm(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainFrm)
{
ui->setupUi(this);
ui->statusbar->showMessage(QString::fromStdString(QTZ_VERSION),0);
// activate stylesheet (done in design editor -> mainfrm.ui)
// QFile file(":/resources/style/dark.qss");
// file.open(QFile::ReadOnly);
// QString styleSheet = QLatin1String(file.readAll());
// qApp->setStyleSheet(styleSheet);
}
MainFrm::~MainFrm()
{
delete ui;
}
+23
View File
@@ -0,0 +1,23 @@
#ifndef MAINFRM_H
#define MAINFRM_H
#include <QMainWindow>
inline const std::string QTZ_VERSION = "version 1.0";
QT_BEGIN_NAMESPACE
namespace Ui { class MainFrm; }
QT_END_NAMESPACE
class MainFrm : public QMainWindow
{
Q_OBJECT
public:
MainFrm(QWidget *parent = nullptr);
~MainFrm();
private:
Ui::MainFrm *ui;
};
#endif // MAINFRM_H
+78
View File
@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainFrm</class>
<widget class="QMainWindow" name="MainFrm">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>600</height>
</rect>
</property>
<property name="windowTitle">
<string>QTierazon</string>
</property>
<property name="windowIcon">
<iconset resource="resources.qrc">
<normaloff>:/resources/icons/mandelbrot.png</normaloff>:/resources/icons/mandelbrot.png</iconset>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<widget class="QWidget" name="centralwidget"/>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>21</height>
</rect>
</property>
<widget class="QMenu" name="menuamogus">
<property name="title">
<string>amogus</string>
</property>
<addaction name="actionsussy"/>
</widget>
<widget class="QMenu" name="menusus">
<property name="title">
<string>sus</string>
</property>
</widget>
<widget class="QMenu" name="menuuwu">
<property name="title">
<string>uwu</string>
</property>
</widget>
<addaction name="menuamogus"/>
<addaction name="menusus"/>
<addaction name="menuuwu"/>
</widget>
<widget class="QStatusBar" name="statusbar"/>
<widget class="QToolBar" name="toolBar">
<property name="windowTitle">
<string>toolBar</string>
</property>
<attribute name="toolBarArea">
<enum>LeftToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
</widget>
<action name="actionsussy">
<property name="text">
<string>sussy</string>
</property>
</action>
</widget>
<resources>
<include location="resources.qrc"/>
</resources>
<connections/>
</ui>
+37
View File
@@ -0,0 +1,37 @@
<RCC>
<qresource prefix="/">
<file>resources/icons/mandelbrot.png</file>
<file>resources/icons/icon_close.png</file>
<file>resources/icons/icon_restore.png</file>
<file>resources/icons/icon_undock.png</file>
<file>resources/icons/icon_branch_closed.png</file>
<file>resources/icons/icon_branch_end.png</file>
<file>resources/icons/icon_branch_more.png</file>
<file>resources/icons/icon_branch_open.png</file>
<file>resources/icons/icon_vline.png</file>
<file>resources/icons/icon_checkbox_checked.png</file>
<file>resources/icons/icon_checkbox_indeterminate.png</file>
<file>resources/icons/icon_checkbox_unchecked.png</file>
<file>resources/icons/icon_checkbox_checked_pressed.png</file>
<file>resources/icons/icon_checkbox_indeterminate_pressed.png</file>
<file>resources/icons/icon_checkbox_unchecked_pressed.png</file>
<file>resources/icons/icon_checkbox_checked_disabled.png</file>
<file>resources/icons/icon_checkbox_indeterminate_disabled.png</file>
<file>resources/icons/icon_checkbox_unchecked_disabled.png</file>
<file>resources/icons/icon_radiobutton_checked.png</file>
<file>resources/icons/icon_radiobutton_unchecked.png</file>
<file>resources/icons/icon_radiobutton_checked_pressed.png</file>
<file>resources/icons/icon_radiobutton_unchecked_pressed.png</file>
<file>resources/icons/icon_radiobutton_checked_disabled.png</file>
<file>resources/icons/icon_radiobutton_unchecked_disabled.png</file>
<file>resources/icons/icon_window_minimize.png</file>
<file>resources/icons/icon_window_restore.png</file>
<file>resources/icons/icon_window_maximize.png</file>
<file>resources/icons/icon_window_close.png</file>
</qresource>
<qresource prefix="/qss">
<file>resources/style/dark.qss</file>
<file>resources/style/dark2.qss</file>
<file>resources/style/Darkeum.qss</file>
</qresource>
</RCC>
Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 358 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 313 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 422 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 370 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 617 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 616 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 538 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 537 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 424 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 422 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 386 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 364 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 438 KiB

File diff suppressed because it is too large Load Diff
+265
View File
@@ -0,0 +1,265 @@
/*
COLOR_DARK = #191919
COLOR_MEDIUM = #353535
COLOR_MEDLIGHT = #5A5A5A
COLOR_LIGHT = #DDDDDD
COLOR_ACCENT = #A74BB8
*/
* {
background: #191919;
color: #DDDDDD;
border: 1px solid #5A5A5A;
}
QWidget::item:selected {
background: #A74BB8;
}
QCheckBox, QRadioButton {
border: none;
}
QRadioButton::indicator, QCheckBox::indicator {
width: 13px;
height: 13px;
}
QRadioButton::indicator::unchecked, QCheckBox::indicator::unchecked {
border: 1px solid #5A5A5A;
background: none;
}
QRadioButton::indicator:unchecked:hover, QCheckBox::indicator:unchecked:hover {
border: 1px solid #DDDDDD;
}
QRadioButton::indicator::checked, QCheckBox::indicator::checked {
border: 1px solid #5A5A5A;
background: #5A5A5A;
}
QRadioButton::indicator:checked:hover, QCheckBox::indicator:checked:hover {
border: 1px solid #DDDDDD;
background: #DDDDDD;
}
QGroupBox {
margin-top: 6px;
}
QGroupBox::title {
top: -7px;
left: 7px;
}
QScrollBar {
border: 1px solid #5A5A5A;
background: #191919;
}
QScrollBar:horizontal {
height: 15px;
margin: 0px 0px 0px 32px;
}
QScrollBar:vertical {
width: 15px;
margin: 32px 0px 0px 0px;
}
QScrollBar::handle {
background: #353535;
border: 1px solid #5A5A5A;
}
QScrollBar::handle:horizontal {
border-width: 0px 1px 0px 1px;
}
QScrollBar::handle:vertical {
border-width: 1px 0px 1px 0px;
}
QScrollBar::handle:horizontal {
min-width: 20px;
}
QScrollBar::handle:vertical {
min-height: 20px;
}
QScrollBar::add-line, QScrollBar::sub-line {
background:#353535;
border: 1px solid #5A5A5A;
subcontrol-origin: margin;
}
QScrollBar::add-line {
position: absolute;
}
QScrollBar::add-line:horizontal {
width: 15px;
subcontrol-position: left;
left: 15px;
}
QScrollBar::add-line:vertical {
height: 15px;
subcontrol-position: top;
top: 15px;
}
QScrollBar::sub-line:horizontal {
width: 15px;
subcontrol-position: top left;
}
QScrollBar::sub-line:vertical {
height: 15px;
subcontrol-position: top;
}
QScrollBar:left-arrow, QScrollBar::right-arrow, QScrollBar::up-arrow, QScrollBar::down-arrow {
border: 1px solid #5A5A5A;
width: 3px;
height: 3px;
}
QScrollBar::add-page, QScrollBar::sub-page {
background: none;
}
QAbstractButton:hover {
background: #353535;
}
QAbstractButton:pressed {
background: #5A5A5A;
}
QAbstractItemView {
show-decoration-selected: 1;
selection-background-color: #A74BB8;
selection-color: #DDDDDD;
alternate-background-color: #353535;
}
QHeaderView {
border: 1px solid #5A5A5A;
}
QHeaderView::section {
background: #191919;
border: 1px solid #5A5A5A;
padding: 4px;
}
QHeaderView::section:selected, QHeaderView::section::checked {
background: #353535;
}
QTableView {
gridline-color: #5A5A5A;
}
QTabBar {
margin-left: 2px;
}
QTabBar::tab {
border-radius: 0px;
padding: 4px;
margin: 4px;
}
QTabBar::tab:selected {
background: #353535;
}
QComboBox::down-arrow {
border: 1px solid #5A5A5A;
background: #353535;
}
QComboBox::drop-down {
border: 1px solid #5A5A5A;
background: #353535;
}
QComboBox::down-arrow {
width: 3px;
height: 3px;
border: 1px solid #5A5A5A;
}
QAbstractSpinBox {
padding-right: 15px;
}
QAbstractSpinBox::up-button, QAbstractSpinBox::down-button {
border: 1px solid #5A5A5A;
background: #353535;
subcontrol-origin: border;
}
QAbstractSpinBox::up-arrow, QAbstractSpinBox::down-arrow {
width: 3px;
height: 3px;
border: 1px solid #5A5A5A;
}
QSlider {
border: none;
}
QSlider::groove:horizontal {
height: 5px;
margin: 4px 0px 4px 0px;
}
QSlider::groove:vertical {
width: 5px;
margin: 0px 4px 0px 4px;
}
QSlider::handle {
border: 1px solid #5A5A5A;
background: #353535;
}
QSlider::handle:horizontal {
width: 15px;
margin: -4px 0px -4px 0px;
}
QSlider::handle:vertical {
height: 15px;
margin: 0px -4px 0px -4px;
}
QSlider::add-page:vertical, QSlider::sub-page:horizontal {
background: #A74BB8;
}
QSlider::sub-page:vertical, QSlider::add-page:horizontal {
background: #353535;
}
QLabel {
border: none;
}
QProgressBar {
text-align: center;
}
QProgressBar::chunk {
width: 1px;
background-color: #A74BB8;
}
QMenu::separator {
background: #353535;
}
+356
View File
@@ -0,0 +1,356 @@
QToolTip{
color:#ffffff;
background-color:palette(base);
border:1px solid palette(highlight);
border-radius:4px;
}
QStatusBar{
background-color:qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
color:palette(mid);
}
QMenuBar{
background-color:qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
border-bottom:2px solid rgba(25,25,25,75);
}
QMenuBar::item{
spacing:2px;
padding:3px 4px;
background:transparent;
}
QMenuBar::item:selected{
background-color:qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 rgba(106,106,106,255),stop:1 rgba(106,106,106,75));
border-left:1px solid rgba(106,106,106,127);
border-right:1px solid rgba(106,106,106,127);
}
QMenuBar::item:pressed{
background-color:palette(highlight);
border-left:1px solid rgba(25,25,25,127);
border-right:1px solid rgba(25,25,25,127);
}
QMenu{
background-color:palette(window);
border:1px solid palette(shadow);
}
QMenu::item{
padding:3px 25px 3px 25px;
border:1px solid transparent;
}
QMenu::item:disabled{
background-color:rgba(35,35,35,127);
color:palette(disabled);
}
QMenu::item:selected{
border-color:rgba(147,191,236,127);
background:palette(highlight);
}
QMenu::icon:checked{
background-color:qlineargradient(x1:0,y1:1,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
border:1px solid palette(highlight);
border-radius:2px;
}
QMenu::separator{
height:1px;
background:palette(alternate-base);
margin-left:5px;
margin-right:5px;
}
QMenu::indicator{
width:18px;
height:18px;
}
QMenu::indicator:non-exclusive:checked{
image:url(:/resources/icons/icon_checkbox_checked.png);
padding-left:2px;
}
QMenu::indicator:non-exclusive:unchecked{
image:url(:/resources/icons/icon_checkbox_unchecked.png);
padding-left:2px;
}
QMenu::indicator:exclusive:checked{
image:url(:/resources/icons/icon_radiobutton_checked.png);
padding-left:2px;
}
QMenu::indicator:exclusive:unchecked{
image:url(:/resources/icons/icon_radiobutton_unchecked.png);
padding-left:2px;
}
QToolBar::top{
background-color:qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
border-bottom:3px solid qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
}
QToolBar::bottom{
background-color:qlineargradient(x1:0,y1:1,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
border-top:3px solid qlineargradient(x1:0,y1:1,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
}
QToolBar::left{
background-color:qlineargradient(x1:0,y1:0,x2:1,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
border-right:3px solid qlineargradient(x1:0,y1:0,x2:1,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
}
QToolBar::right{
background-color:qlineargradient(x1:1,y1:0,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
border-left:3px solid qlineargradient(x1:1,y1:0,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
}
QMainWindow::separator{
width:6px;
height:5px;
padding:2px;
}
QSplitter::handle:horizontal{
width:10px;
}
QSplitter::handle:vertical{
height:10px;
}
QMainWindow::separator:hover,QSplitter::handle:hover{
background:palette(highlight);
}
QDockWidget::title{
padding:4px;
background-color:qlineargradient(x1:0,y1:1,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
border:1px solid rgba(25,25,25,75);
border-bottom:2px solid rgba(25,25,25,75);
}
QDockWidget{
titlebar-close-icon:url(:/resources/icons/icon_close.png);
titlebar-normal-icon:url(:/resources/icons/icon_restore.png);
}
QDockWidget::close-button,QDockWidget::float-button{
subcontrol-position:top right;
subcontrol-origin:margin;
position:absolute;
top:3px;
bottom:0px;
width:20px;
height:20px;
}
QDockWidget::close-button{
right:3px;
}
QDockWidget::float-button{
right:25px;
}
QGroupBox{
background-color:rgba(66,66,66,50%);
margin-top:27px;
border:1px solid rgba(25,25,25,127);
border-radius:4px;
}
QGroupBox::title{
subcontrol-origin:margin;
subcontrol-position:left top;
padding:4px 6px;
margin-left:3px;
background-color:qlineargradient(x1:0,y1:1,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
border:1px solid rgba(25,25,25,75);
border-bottom:2px solid rgb(127,127,127);
border-top-left-radius:4px;
border-top-right-radius:4px;
}
QTabWidget::pane{
background-color:rgba(66,66,66,50%);
border-top:1px solid rgba(25,25,25,50%);
}
QTabWidget::tab-bar{
left:3px;
top:1px;
}
QTabBar{
background-color:transparent;
qproperty-drawBase:0;
border-bottom:1px solid rgba(25,25,25,50%);
}
QTabBar::tab{
padding:4px 6px;
background-color:qlineargradient(x1:0,y1:1,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
border:1px solid rgba(25,25,25,75);
border-top-left-radius:4px;
border-top-right-radius:4px;
}
QTabBar::tab:selected,QTabBar::tab:hover{
background-color:qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 rgba(53,53,53,127),stop:1 rgba(66,66,66,50%));
border-bottom-color:rgba(66,66,66,75%);
}
QTabBar::tab:selected{
border-bottom:2px solid palette(highlight);
}
QTabBar::tab::selected:disabled{
border-bottom:2px solid rgb(127,127,127);
}
QTabBar::tab:!selected{
margin-top:2px;
}
QTabBar::close-button {
image:url(:/resources/icons/icon_close.png);
border:1px solid transparent;
border-radius:2px;
}
QTabBar::close-button:hover {
background-color:qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 rgba(106,106,106,255),stop:1 rgba(106,106,106,75));
border:1px solid palette(base);
}
QTabBar::close-button:pressed {
background-color:qlineargradient(x1:0,y1:1,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
border:1px solid palette(base);
}
QCheckBox::indicator{
width:18px;
height:18px;
}
QCheckBox::indicator:checked,QTreeView::indicator:checked,QTableView::indicator:checked,QGroupBox::indicator:checked{
image:url(:/resources/icons/icon_checkbox_checked.png);
}
QCheckBox::indicator:checked:pressed,QTreeView::indicator:checked:pressed,QTableView::indicator:checked:pressed,QGroupBox::indicator:checked:pressed{
image:url(:/resources/icons/icon_checkbox_checked_pressed.png);
}
QCheckBox::indicator:checked:disabled,QTreeView::indicator:checked:disabled,QTableView::indicator:checked:disabled,QGroupBox::indicator:checked:disabled{
image:url(:/resources/icons/icon_checkbox_checked_disabled.png);
}
QCheckBox::indicator:unchecked,QTreeView::indicator:unchecked,QTableView::indicator:unchecked,QGroupBox::indicator:unchecked{
image:url(:/resources/icons/icon_checkbox_unchecked.png);
}
QCheckBox::indicator:unchecked:pressed,QTreeView::indicator:unchecked:pressed,QTableView::indicator:unchecked:pressed,QGroupBox::indicator:unchecked:pressed{
image:url(:/resources/icons/icon_checkbox_unchecked_pressed.png);
}
QCheckBox::indicator:unchecked:disabled,QTreeView::indicator:unchecked:disabled,QTableView::indicator:unchecked:disabled,QGroupBox::indicator:unchecked:disabled{
image:url(:/resources/icons/icon_checkbox_unchecked_disabled.png);
}
QCheckBox::indicator:indeterminate,QTreeView::indicator:indeterminate,QTableView::indicator:indeterminate,QGroupBox::indicator:indeterminate{
image:url(:/resources/icons/icon_checkbox_indeterminate.png);
}
QCheckBox::indicator:indeterminate:pressed,QTreeView::indicator:indeterminate:pressed,QTableView::indicator:indeterminate:pressed,QGroupBox::indicator:indeterminate:pressed{
image:url(:/resources/icons/icon_checkbox_indeterminate_pressed.png);
}
QCheckBox::indicator:indeterminate:disabled,QTreeView::indicator:indeterminate:disabled,QTableView::indicator:indeterminate:disabled,QGroupBox::indicator:indeterminate:disabled{
image:url(:/resources/icons/icon_checkbox_indeterminate_disabled.png);
}
QRadioButton::indicator{
width:18px;
height:18px;
}
QRadioButton::indicator:checked{
image:url(:/resources/icons/icon_radiobutton_checked.png);
}
QRadioButton::indicator:checked:pressed{
image:url(:/resources/icons/icon_radiobutton_checked_pressed.png);
}
QRadioButton::indicator:checked:disabled{
image:url(:/resources/icons/icon_radiobutton_checked_disabled.png);
}
QRadioButton::indicator:unchecked{
image:url(:/resources/icons/icon_radiobutton_unchecked.png);
}
QRadioButton::indicator:unchecked:pressed{
image:url(:/resources/icons/icon_radiobutton_unchecked_pressed.png);
}
QRadioButton::indicator:unchecked:disabled{
image:url(:/resources/icons/icon_radiobutton_unchecked_disabled.png);
}
QTreeView, QTableView{
alternate-background-color:palette(window);
background:palette(base);
}
QTreeView QHeaderView::section, QTableView QHeaderView::section{
background-color:qlineargradient(x1:0,y1:1,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
border-style:none;
border-bottom:1px solid palette(dark);
padding-left:5px;
padding-right:5px;
}
QTreeView::item:selected:disabled, QTableView::item:selected:disabled{
background:rgb(80,80,80);
}
QTreeView::branch{
background-color:palette(base);
}
QTreeView::branch:has-siblings:!adjoins-item{
border-image:url(:/resources/icons/icon_vline.png) 0;
}
QTreeView::branch:has-siblings:adjoins-item{
border-image:url(:/resources/icons/icon_branch_more.png) 0;
}
QTreeView::branch:!has-children:!has-siblings:adjoins-item{
border-image:url(:/resources/icons/icon_branch_end.png) 0;
}
QTreeView::branch:has-children:!has-siblings:closed,
QTreeView::branch:closed:has-children:has-siblings{
border-image:none;
image:url(:/resources/icons/icon_branch_closed.png);
}
QTreeView::branch:open:has-children:!has-siblings,
QTreeView::branch:open:has-children:has-siblings{
border-image:none;
image:url(:/resources/icons/icon_branch_open.png);
}
QScrollBar:vertical{
background:palette(base);
border-top-right-radius:2px;
border-bottom-right-radius:2px;
width:16px;
margin:0px;
}
QScrollBar::handle:vertical{
background-color:palette(alternate-base);
border-radius:2px;
min-height:20px;
margin:2px 4px 2px 4px;
}
QScrollBar::handle:vertical:hover{
background-color:palette(highlight);
}
QScrollBar::add-line:vertical{
background:none;
height:0px;
subcontrol-position:right;
subcontrol-origin:margin;
}
QScrollBar::sub-line:vertical{
background:none;
height:0px;
subcontrol-position:left;
subcontrol-origin:margin;
}
QScrollBar:horizontal{
background:palette(base);
height:16px;
margin:0px;
}
QScrollBar::handle:horizontal{
background-color:palette(alternate-base);
border-radius:2px;
min-width:20px;
margin:4px 2px 4px 2px;
}
QScrollBar::handle:horizontal:hover{
background-color:palette(highlight);
}
QScrollBar::add-line:horizontal{
background:none;
width:0px;
subcontrol-position:bottom;
subcontrol-origin:margin;
}
QScrollBar::sub-line:horizontal{
background:none;
width:0px;
subcontrol-position:top;
subcontrol-origin:margin;
}
QSlider::handle:horizontal{
border-radius:4px;
border:1px solid rgba(25,25,25,255);
background-color:palette(alternate-base);
min-height:20px;
margin:0 -4px;
}
QSlider::handle:horizontal:hover{
background:palette(highlight);
}
QSlider::add-page:horizontal{
background:palette(base);
}
QSlider::sub-page:horizontal{
background:palette(highlight);
}
QSlider::sub-page:horizontal:disabled{
background:rgb(80,80,80);
}
+56
View File
@@ -0,0 +1,56 @@
/*
###############################################################################
# #
# The MIT License #
# #
# Copyright (C) 2017 by Juergen Skrotzky (JorgenVikingGod@gmail.com) #
# >> https://github.com/Jorgen-VikingGod #
# #
# Sources: https://github.com/Jorgen-VikingGod/Qt-Frameless-Window-DarkStyle #
# #
###############################################################################
*/
#include "windowdragger.h"
#include <QPainter>
#include <QStyleOption>
WindowDragger::WindowDragger(QWidget *parent) : QWidget(parent) {
mousePressed = false;
}
void WindowDragger::mousePressEvent(QMouseEvent *event) {
mousePressed = true;
mousePos = event->globalPos();
QWidget *parent = parentWidget();
if (parent) parent = parent->parentWidget();
if (parent) wndPos = parent->pos();
}
void WindowDragger::mouseMoveEvent(QMouseEvent *event) {
QWidget *parent = parentWidget();
if (parent) parent = parent->parentWidget();
if (parent && mousePressed)
parent->move(wndPos + (event->globalPos() - mousePos));
}
void WindowDragger::mouseReleaseEvent(QMouseEvent *event) {
Q_UNUSED(event);
mousePressed = false;
}
void WindowDragger::paintEvent(QPaintEvent *event) {
Q_UNUSED(event);
QStyleOption styleOption;
styleOption.initFrom(this);
QPainter painter(this);
style()->drawPrimitive(QStyle::PE_Widget, &styleOption, &painter, this);
}
void WindowDragger::mouseDoubleClickEvent(QMouseEvent *event) {
Q_UNUSED(event);
emit doubleClicked();
}
+43
View File
@@ -0,0 +1,43 @@
/*
###############################################################################
# #
# The MIT License #
# #
# Copyright (C) 2017 by Juergen Skrotzky (JorgenVikingGod@gmail.com) #
# >> https://github.com/Jorgen-VikingGod #
# #
# Sources: https://github.com/Jorgen-VikingGod/Qt-Frameless-Window-DarkStyle #
# #
###############################################################################
*/
#ifndef WINDOWDRAGGER_H
#define WINDOWDRAGGER_H
#include <QMouseEvent>
#include <QWidget>
class WindowDragger : public QWidget {
Q_OBJECT
public:
explicit WindowDragger(QWidget *parent = Q_NULLPTR);
virtual ~WindowDragger() {}
signals:
void doubleClicked();
protected:
void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
void mouseDoubleClickEvent(QMouseEvent *event);
void paintEvent(QPaintEvent *event);
protected:
QPoint mousePos;
QPoint wndPos;
bool mousePressed;
};
#endif // WINDOWDRAGGER_H
+2
View File
@@ -0,0 +1,2 @@
## TODO
- add texturized background
@@ -0,0 +1,78 @@
{
"configurations" :
[
{
"directories" :
[
{
"build" : ".",
"jsonFile" : "directory-.-Debug-d0094a50bb2071803777.json",
"minimumCMakeVersion" :
{
"string" : "3.16"
},
"projectIndex" : 0,
"source" : ".",
"targetIndexes" :
[
0,
1,
2
]
}
],
"name" : "Debug",
"projects" :
[
{
"directoryIndexes" :
[
0
],
"name" : "QTierazon",
"targetIndexes" :
[
0,
1,
2
]
}
],
"targets" :
[
{
"directoryIndex" : 0,
"id" : "QTierazon::@6890427a1f51a3e7e1df",
"jsonFile" : "target-QTierazon-Debug-c3990ecd3b29ac789a6e.json",
"name" : "QTierazon",
"projectIndex" : 0
},
{
"directoryIndex" : 0,
"id" : "QTierazon_autogen::@6890427a1f51a3e7e1df",
"jsonFile" : "target-QTierazon_autogen-Debug-ce3a729a061ea5d565f1.json",
"name" : "QTierazon_autogen",
"projectIndex" : 0
},
{
"directoryIndex" : 0,
"id" : "QTierazon_autogen_timestamp_deps::@6890427a1f51a3e7e1df",
"jsonFile" : "target-QTierazon_autogen_timestamp_deps-Debug-dd52985c930a3a55fb29.json",
"name" : "QTierazon_autogen_timestamp_deps",
"projectIndex" : 0
}
]
}
],
"kind" : "codemodel",
"paths" :
{
"build" : "C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug",
"source" : "C:/Users/bjarn/visualStudioCode-workspace/QTierazon/QTierazon"
},
"version" :
{
"major" : 2,
"minor" : 3
}
}
@@ -0,0 +1,14 @@
{
"backtraceGraph" :
{
"commands" : [],
"files" : [],
"nodes" : []
},
"installers" : [],
"paths" :
{
"build" : ".",
"source" : "."
}
}
@@ -0,0 +1,89 @@
{
"cmake" :
{
"generator" :
{
"multiConfig" : false,
"name" : "Ninja"
},
"paths" :
{
"cmake" : "C:/Qt/Tools/CMake_64/bin/cmake.exe",
"cpack" : "C:/Qt/Tools/CMake_64/bin/cpack.exe",
"ctest" : "C:/Qt/Tools/CMake_64/bin/ctest.exe",
"root" : "C:/Qt/Tools/CMake_64/share/cmake-3.21"
},
"version" :
{
"isDirty" : false,
"major" : 3,
"minor" : 21,
"patch" : 1,
"string" : "3.21.1",
"suffix" : ""
}
},
"objects" :
[
{
"jsonFile" : "codemodel-v2-78ddd07c7ca237a7e74b.json",
"kind" : "codemodel",
"version" :
{
"major" : 2,
"minor" : 3
}
},
{
"jsonFile" : "cache-v2-d054c7657c5d4dbed6e5.json",
"kind" : "cache",
"version" :
{
"major" : 2,
"minor" : 0
}
},
{
"jsonFile" : "cmakeFiles-v1-8c71ba50232cac2dcee9.json",
"kind" : "cmakeFiles",
"version" :
{
"major" : 1,
"minor" : 0
}
}
],
"reply" :
{
"cache-v2" :
{
"jsonFile" : "cache-v2-d054c7657c5d4dbed6e5.json",
"kind" : "cache",
"version" :
{
"major" : 2,
"minor" : 0
}
},
"cmakeFiles-v1" :
{
"jsonFile" : "cmakeFiles-v1-8c71ba50232cac2dcee9.json",
"kind" : "cmakeFiles",
"version" :
{
"major" : 1,
"minor" : 0
}
},
"codemodel-v2" :
{
"jsonFile" : "codemodel-v2-78ddd07c7ca237a7e74b.json",
"kind" : "codemodel",
"version" :
{
"major" : 2,
"minor" : 3
}
}
}
}
@@ -0,0 +1,424 @@
{
"artifacts" :
[
{
"path" : "QTierazon.exe"
},
{
"path" : "QTierazon.pdb"
}
],
"backtrace" : 4,
"backtraceGraph" :
{
"commands" :
[
"add_executable",
"_qt_internal_create_executable",
"qt6_add_executable",
"qt_add_executable",
"target_link_libraries"
],
"files" :
[
"C:/Qt/6.3.1/mingw_64/lib/cmake/Qt6Core/Qt6CoreMacros.cmake",
"CMakeLists.txt"
],
"nodes" :
[
{
"file" : 1
},
{
"command" : 3,
"file" : 1,
"line" : 35,
"parent" : 0
},
{
"command" : 2,
"file" : 0,
"line" : 1125,
"parent" : 1
},
{
"command" : 1,
"file" : 0,
"line" : 525,
"parent" : 2
},
{
"command" : 0,
"file" : 0,
"line" : 561,
"parent" : 3
},
{
"command" : 4,
"file" : 1,
"line" : 57,
"parent" : 0
},
{
"command" : 4,
"file" : 0,
"line" : 526,
"parent" : 2
}
]
},
"compileGroups" :
[
{
"compileCommandFragments" :
[
{
"fragment" : "-g"
},
{
"fragment" : "-std=gnu++17"
}
],
"defines" :
[
{
"backtrace" : 6,
"define" : "MINGW_HAS_SECURE_API=1"
},
{
"backtrace" : 6,
"define" : "QT_CORE_LIB"
},
{
"backtrace" : 5,
"define" : "QT_GUI_LIB"
},
{
"backtrace" : 6,
"define" : "QT_NEEDS_QMAIN"
},
{
"backtrace" : 5,
"define" : "QT_WIDGETS_LIB"
},
{
"backtrace" : 6,
"define" : "UNICODE"
},
{
"backtrace" : 6,
"define" : "WIN32"
},
{
"backtrace" : 6,
"define" : "WIN64"
},
{
"backtrace" : 6,
"define" : "_ENABLE_EXTENDED_ALIGNED_STORAGE"
},
{
"backtrace" : 6,
"define" : "_UNICODE"
},
{
"backtrace" : 6,
"define" : "_WIN64"
}
],
"includes" :
[
{
"path" : "C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug"
},
{
"path" : "C:/Users/bjarn/visualStudioCode-workspace/QTierazon/QTierazon"
},
{
"backtrace" : 0,
"path" : "C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/QTierazon_autogen/include"
},
{
"backtrace" : 6,
"isSystem" : true,
"path" : "C:/Qt/6.3.1/mingw_64/include/QtCore"
},
{
"backtrace" : 6,
"isSystem" : true,
"path" : "C:/Qt/6.3.1/mingw_64/include"
},
{
"backtrace" : 6,
"isSystem" : true,
"path" : "C:/Qt/6.3.1/mingw_64/mkspecs/win32-g++"
},
{
"backtrace" : 5,
"isSystem" : true,
"path" : "C:/Qt/6.3.1/mingw_64/include/QtWidgets"
},
{
"backtrace" : 5,
"isSystem" : true,
"path" : "C:/Qt/6.3.1/mingw_64/include/QtGui"
}
],
"language" : "CXX",
"languageStandard" :
{
"backtraces" :
[
6,
6
],
"standard" : "17"
},
"sourceIndexes" :
[
0,
1,
2,
4,
6,
8,
12
]
}
],
"dependencies" :
[
{
"id" : "QTierazon_autogen_timestamp_deps::@6890427a1f51a3e7e1df"
},
{
"backtrace" : 0,
"id" : "QTierazon_autogen::@6890427a1f51a3e7e1df"
}
],
"id" : "QTierazon::@6890427a1f51a3e7e1df",
"link" :
{
"commandFragments" :
[
{
"fragment" : "-g",
"role" : "flags"
},
{
"fragment" : "-mwindows",
"role" : "flags"
},
{
"backtrace" : 5,
"fragment" : "C:\\Qt\\6.3.1\\mingw_64\\lib\\libQt6Widgets.a",
"role" : "libraries"
},
{
"fragment" : "C:\\Qt\\6.3.1\\mingw_64\\lib\\libQt6Gui.a",
"role" : "libraries"
},
{
"backtrace" : 6,
"fragment" : "C:\\Qt\\6.3.1\\mingw_64\\lib\\libQt6Core.a",
"role" : "libraries"
},
{
"fragment" : "-lmpr",
"role" : "libraries"
},
{
"fragment" : "-luserenv",
"role" : "libraries"
},
{
"fragment" : "-lmingw32",
"role" : "libraries"
},
{
"fragment" : "C:\\Qt\\6.3.1\\mingw_64\\lib\\libQt6EntryPoint.a",
"role" : "libraries"
},
{
"fragment" : "-lshell32",
"role" : "libraries"
},
{
"fragment" : "-ld3d11",
"role" : "libraries"
},
{
"fragment" : "-ldxgi",
"role" : "libraries"
},
{
"fragment" : "-ldxguid",
"role" : "libraries"
},
{
"fragment" : "-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32",
"role" : "libraries"
}
],
"language" : "CXX"
},
"name" : "QTierazon",
"nameOnDisk" : "QTierazon.exe",
"paths" :
{
"build" : ".",
"source" : "."
},
"sourceGroups" :
[
{
"name" : "Source Files",
"sourceIndexes" :
[
0,
1,
2,
4,
6,
8,
12
]
},
{
"name" : "Header Files",
"sourceIndexes" :
[
3,
5,
7,
9,
13,
14
]
},
{
"name" : "",
"sourceIndexes" :
[
10,
11,
15,
16
]
},
{
"name" : "CMake Rules",
"sourceIndexes" :
[
17
]
}
],
"sources" :
[
{
"backtrace" : 0,
"compileGroupIndex" : 0,
"isGenerated" : true,
"path" : "C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/QTierazon_autogen/mocs_compilation.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 4,
"compileGroupIndex" : 0,
"path" : "main.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 4,
"compileGroupIndex" : 0,
"path" : "mainfrm.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 4,
"path" : "mainfrm.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 4,
"compileGroupIndex" : 0,
"path" : "DarkStyle.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 4,
"path" : "DarkStyle.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 4,
"compileGroupIndex" : 0,
"path" : "framelesswindow.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 4,
"path" : "framelesswindow.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 4,
"compileGroupIndex" : 0,
"path" : "windowdragger.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 4,
"path" : "windowdragger.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 4,
"path" : "framelesswindow.ui",
"sourceGroupIndex" : 2
},
{
"backtrace" : 4,
"path" : "mainfrm.ui",
"sourceGroupIndex" : 2
},
{
"backtrace" : 4,
"compileGroupIndex" : 0,
"isGenerated" : true,
"path" : "C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/qrc_resources.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 0,
"isGenerated" : true,
"path" : "C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/QTierazon_autogen/include/ui_mainfrm.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 0,
"isGenerated" : true,
"path" : "C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/QTierazon_autogen/include/ui_framelesswindow.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 0,
"isGenerated" : true,
"path" : "C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/QTierazon_autogen/timestamp",
"sourceGroupIndex" : 2
},
{
"backtrace" : 0,
"path" : "resources.qrc",
"sourceGroupIndex" : 2
},
{
"backtrace" : 0,
"isGenerated" : true,
"path" : "C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/QTierazon_autogen/timestamp.rule",
"sourceGroupIndex" : 3
}
],
"type" : "EXECUTABLE"
}
@@ -0,0 +1,71 @@
{
"backtrace" : 0,
"backtraceGraph" :
{
"commands" : [],
"files" :
[
"CMakeLists.txt"
],
"nodes" :
[
{
"file" : 0
}
]
},
"dependencies" :
[
{
"id" : "QTierazon_autogen_timestamp_deps::@6890427a1f51a3e7e1df"
}
],
"id" : "QTierazon_autogen::@6890427a1f51a3e7e1df",
"isGeneratorProvided" : true,
"name" : "QTierazon_autogen",
"paths" :
{
"build" : ".",
"source" : "."
},
"sourceGroups" :
[
{
"name" : "",
"sourceIndexes" :
[
0
]
},
{
"name" : "CMake Rules",
"sourceIndexes" :
[
1,
2
]
}
],
"sources" :
[
{
"backtrace" : 0,
"isGenerated" : true,
"path" : "C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/CMakeFiles/QTierazon_autogen",
"sourceGroupIndex" : 0
},
{
"backtrace" : 0,
"isGenerated" : true,
"path" : "C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/CMakeFiles/QTierazon_autogen.rule",
"sourceGroupIndex" : 1
},
{
"backtrace" : 0,
"isGenerated" : true,
"path" : "C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/QTierazon_autogen/timestamp.rule",
"sourceGroupIndex" : 1
}
],
"type" : "UTILITY"
}
@@ -0,0 +1,58 @@
{
"backtrace" : 0,
"backtraceGraph" :
{
"commands" : [],
"files" :
[
"CMakeLists.txt"
],
"nodes" :
[
{
"file" : 0
}
]
},
"id" : "QTierazon_autogen_timestamp_deps::@6890427a1f51a3e7e1df",
"isGeneratorProvided" : true,
"name" : "QTierazon_autogen_timestamp_deps",
"paths" :
{
"build" : ".",
"source" : "."
},
"sourceGroups" :
[
{
"name" : "",
"sourceIndexes" :
[
0
]
},
{
"name" : "CMake Rules",
"sourceIndexes" :
[
1
]
}
],
"sources" :
[
{
"backtrace" : 0,
"isGenerated" : true,
"path" : "C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/CMakeFiles/QTierazon_autogen_timestamp_deps",
"sourceGroupIndex" : 0
},
{
"backtrace" : 0,
"isGenerated" : true,
"path" : "C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/CMakeFiles/QTierazon_autogen_timestamp_deps.rule",
"sourceGroupIndex" : 1
}
],
"type" : "UTILITY"
}
@@ -0,0 +1,54 @@
# ninja log v5
6 296 6778589736918648 C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/QTierazon_autogen/timestamp e87fe3baa4517139
6 296 6778589736918648 QTierazon_autogen/mocs_compilation.cpp e87fe3baa4517139
6 296 6778589736918648 QTierazon_autogen/timestamp e87fe3baa4517139
309 3049 6778589764439774 CMakeFiles/QTierazon.dir/main.cpp.obj 9b0628abdc6537e4
840 3801 6778550784342500 CMakeFiles/QTierazon.dir/QTierazon_autogen/mocs_compilation.cpp.obj 77d9dc1da87cbf2c
6 296 6778589736918648 C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/QTierazon_autogen/mocs_compilation.cpp e87fe3baa4517139
318 3046 6778589764419754 CMakeFiles/QTierazon.dir/mainfrm.cpp.obj 25d003600034f89
3320 3769 6778589771586283 QTierazon.exe 3ccb12b8341e32c
3 651 6778573527662361 build.ninja 3e3b2e75ee2ae17e
0 36 0 CMakeFiles/clean.additional baedbe210acaa455
11 274 6778080956595819 your_exe_name_autogen/mocs_compilation.cpp f45f96fb47bbf8c
36 52 0 clean 577b940aee94fbd7
11 274 6778080956595819 your_exe_name_autogen/timestamp f45f96fb47bbf8c
11 274 6778080956595819 C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/your_exe_name_autogen/timestamp f45f96fb47bbf8c
11 274 6778080956595819 C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/your_exe_name_autogen/mocs_compilation.cpp f45f96fb47bbf8c
310 388 6778573532086390 qrc_resources.cpp 708d9d1dc9f38b03
310 388 6778573532086390 C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/qrc_resources.cpp 708d9d1dc9f38b03
296 2734 6778518169861340 CMakeFiles/QTierazon.dir/windowdragger.cpp.obj dea17997c52c8f71
391 1266 6778573540881077 CMakeFiles/QTierazon.dir/qrc_resources.cpp.obj 5a58111e9aa6d685
826 3499 6778509640790887 CMakeFiles/QTierazon.dir/DarkStyle.cpp.obj fad69a26f712a7fa
313 3320 6778589767142317 CMakeFiles/QTierazon.dir/framelesswindow.cpp.obj 268c190d429a2658
6 278 6778591047270668 QTierazon_autogen/timestamp e87fe3baa4517139
6 278 6778591047270668 QTierazon_autogen/mocs_compilation.cpp e87fe3baa4517139
6 278 6778591047270668 C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/QTierazon_autogen/timestamp e87fe3baa4517139
6 278 6778591047270668 C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/QTierazon_autogen/mocs_compilation.cpp e87fe3baa4517139
291 2881 6778591073294466 CMakeFiles/QTierazon.dir/main.cpp.obj 9b0628abdc6537e4
295 2952 6778591074005119 CMakeFiles/QTierazon.dir/mainfrm.cpp.obj 25d003600034f89
298 3162 6778591076089978 CMakeFiles/QTierazon.dir/framelesswindow.cpp.obj 268c190d429a2658
3163 3608 6778591080503998 QTierazon.exe 3ccb12b8341e32c
9 289 6778591349059963 QTierazon_autogen/timestamp e87fe3baa4517139
9 289 6778591349059963 QTierazon_autogen/mocs_compilation.cpp e87fe3baa4517139
9 289 6778591349059963 C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/QTierazon_autogen/timestamp e87fe3baa4517139
9 289 6778591349059963 C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/QTierazon_autogen/mocs_compilation.cpp e87fe3baa4517139
301 2995 6778591376125933 CMakeFiles/QTierazon.dir/main.cpp.obj 9b0628abdc6537e4
309 3016 6778591376326116 CMakeFiles/QTierazon.dir/mainfrm.cpp.obj 25d003600034f89
305 3244 6778591378598191 CMakeFiles/QTierazon.dir/framelesswindow.cpp.obj 268c190d429a2658
3244 3692 6778591383035520 QTierazon.exe 3ccb12b8341e32c
7 286 6778593674293937 QTierazon_autogen/timestamp e87fe3baa4517139
7 286 6778593674293937 QTierazon_autogen/mocs_compilation.cpp e87fe3baa4517139
7 286 6778593674293937 C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/QTierazon_autogen/timestamp e87fe3baa4517139
7 286 6778593674293937 C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/QTierazon_autogen/mocs_compilation.cpp e87fe3baa4517139
298 2951 6778593700948391 CMakeFiles/QTierazon.dir/main.cpp.obj 9b0628abdc6537e4
306 2992 6778593701348758 CMakeFiles/QTierazon.dir/mainfrm.cpp.obj 25d003600034f89
302 3307 6778593704491699 CMakeFiles/QTierazon.dir/framelesswindow.cpp.obj 268c190d429a2658
3307 3748 6778593708860253 QTierazon.exe 3ccb12b8341e32c
7 287 6778594331520161 QTierazon_autogen/timestamp e87fe3baa4517139
7 287 6778594331520161 QTierazon_autogen/mocs_compilation.cpp e87fe3baa4517139
7 287 6778594331520161 C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/QTierazon_autogen/timestamp e87fe3baa4517139
7 287 6778594331520161 C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/QTierazon_autogen/mocs_compilation.cpp e87fe3baa4517139
299 2920 6778594357847712 CMakeFiles/QTierazon.dir/main.cpp.obj 9b0628abdc6537e4
306 2987 6778594358518241 CMakeFiles/QTierazon.dir/mainfrm.cpp.obj 25d003600034f89
303 3214 6778594360780381 CMakeFiles/QTierazon.dir/framelesswindow.cpp.obj 268c190d429a2658
3214 3652 6778594365118598 QTierazon.exe 3ccb12b8341e32c
@@ -0,0 +1,22 @@
# ninja log v5
6 298 6778573531205590 C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/QTierazon_autogen/timestamp e87fe3baa4517139
6 298 6778573531205590 QTierazon_autogen/mocs_compilation.cpp e87fe3baa4517139
6 298 6778573531205590 QTierazon_autogen/timestamp e87fe3baa4517139
352 2978 6778570525730633 CMakeFiles/QTierazon.dir/main.cpp.obj 9b0628abdc6537e4
840 3801 6778550784342500 CMakeFiles/QTierazon.dir/QTierazon_autogen/mocs_compilation.cpp.obj 77d9dc1da87cbf2c
6 298 6778573531205590 C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/QTierazon_autogen/mocs_compilation.cpp e87fe3baa4517139
356 3043 6778570526381219 CMakeFiles/QTierazon.dir/mainfrm.cpp.obj 25d003600034f89
3277 3720 6778570533096366 QTierazon.exe 3ccb12b8341e32c
3 651 6778573544341706 build.ninja 3e3b2e75ee2ae17e
0 36 0 CMakeFiles/clean.additional baedbe210acaa455
11 274 6778080956595819 your_exe_name_autogen/mocs_compilation.cpp f45f96fb47bbf8c
36 52 0 clean 577b940aee94fbd7
11 274 6778080956595819 your_exe_name_autogen/timestamp f45f96fb47bbf8c
11 274 6778080956595819 C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/your_exe_name_autogen/timestamp f45f96fb47bbf8c
11 274 6778080956595819 C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/your_exe_name_autogen/mocs_compilation.cpp f45f96fb47bbf8c
310 388 6778573532086390 qrc_resources.cpp 708d9d1dc9f38b03
310 388 6778573532086390 C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/qrc_resources.cpp 708d9d1dc9f38b03
296 2734 6778518169861340 CMakeFiles/QTierazon.dir/windowdragger.cpp.obj dea17997c52c8f71
391 1266 6778573540881077 CMakeFiles/QTierazon.dir/qrc_resources.cpp.obj 5a58111e9aa6d685
826 3499 6778509640790887 CMakeFiles/QTierazon.dir/DarkStyle.cpp.obj fad69a26f712a7fa
360 3277 6778570528713820 CMakeFiles/QTierazon.dir/framelesswindow.cpp.obj 268c190d429a2658
@@ -0,0 +1,45 @@
cmake_minimum_required(VERSION 3.16...3.21)
# These are part of the public API. Projects should use them to provide a
# consistent set of prefix-relative destinations.
if(NOT QT_DEPLOY_BIN_DIR)
set(QT_DEPLOY_BIN_DIR "bin")
endif()
if(NOT QT_DEPLOY_LIB_DIR)
set(QT_DEPLOY_LIB_DIR "lib")
endif()
if(NOT QT_DEPLOY_PLUGINS_DIR)
set(QT_DEPLOY_PLUGINS_DIR "plugins")
endif()
if(NOT QT_DEPLOY_QML_DIR)
set(QT_DEPLOY_QML_DIR "qml")
endif()
if(NOT QT_DEPLOY_PREFIX)
set(QT_DEPLOY_PREFIX "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}")
endif()
if(QT_DEPLOY_PREFIX STREQUAL "")
set(QT_DEPLOY_PREFIX .)
endif()
# These are internal implementation details. They may be removed at any time.
set(__QT_DEPLOY_SYSTEM_NAME "Windows")
set(__QT_DEPLOY_IS_SHARED_LIBS_BUILD "ON")
set(__QT_DEPLOY_TOOL "C:/Qt/6.3.1/mingw_64/bin/windeployqt.exe")
set(__QT_DEPLOY_IMPL_DIR "C:/Users/bjarn/visualStudioCode-workspace/QTierazon/build-QTierazon-Desktop_Qt_6_3_1_MinGW_64_bit-Debug/.qt")
set(__QT_DEPLOY_VERBOSE "")
set(__QT_CMAKE_EXPORT_NAMESPACE "Qt6")
set(__QT_DEPLOY_GENERATOR_IS_MULTI_CONFIG "0")
set(__QT_DEPLOY_ACTIVE_CONFIG "Debug")
set(__QT_NO_CREATE_VERSIONLESS_FUNCTIONS "")
set(__QT_DEFAULT_MAJOR_VERSION "6")
# Define the CMake commands to be made available during deployment.
set(__qt_deploy_support_files
"C:/Qt/6.3.1/mingw_64/lib/cmake/Qt6Core/Qt6CoreDeploySupport.cmake"
)
foreach(__qt_deploy_support_file IN LISTS __qt_deploy_support_files)
include("${__qt_deploy_support_file}")
endforeach()
unset(__qt_deploy_support_file)
unset(__qt_deploy_support_files)

Some files were not shown because too many files have changed in this diff Show More