From: Marcin Kaźmierczak Date: Thu, 23 Dec 2010 09:40:21 +0000 (+0100) Subject: first version of DictManagerWidget in qml X-Git-Url: http://vcs.maemo.org/git/?p=mdictionary;a=commitdiff_plain;h=c844de6cbe1973cb82695e1d5ea81b1388eab610 first version of DictManagerWidget in qml --- diff --git a/src/mdictionary/qml/DictManagerWidget.qml b/src/mdictionary/qml/DictManagerWidget.qml index 15b01c6..2f7c1a0 100644 --- a/src/mdictionary/qml/DictManagerWidget.qml +++ b/src/mdictionary/qml/DictManagerWidget.qml @@ -1,6 +1,76 @@ +/******************************************************************************* + + This file is part of mDictionary. + + mDictionary is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + mDictionary is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with mDictionary. If not, see . + + Copyright 2010 Comarch S.A. + +*******************************************************************************/ +/*! + author: Marcin Kaźmierczak +*/ + import Qt 4.7 Rectangle { - width: 100 - height: 62 + SystemPalette { id: myPalette; colorGroup: SystemPalette.Active } +// signal selectedRow(int nr) + + id: rectangle1 + color: myPalette.base + anchors.fill: parent + + ElementsListView{ + id: dictList + width: rectangle1.width +// height: rectangle1.height + anchors.top: parent.top + highlightResizeSpeed: 1000 + delegate: Component{ + id: dictListDelegate + Item { + width: rectangle1.width + height: typeText.height + MouseArea{ + anchors.fill: parent + onClicked: { + dictTypeList.currentIndex = number + } + onDoubleClicked: { + selectedRow(number) + } + } + Row { + //image zaznacz/odznacz + //image logo + Image { + id: logo + source: iconPath + } + Text { + id: nameText + text: name +// width: rectangle1.width + } + } + } + + } + model: dictModel + } + + //buttonki + }