Skip to content

Commit

Permalink
[QgsQuick] 'Today' button for QgsQuickDateTime widget
Browse files Browse the repository at this point in the history
To enable quickly set current date.
  • Loading branch information
vsklencar authored and wonder-sk committed Mar 21, 2019
1 parent 21207b8 commit 24bd866
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/quickgui/plugin/editor/qgsquickdatetime.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 24bd866

Please sign in to comment.