ListItemTwoButtons QML Type

The list item with two buttons component of Neptune 3. More...

Since: Qt 5.11
Inherits:

ListItemBasic

Properties

Signals

Detailed Description

The ListItemSwitch provides a type of a list item with two tool buttons at the right side.

See Neptune 3 UI Components and Interfaces to see more available components in Neptune 3 UI.

Example Usage

The following example uses ListItemTwoButtons:

import QtQuick 2.10
import shared.controls 1.0

Item {
    id: root
    ListView {
        model: 3
        delegate:  ListItemTwoButtons {
            Layout.fillWidth: true
            icon.name: "ic-update"
            symbolAccessoryButton1: "ic-call-contrast"
            symbolAccessoryButton2: "ic-message-contrast"
            text: "..."
            onClicked: {
                console.log("List Item Clicked");
            }
            onAccessoryButton1Clicked: {
                console.log("Accessory Button 1 Clicked");
            }
            onAccessoryButton2Clicked: {
                console.log("Accessory Button 2 Clicked");
            }
        }
    }
}

Property Documentation

accessoryButton1Checkable : bool

This property holds whether the first accessory button is checkable.

This property's default is false.


accessoryButton1Checked : bool

This property holds whether the first accessory button is checked.

This property's default is false.


accessoryButton2Checkable : bool

This property holds whether the second accessory button is checkable.

This property's default is false.


accessoryButton2Checked : bool

This property holds whether the second accessory button is checked.

This property's default is false.


symbolAccessoryButton1 : string

This property holds an icon name to be displayed on the first accessory button.


symbolAccessoryButton2 : string

This property holds an icon name to be displayed on the second accessory button.


Signal Documentation

accessoryButton1Clicked()

This signal is emitted when the first accessory button is clicked by the user.

Note: The corresponding handler is onAccessoryButton1Clicked.


accessoryButton2Clicked()

This signal is emitted when the second accessory button is clicked by the user.

Note: The corresponding handler is onAccessoryButton2Clicked.


© 2019 Luxoft Sweden AB. Documentation contributions included herein are the copyrights of their respective owners.
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.