Changeset View
Changeset View
Standalone View
Standalone View
src/kcm/package/contents/ui/Applications.qml
Show All 15 Lines | 1 | /* | |||
---|---|---|---|---|---|
16 | GNU General Public License for more details. | 16 | GNU General Public License for more details. | ||
17 | 17 | | |||
18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
20 | */ | 20 | */ | ||
21 | 21 | | |||
22 | import QtQuick 2.0 | 22 | import QtQuick 2.0 | ||
23 | import QtQuick.Layouts 1.1 | 23 | import QtQuick.Layouts 1.1 | ||
24 | import QtQuick.Controls 1.3 | 24 | import QtQuick.Controls 2.2 | ||
25 | 25 | | |||
26 | import org.kde.plasma.private.volume 0.1 | 26 | import org.kde.plasma.private.volume 0.1 | ||
27 | 27 | | |||
28 | ScrollView { | 28 | ScrollView { | ||
29 | id: scrollView | 29 | id: scrollView | ||
30 | anchors.fill: parent | 30 | | ||
31 | contentWidth: contentLayout.width | ||||
32 | contentHeight: contentLayout.height | ||||
33 | clip: true | ||||
31 | 34 | | |||
32 | ColumnLayout { | 35 | ColumnLayout { | ||
36 | id: contentLayout | ||||
37 | | ||||
33 | Component.onCompleted: { | 38 | Component.onCompleted: { | ||
34 | // Normal binding causes binding loops | 39 | // Normal binding causes binding loops | ||
35 | width = Qt.binding(function() { | 40 | width = Qt.binding(function() { | ||
36 | return scrollView.viewport.width; | 41 | return scrollView.width; | ||
37 | }); | 42 | }); | ||
38 | } | 43 | } | ||
39 | 44 | | |||
40 | Header { | 45 | Header { | ||
41 | Layout.fillWidth: true | 46 | Layout.fillWidth: true | ||
42 | enabled: eventStreamView.count || sinkInputView.count | 47 | enabled: eventStreamView.count || sinkInputView.count | ||
43 | text: i18nd("kcm_pulseaudio", "Playback") | 48 | text: i18nd("kcm_pulseaudio", "Playback") | ||
44 | disabledText: i18ndc("kcm_pulseaudio", "@label", "No Applications Playing Audio") | 49 | disabledText: i18ndc("kcm_pulseaudio", "@label", "No Applications Playing Audio") | ||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |