Browse Source

Rearranged QML files in the repository

Signed-off-by: Blagovest Petrov <blagovest@petrovs.info>
pull/17/head
Blagovest Petrov 4 years ago
parent
commit
07075eea01
  1. 2
      main.cpp
  2. 18
      qml.qrc
  3. 2
      ui/AboutProgram.qml
  4. 0
      ui/AudioPlayer.qml
  5. 2
      ui/MediaButton.qml
  6. 2
      ui/MenuButton.qml
  7. 2
      ui/MenuToolbar.qml
  8. 4
      ui/PgLive.qml
  9. 0
      ui/PgNews.qml
  10. 4
      ui/main.qml

2
main.cpp

@ -14,7 +14,7 @@ int main(int argc, char *argv[])
QQmlContext *context = engine.rootContext();
context->setContextProperty("tangraTray", tangratray);
const QUrl url(QStringLiteral("qrc:/main.qml"));
const QUrl url(QStringLiteral("qrc:/ui/main.qml"));
QObject::connect(&engine, &QQmlApplicationEngine::objectCreated,
&app, [url](QObject *obj, const QUrl &objUrl) {
if (!obj && url == objUrl)

18
qml.qrc

@ -1,22 +1,22 @@
<RCC>
<qresource prefix="/">
<file>main.qml</file>
<file>ui/main.qml</file>
<file>ui/MenuToolbar.qml</file>
<file>ui/MenuButton.qml</file>
<file>ui/PgLive.qml</file>
<file>ui/PgNews.qml</file>
<file>ui/AboutProgram.qml</file>
<file>ui/AudioPlayer.qml</file>
<file>ui/MediaButton.qml</file>
<file>Resources/pause-button.svg</file>
<file>Resources/logo.png</file>
<file>Resources/play-button.svg</file>
<file>Resources/menu-background.png</file>
<file>Resources/dark_leather.png</file>
<file>MenuButton.qml</file>
<file>Resources/menubtn-background.png</file>
<file>AudioPlayer.qml</file>
<file>MediaButton.qml</file>
<file>Resources/pause-button.svg</file>
<file>AboutProgram.qml</file>
<file>Resources/blago.png</file>
<file>Resources/tangra.ico</file>
<file>Resources/KellySlab-Regular.ttf</file>
<file>PgLive.qml</file>
<file>MenuToolbar.qml</file>
<file>PgNews.qml</file>
<file>Resources/news-icon.png</file>
<file>Resources/buuf-pause.png</file>
<file>Resources/buuf-play.png</file>

2
AboutProgram.qml → ui/AboutProgram.qml

@ -14,7 +14,7 @@ Dialog {
width: 100
height: 100
fillMode: Image.PreserveAspectFit
source: "Resources/blago.png"
source: "../Resources/blago.png"
}
Text {

0
AudioPlayer.qml → ui/AudioPlayer.qml

2
MediaButton.qml → ui/MediaButton.qml

@ -12,7 +12,7 @@ Item {
width: 64
anchors.centerIn: parent
fillMode: Image.PreserveAspectFit
source: isClicked ? "Resources/buuf-pause.png" : "Resources/buuf-play.png"
source: isClicked ? "../Resources/buuf-pause.png" : "../Resources/buuf-play.png"
}
}

2
MenuButton.qml → ui/MenuButton.qml

@ -10,7 +10,7 @@ Rectangle {
Image {
id: menuButtonBackground
source: "Resources/menubtn-background.png"
source: "../Resources/menubtn-background.png"
anchors.fill: parent
}

2
MenuToolbar.qml → ui/MenuToolbar.qml

@ -8,7 +8,7 @@ Item {
height: 32
Image {
source: "Resources/menu-background.png"
source: "../Resources/menu-background.png"
fillMode: Image.Tile
anchors.fill: parent

4
PgLive.qml → ui/PgLive.qml

@ -14,7 +14,7 @@ Item {
width: 260
height: 175
fillMode: Image.PreserveAspectFit
source: "Resources/logo.png"
source: "../Resources/logo.png"
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
@ -59,7 +59,7 @@ Item {
y: 259
width: 629
height: 127
source: "Resources/playbtn-frame.png"
source: "../Resources/playbtn-frame.png"
fillMode: Image.PreserveAspectFit
Text {

0
PgNews.qml → ui/PgNews.qml

4
main.qml → ui/main.qml

@ -13,7 +13,7 @@ Window {
maximumHeight: 480
flags: Qt.FramelessWindowHint
FontLoader { id: mainfont; source: "Resources/KellySlab-Regular.ttf" }
FontLoader { id: mainfont; source: "../Resources/KellySlab-Regular.ttf" }
Connections {
target: tangraTray
@ -52,7 +52,7 @@ Window {
anchors.fill: parent
visible: true
fillMode: Image.Tile
source: "Resources/dark_leather.png"
source: "../Resources/dark_leather.png"
MenuToolbar {}
Loading…
Cancel
Save