diff --git a/native/Assets/Images/Boygenius_-_the_record.jpg b/native/Assets/Images/Boygenius_-_the_record.jpg new file mode 100644 index 0000000..1309325 Binary files /dev/null and b/native/Assets/Images/Boygenius_-_the_record.jpg differ diff --git a/native/CMakeLists.txt b/native/CMakeLists.txt index e53be37..51bdbef 100644 --- a/native/CMakeLists.txt +++ b/native/CMakeLists.txt @@ -17,9 +17,9 @@ qt_add_qml_module(alisa VERSION 1.0 QML_FILES Main.qml - Data.qml RESOURCES + Assets/Images/Boygenius_-_the_record.jpg Assets/Icons/turbo.svg ) diff --git a/native/Data.qml b/native/Data.qml deleted file mode 100644 index f98527d..0000000 --- a/native/Data.qml +++ /dev/null @@ -1,16 +0,0 @@ -import QtQuick - -ListModel { - ListElement { - name: "Bill Smith" - number: "555 3264" - } - ListElement { - name: "John Brown" - number: "555 8426" - } - ListElement { - name: "Sam Wise" - number: "555 0473" - } -} diff --git a/native/Main.qml b/native/Main.qml index 8d709b7..b4741a3 100644 --- a/native/Main.qml +++ b/native/Main.qml @@ -26,28 +26,9 @@ Window { left: parent.left right: parent.right } - height: 400 + height: 50 border.width: 5 border.color: getColors().accent color: getColors().midlight - - Component { - id: contactDelegate - Item { - width: 180; height: 40 - Column { - Text { text: 'Name: ' + name } - Text { text: 'Number: ' + number } - } - } - } - - ListView { - anchors.fill: parent - model: Data {} - delegate: contactDelegate - highlight: Rectangle { color: getColors().highlight; radius: 5 } - focus: true - } } }