Changeset View
Changeset View
Standalone View
Standalone View
src/kcm/package/contents/ui/CardListItem.qml
Show All 13 Lines | 1 | /* | |||
---|---|---|---|---|---|
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. | ||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | import QtQuick 2.0 | 21 | import QtQuick 2.0 | ||
22 | import QtQuick.Controls 1.0 | 22 | import QtQuick.Controls 2.0 | ||
23 | import QtQuick.Layouts 1.0 | 23 | import QtQuick.Layouts 1.0 | ||
24 | 24 | | |||
25 | import org.kde.kquickcontrolsaddons 2.0 | 25 | import org.kde.kirigami 2.5 as Kirigami | ||
26 | import org.kde.plasma.private.volume 0.1 | 26 | import org.kde.plasma.private.volume 0.1 | ||
27 | 27 | | |||
28 | ColumnLayout { | 28 | ColumnLayout { | ||
29 | id: delegate | 29 | id: delegate | ||
30 | width: parent.width | 30 | width: parent.width | ||
31 | 31 | | |||
32 | RowLayout { | 32 | RowLayout { | ||
33 | QIconItem { | 33 | Kirigami.Icon { | ||
drosca: Plasma items should not be used in KCM. | |||||
34 | id: clientIcon | | |||
35 | Layout.alignment: Qt.AlignHCenter | 34 | Layout.alignment: Qt.AlignHCenter | ||
36 | width: height | 35 | width: height | ||
37 | height: nameLabel.contentHeight | 36 | height: nameLabel.contentHeight | ||
38 | icon: IconName || "audio-card" | 37 | source: IconName || "audio-card" | ||
39 | } | 38 | } | ||
40 | 39 | | |||
41 | Label { | 40 | Label { | ||
42 | id: nameLabel | 41 | id: nameLabel | ||
43 | Layout.fillWidth: true | 42 | Layout.fillWidth: true | ||
44 | text: Properties["device.description"] || Name | 43 | text: Properties["device.description"] || Name | ||
45 | elide: Text.ElideRight | 44 | elide: Text.ElideRight | ||
46 | } | 45 | } | ||
Show All 24 Lines |
Plasma items should not be used in KCM.