Changeset View
Changeset View
Standalone View
Standalone View
examples/gallery/contents/ui/gallery/ColorsGallery.qml
Show All 14 Lines | |||||
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 02110-1301, USA. | 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | import QtQuick 2.0 | 20 | import QtQuick 2.0 | ||
21 | import QtQuick.Controls 1.2 as Controls | 21 | import QtQuick.Controls 1.2 as Controls | ||
22 | import QtQuick.Layouts 1.2 | 22 | import QtQuick.Layouts 1.2 | ||
23 | import org.kde.kirigami 1.0 | 23 | import org.kde.kirigami 2.0 | ||
24 | 24 | | |||
25 | ScrollablePage { | 25 | ScrollablePage { | ||
26 | title: "Colors" | 26 | title: "Colors" | ||
27 | 27 | | |||
28 | // leftPadding: 20//Units.gridUnit | 28 | // leftPadding: 20//Units.gridUnit | ||
29 | function endsWith(subject, predicate) { | 29 | function endsWith(subject, predicate) { | ||
30 | var idx = subject.indexOf(predicate); | 30 | var idx = subject.indexOf(predicate); | ||
31 | return idx + predicate.length == subject.length; | 31 | return idx + predicate.length == subject.length; | ||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |