Changeset View
Changeset View
Standalone View
Standalone View
src/kcm/package/contents/ui/DeviceListItem.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 | | ||||
27 | import org.kde.plasma.private.volume 0.1 | 26 | import org.kde.plasma.private.volume 0.1 | ||
28 | 27 | | |||
29 | ColumnLayout { | 28 | ColumnLayout { | ||
30 | id: delegate | 29 | id: delegate | ||
31 | width: parent.width | 30 | width: parent.width | ||
32 | 31 | | |||
33 | RowLayout { | 32 | RowLayout { | ||
34 | QIconItem { | 33 | Kirigami.Icon { | ||
34 | Layout.alignment: Qt.AlignHCenter | ||||
35 | width: height | 35 | width: height | ||
36 | height: inputText.height | 36 | height: inputText.height | ||
37 | icon: IconName || "audio-card" | 37 | source: IconName || "audio-card" | ||
38 | } | 38 | } | ||
39 | 39 | | |||
40 | Label { | 40 | Label { | ||
41 | id: inputText | 41 | id: inputText | ||
42 | Layout.fillWidth: true | 42 | Layout.fillWidth: true | ||
43 | elide: Text.ElideRight | 43 | elide: Text.ElideRight | ||
44 | text: Description | 44 | text: Description | ||
45 | } | 45 | } | ||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |