Changeset View
Changeset View
Standalone View
Standalone View
src/qml/ContentView.qml
Show All 21 Lines | |||||
22 | import QtQuick.Layouts 1.2 | 22 | import QtQuick.Layouts 1.2 | ||
23 | import QtQuick.Window 2.2 | 23 | import QtQuick.Window 2.2 | ||
24 | import org.kde.elisa 1.0 | 24 | import org.kde.elisa 1.0 | ||
25 | 25 | | |||
26 | RowLayout { | 26 | RowLayout { | ||
27 | id: contentViewContainer | 27 | id: contentViewContainer | ||
28 | spacing: 0 | 28 | spacing: 0 | ||
29 | 29 | | |||
30 | property bool showPlaylist | ||||
31 | property alias currentViewIndex: listViews.currentIndex | ||||
32 | | ||||
30 | signal toggleSearch() | 33 | signal toggleSearch() | ||
31 | 34 | | |||
32 | function goBack() { | 35 | function goBack() { | ||
33 | viewManager.goBack() | 36 | viewManager.goBack() | ||
34 | } | 37 | } | ||
35 | 38 | | |||
36 | ViewManager { | 39 | ViewManager { | ||
37 | id: viewManager | 40 | id: viewManager | ||
▲ Show 20 Lines • Show All 636 Lines • ▼ Show 20 Line(s) | 649 | State { | |||
674 | PropertyChanges { | 677 | PropertyChanges { | ||
675 | target: albumContext | 678 | target: albumContext | ||
676 | Layout.minimumWidth: contentZone.width / 2 | 679 | Layout.minimumWidth: contentZone.width / 2 | ||
677 | Layout.maximumWidth: contentZone.width / 2 | 680 | Layout.maximumWidth: contentZone.width / 2 | ||
678 | Layout.preferredWidth: contentZone.width / 2 | 681 | Layout.preferredWidth: contentZone.width / 2 | ||
679 | } | 682 | } | ||
680 | }, | 683 | }, | ||
681 | State { | 684 | State { | ||
685 | name: "browsingViewsNoPlaylist" | ||||
686 | when: listViews.currentIndex !== 0 && contentViewContainer.showPlaylist !== true | ||||
687 | extend: "browsingViews" | ||||
688 | PropertyChanges { | ||||
689 | target: mainContentView | ||||
690 | Layout.fillWidth: true | ||||
691 | Layout.minimumWidth: contentZone.width | ||||
692 | Layout.maximumWidth: contentZone.width | ||||
693 | Layout.preferredWidth: contentZone.width | ||||
694 | } | ||||
695 | PropertyChanges { | ||||
696 | target: playList | ||||
697 | Layout.minimumWidth: 0 | ||||
698 | Layout.maximumWidth: 0 | ||||
699 | Layout.preferredWidth: 0 | ||||
700 | } | ||||
701 | }, | ||||
702 | State { | ||||
682 | name: 'browsingViews' | 703 | name: 'browsingViews' | ||
683 | when: listViews.currentIndex !== 0 | 704 | when: listViews.currentIndex !== 0 | ||
684 | PropertyChanges { | 705 | PropertyChanges { | ||
685 | target: mainContentView | 706 | target: mainContentView | ||
686 | Layout.fillWidth: true | 707 | Layout.fillWidth: true | ||
687 | Layout.minimumWidth: contentZone.width * 0.66 | 708 | Layout.minimumWidth: contentZone.width * 0.66 | ||
688 | Layout.maximumWidth: contentZone.width * 0.68 | 709 | Layout.maximumWidth: contentZone.width * 0.68 | ||
689 | Layout.preferredWidth: contentZone.width * 0.68 | 710 | Layout.preferredWidth: contentZone.width * 0.68 | ||
▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines |