advotracker_qml: advotracker variant with Qt/Qml GUI
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
53
advotracker_qml/resources/pages/SqlViewPage.qml
Executable file
53
advotracker_qml/resources/pages/SqlViewPage.qml
Executable file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* 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.9
|
||||
//import QtQuick.Controls 2.1
|
||||
//import QtQuick.Layouts 1.3
|
||||
|
||||
ScrollablePage {
|
||||
id: sqlViewPage
|
||||
//width: 6400
|
||||
//height: 500
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
|
||||
ListView {
|
||||
id: sqlListView
|
||||
x: 5
|
||||
y: 25
|
||||
width: parent.width
|
||||
height: 300
|
||||
delegate: UserModelPage {}
|
||||
model: userModel
|
||||
|
||||
highlight: highlightComponent
|
||||
focus: true
|
||||
}
|
||||
|
||||
Component {
|
||||
id: highlightComponent
|
||||
|
||||
Text {
|
||||
width: ListView.view.width
|
||||
color: surfaceColor
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user