Changeset View
Changeset View
Standalone View
Standalone View
src/controls/ListSectionHeader.qml
Show All 13 Lines | |||||
14 | * You should have received a copy of the GNU Library General Public | 14 | * You should have received a copy of the GNU Library General Public | ||
15 | * License along with this program; if not, write to the | 15 | * License along with this program; if not, write to the | ||
16 | * Free Software Foundation, Inc., | 16 | * Free Software Foundation, Inc., | ||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. | 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | import QtQuick 2.5 | 20 | import QtQuick 2.5 | ||
21 | import QtQuick.Layouts 1.2 | 21 | import QtQuick.Layouts 1.2 | ||
22 | import QtQuick.Controls 2.5 as QQC2 | 22 | import QtQuick.Controls 2.12 as QQC2 | ||
23 | import org.kde.kirigami 2.10 | 23 | import org.kde.kirigami 2.10 | ||
24 | 24 | | |||
25 | /** | 25 | /** | ||
26 | * A section delegate for the primitive ListView component. | 26 | * A section delegate for the primitive ListView component. | ||
27 | * | 27 | * | ||
28 | * It's intended to make all listviews look coherent. | 28 | * It's intended to make all listviews look coherent. | ||
29 | * | 29 | * | ||
30 | * Example usage: | 30 | * Example usage: | ||
31 | * @code | 31 | * @code | ||
32 | * import QtQuick 2.5 | 32 | * import QtQuick 2.5 | ||
33 | * import QtQuick.Controls 2.5 as QQC2 | 33 | * import QtQuick.Controls 2.12 as QQC2 | ||
34 | * | 34 | * | ||
35 | * import org.kde.kirigami 2.10 as Kirigami | 35 | * import org.kde.kirigami 2.10 as Kirigami | ||
36 | * | 36 | * | ||
37 | * ListView { | 37 | * ListView { | ||
38 | * [...] | 38 | * [...] | ||
39 | * section.delegate: Kirigami.ListSectionHeader { | 39 | * section.delegate: Kirigami.ListSectionHeader { | ||
40 | * label: section | 40 | * label: section | ||
41 | * | 41 | * | ||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |