Restructured & Ordered everything; unused files got deleted

This commit is contained in:
Blue Fox 2023-10-14 17:09:10 +02:00
parent 0f27365b02
commit 51729a55aa
4 changed files with 49 additions and 7 deletions

View File

@ -5,6 +5,7 @@ project(Scorganizr VERSION 0.1 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Qt6 6.4 REQUIRED COMPONENTS Quick)
find_package(Qt6 COMPONENTS Core Gui Quick Qml Multimedia LinguistTools Svg REQUIRED)
qt_standard_project_setup()
@ -15,7 +16,11 @@ qt_add_executable(appScorganizr
qt_add_qml_module(appScorganizr
URI Scorganizr
VERSION 1.0
QML_FILES Main.qml SiteInConstruction.qml Icon.qml
QML_FILES
"Main.qml"
"NotesPage.qml"
"SiteInConstruction.qml"
"Icon.qml"
)
set_target_properties(appScorganizr PROPERTIES
@ -27,7 +32,7 @@ set_target_properties(appScorganizr PROPERTIES
)
target_link_libraries(appScorganizr
PRIVATE Qt6::Quick
PRIVATE Qt6::Core Qt6::Gui Qt6::Quick Qt6::Qml Qt6::Multimedia Qt6::Svg
)
install(TARGETS appScorganizr

View File

@ -1,16 +1,20 @@
import QtQuick
import QtQuick.Window
import QtQuick.Controls
import QtQuick.Controls.Material
import "." as App
ApplicationWindow {
width: Screen.width/2
height: Screen.height/2
minimumHeight: 400
minimumWidth: 400
visible: true
title: "Scorganizr"
Material.theme: Material.System
Material.accent: Material.Pink
Material.accent: Material.Blue
Page {
id: window
@ -30,8 +34,10 @@ ApplicationWindow {
anchors.fill: parent
currentIndex: tabBar.currentIndex
NotesPage {}
Repeater {
model: 5
model: 4
Pane {
width: SwipeView.view.width

31
NotesPage.qml Normal file
View File

@ -0,0 +1,31 @@
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import QtQuick.Controls.Material
Page {
id: notesPage
width: SwipeView.view.width
height: SwipeView.view.height
header: ToolBar {
background: Rectangle { color: Material.background }
RowLayout {
anchors.fill: parent
ToolButton {
id: sortButton
icon.source: `data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"><path d="M120-240v-80h240v80H120Zm0-200v-80h480v80H120Zm0-200v-80h720v80H120Z"/></svg>`
icon.color: Material.foreground
icon.height: 10
icon.width: 10
Layout.alignment: Qt.AlignRight
ToolTip.visible: pressed
ToolTip.text: "Work in progress"
}
}
}
SiteInConstruction {}
}

View File

@ -12,7 +12,7 @@ Item {
// workaround to prevent the error "Point size [...] must be greater than 0"
function getFontSize(s) {
return s === 0 ? 1 : s;
return s <= 0 ? 1 : s;
}
children: [
@ -23,7 +23,7 @@ Item {
path: parent.inDevIconDataURI
width: parent.width/5
height: width
color: "white"
color: Material.foreground
},
Text {
id: inDevText