Skip to content
Permalink
Browse files

[QgsQuick] 'Today' button for QgsQuickDateTime widget

To enable quickly set current date.
  • Loading branch information
vsklencar authored and wonder-sk committed Mar 21, 2019
1 parent 21207b8 commit 24bd866496f7a6709b6dd69999c7df79499e262e
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/quickgui/plugin/editor/qgsquickdatetime.qml
@@ -169,6 +169,14 @@ Item {
}

RowLayout {

Button {
text: qsTr( "Today" )
Layout.fillWidth: true

onClicked: main.currentValue = new Date()
}

Button {
text: qsTr( "Ok" )
Layout.fillWidth: true

0 comments on commit 24bd866

Please sign in to comment.
You can’t perform that action at this time.