advotracker_qml: advotracker variant with Qt/Qml GUI
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
49
advotracker_qml/resources/pages/UserRoleItemDelegate.qml
Executable file
49
advotracker_qml/resources/pages/UserRoleItemDelegate.qml
Executable file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* AdvoTracker - Hotline tackingtool for Advocats
|
||||
*
|
||||
* Copyright (c) 2017 Ralf Zerres <ralf.zerres@networkx.de>
|
||||
*
|
||||
* AdvoTracker is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation; either version 2.1 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* AdvoTracker 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
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with AdvoTracker; If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import QtQuick 2.0
|
||||
|
||||
Item {
|
||||
id: delegate
|
||||
width: delegate.ListView.view.width;
|
||||
//width: parent.width - parent.leftMargin - parent.rightMargin
|
||||
height: 30
|
||||
clip: true
|
||||
//anchors.margins: 4
|
||||
Row {
|
||||
anchors.margins: 4
|
||||
anchors.fill: parent
|
||||
spacing: 4;
|
||||
Text {
|
||||
text: model.id
|
||||
}
|
||||
Text {
|
||||
text: model.userRoleId
|
||||
}
|
||||
Text {
|
||||
text: model.userRoleName
|
||||
}
|
||||
Text {
|
||||
text: model.roleName
|
||||
}
|
||||
Text {
|
||||
text: model.dateChanged
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user