Changeset View
Changeset View
Standalone View
Standalone View
sidebar/package/contents/ui/SubCategoryPage.qml
Show All 10 Lines | 1 | /* | |||
---|---|---|---|---|---|
11 | Library General Public License for more details. | 11 | Library General Public License for more details. | ||
12 | 12 | | |||
13 | You should have received a copy of the GNU Library General Public License | 13 | You should have received a copy of the GNU Library General Public License | ||
14 | along with this library; see the file COPYING.LIB. If not, write to | 14 | along with this library; see the file COPYING.LIB. If not, write to | ||
15 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 15 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
16 | Boston, MA 02110-1301, USA. | 16 | Boston, MA 02110-1301, USA. | ||
17 | */ | 17 | */ | ||
18 | 18 | | |||
19 | import QtQuick 2.1 | 19 | import QtQuick 2.5 | ||
20 | import QtQuick.Controls 2.5 as QQC2 | ||||
20 | import QtQuick.Layouts 1.1 | 21 | import QtQuick.Layouts 1.1 | ||
21 | import QtQuick.Controls 1.0 as QtControls | | |||
22 | import QtQuick.Controls 2.0 as QtControls2 | | |||
23 | import org.kde.kirigami 2.3 as Kirigami | | |||
24 | 22 | | |||
23 | import org.kde.kirigami 2.5 as Kirigami | ||||
25 | 24 | | |||
26 | Kirigami.ScrollablePage { | 25 | Kirigami.ScrollablePage { | ||
27 | id: subCategoryColumn | 26 | id: subCategoryColumn | ||
28 | header: Rectangle { | 27 | header: Rectangle { | ||
29 | id: headerRect | 28 | id: headerRect | ||
30 | Kirigami.Theme.colorSet: Kirigami.Theme.Window | 29 | Kirigami.Theme.colorSet: Kirigami.Theme.Window | ||
31 | Kirigami.Theme.inherit: false | 30 | Kirigami.Theme.inherit: false | ||
32 | color: { | 31 | color: { | ||
Show All 35 Lines | 66 | color: { | |||
68 | if (headerControls.pressed) { | 67 | if (headerControls.pressed) { | ||
69 | return Kirigami.Theme.highlightedTextColor; | 68 | return Kirigami.Theme.highlightedTextColor; | ||
70 | } else { | 69 | } else { | ||
71 | return Kirigami.Theme.textColor; | 70 | return Kirigami.Theme.textColor; | ||
72 | } | 71 | } | ||
73 | } | 72 | } | ||
74 | } | 73 | } | ||
75 | 74 | | |||
76 | QtControls2.Label { | 75 | QQC2.Label { | ||
77 | Layout.fillWidth: true | 76 | Layout.fillWidth: true | ||
78 | Layout.fillHeight: true | 77 | Layout.fillHeight: true | ||
79 | 78 | | |||
80 | height: toolButtonIcon.height | 79 | height: toolButtonIcon.height | ||
81 | text: subCategoryColumn.title | 80 | text: subCategoryColumn.title | ||
82 | verticalAlignment: Text.AlignVCenter | 81 | verticalAlignment: Text.AlignVCenter | ||
83 | elide: Text.ElideRight | 82 | elide: Text.ElideRight | ||
84 | font.weight: Font.Bold | 83 | font.weight: Font.Bold | ||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |