Commit be08def9 authored by Martin Straka's avatar Martin Straka

Removed some imports and temporary code

parent ee4bdc6e
......@@ -21,9 +21,7 @@
* the two.
*/
import QtGraphicalEffects 1.0
import QtQuick 2.7
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.2
import cz.nic.mobileDatovka 1.0
......@@ -75,7 +73,6 @@ ScrollableListView {
AccessibleTextField {
id: textField
height: inputItemHeight
//maximumLength: 8
font.pointSize: defaultTextFont.font.pointSize
text: gsVal
placeholderText: gsPlacehold
......@@ -108,7 +105,7 @@ ScrollableListView {
}
}
} // Row
}
} // Column
} // Item
} // Rectangle
......
......@@ -23,9 +23,7 @@
import QtGraphicalEffects 1.0
import QtQuick 2.7
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.2
import cz.nic.mobileDatovka 1.0
ScrollableListView {
id: root
......
......@@ -22,7 +22,6 @@
*/
import QtQuick 2.7
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.2
import QtQml 2.0 // Date
import cz.nic.mobileDatovka 1.0
......@@ -55,9 +54,6 @@ Item {
userMandatoryText.visible = govFormModel.containsMandatoryUser()
fromDataBoxText.visible = govFormModel.containsBoxOwnerData()
}
Component.onCompleted: {
}
}
/* Makes date selection easier. */
......@@ -164,7 +160,7 @@ Item {
onCalendarClicked: {
var locale = Qt.locale()
var today = new Date()
var tomorow = new Date(new Date().getTime() + 24 * 60 * 60 * 1000)
//var tomorow = new Date(new Date().getTime() + 24 * 60 * 60 * 1000)
var filledDate = Date.fromLocaleDateString(locale, dateVal, "yyyy-MM-dd")
calendarDialogue.openCalendarDialogue(index, filledDate, today, "Select date", dateDescr)
}
......
......@@ -46,14 +46,10 @@ Component {
Component.onDestruction: {
statusBar.visible = false
// gov.clearGovServices()
}
GovServiceListModel {
id: govServiceModel
Component.onCompleted: {
}
}
ListSortFilterProxyModel {
......@@ -144,28 +140,15 @@ Component {
emptyList.visible = (govServiceList.count === 0)
}
onGovServiceClicked: {
if (gsInternId !== "") {
pageView.push(pageGovService, {
"pageView": pageView,
"statusBar": statusBar,
"acntName" : acntName,
"userName": userName,
"gsInternId": gsInternId,
"gsFullName": gsFullName,
"gsInstName": gsInstName
}, StackView.Immediate)
} else {
// gsInternIdSelected = gsInternId
// isds.doIsdsAction("sendGovMessage", userName)
}
}
Connections {
target: isds
onRunSendGovMessageSig: {
// if (gov.sendGovRequest(userName, gsInternIdSelected, "","","","")) {
// pageView.pop(StackView.Immediate)
// }
}
pageView.push(pageGovService, {
"pageView": pageView,
"statusBar": statusBar,
"acntName" : acntName,
"userName": userName,
"gsInternId": gsInternId,
"gsFullName": gsFullName,
"gsInstName": gsInstName
}, StackView.Immediate)
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment