Restructured & Ordered everything; unused files got deleted
This commit is contained in:
parent
0f27365b02
commit
51729a55aa
@ -5,6 +5,7 @@ project(Scorganizr VERSION 0.1 LANGUAGES CXX)
|
|||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
find_package(Qt6 6.4 REQUIRED COMPONENTS Quick)
|
find_package(Qt6 6.4 REQUIRED COMPONENTS Quick)
|
||||||
|
find_package(Qt6 COMPONENTS Core Gui Quick Qml Multimedia LinguistTools Svg REQUIRED)
|
||||||
|
|
||||||
qt_standard_project_setup()
|
qt_standard_project_setup()
|
||||||
|
|
||||||
@ -15,7 +16,11 @@ qt_add_executable(appScorganizr
|
|||||||
qt_add_qml_module(appScorganizr
|
qt_add_qml_module(appScorganizr
|
||||||
URI Scorganizr
|
URI Scorganizr
|
||||||
VERSION 1.0
|
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
|
set_target_properties(appScorganizr PROPERTIES
|
||||||
@ -27,7 +32,7 @@ set_target_properties(appScorganizr PROPERTIES
|
|||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(appScorganizr
|
target_link_libraries(appScorganizr
|
||||||
PRIVATE Qt6::Quick
|
PRIVATE Qt6::Core Qt6::Gui Qt6::Quick Qt6::Qml Qt6::Multimedia Qt6::Svg
|
||||||
)
|
)
|
||||||
|
|
||||||
install(TARGETS appScorganizr
|
install(TARGETS appScorganizr
|
||||||
|
12
Main.qml
12
Main.qml
@ -1,16 +1,20 @@
|
|||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Window
|
import QtQuick.Window
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Controls.Material
|
import QtQuick.Controls.Material
|
||||||
|
|
||||||
|
import "." as App
|
||||||
|
|
||||||
|
|
||||||
ApplicationWindow {
|
ApplicationWindow {
|
||||||
width: Screen.width/2
|
width: Screen.width/2
|
||||||
height: Screen.height/2
|
height: Screen.height/2
|
||||||
|
minimumHeight: 400
|
||||||
|
minimumWidth: 400
|
||||||
visible: true
|
visible: true
|
||||||
title: "Scorganizr"
|
title: "Scorganizr"
|
||||||
|
|
||||||
Material.theme: Material.System
|
Material.theme: Material.System
|
||||||
Material.accent: Material.Pink
|
Material.accent: Material.Blue
|
||||||
|
|
||||||
Page {
|
Page {
|
||||||
id: window
|
id: window
|
||||||
@ -30,8 +34,10 @@ ApplicationWindow {
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
currentIndex: tabBar.currentIndex
|
currentIndex: tabBar.currentIndex
|
||||||
|
|
||||||
|
NotesPage {}
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
model: 5
|
model: 4
|
||||||
|
|
||||||
Pane {
|
Pane {
|
||||||
width: SwipeView.view.width
|
width: SwipeView.view.width
|
||||||
|
31
NotesPage.qml
Normal file
31
NotesPage.qml
Normal 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 {}
|
||||||
|
}
|
@ -12,7 +12,7 @@ Item {
|
|||||||
|
|
||||||
// workaround to prevent the error "Point size [...] must be greater than 0"
|
// workaround to prevent the error "Point size [...] must be greater than 0"
|
||||||
function getFontSize(s) {
|
function getFontSize(s) {
|
||||||
return s === 0 ? 1 : s;
|
return s <= 0 ? 1 : s;
|
||||||
}
|
}
|
||||||
|
|
||||||
children: [
|
children: [
|
||||||
@ -23,7 +23,7 @@ Item {
|
|||||||
path: parent.inDevIconDataURI
|
path: parent.inDevIconDataURI
|
||||||
width: parent.width/5
|
width: parent.width/5
|
||||||
height: width
|
height: width
|
||||||
color: "white"
|
color: Material.foreground
|
||||||
},
|
},
|
||||||
Text {
|
Text {
|
||||||
id: inDevText
|
id: inDevText
|
||||||
|
Loading…
Reference in New Issue
Block a user