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 | clip: true | ||||
32 | | ||||
33 | // Show the frame | ||||
34 | Component.onCompleted: scrollView.background.visible = true; | ||||
31 | 35 | | |||
32 | ColumnLayout { | 36 | ColumnLayout { | ||
33 | Component.onCompleted: { | 37 | anchors.fill: parent | ||
34 | // Normal binding causes binding loops | | |||
35 | width = Qt.binding(function() { | | |||
36 | return scrollView.viewport.width; | | |||
37 | }); | | |||
38 | } | | |||
39 | 38 | | |||
40 | Header { | 39 | Header { | ||
41 | Layout.fillWidth: true | 40 | Layout.fillWidth: true | ||
42 | enabled: eventStreamView.count || sinkInputView.count | 41 | enabled: eventStreamView.count || sinkInputView.count | ||
43 | text: i18nd("kcm_pulseaudio", "Playback") | 42 | text: i18nd("kcm_pulseaudio", "Playback") | ||
44 | disabledText: i18ndc("kcm_pulseaudio", "@label", "No Applications Playing Audio") | 43 | disabledText: i18ndc("kcm_pulseaudio", "@label", "No Applications Playing Audio") | ||
45 | } | 44 | } | ||
46 | 45 | | |||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |