Skip to content
Permalink
Browse files

fix #10408: use today/now for date/time widget by default

  • Loading branch information
3nids committed Jun 6, 2014
1 parent edba0d3 commit 485011105cf3ee1b712350ba1c244f7c9cddaec9
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/gui/editorwidgets/qgsdatetimeeditwrapper.cpp
@@ -32,7 +32,9 @@ QgsDateTimeEditWrapper::QgsDateTimeEditWrapper( QgsVectorLayer* vl, int fieldIdx

QWidget *QgsDateTimeEditWrapper::createWidget( QWidget *parent )
{
return new QDateTimeEdit( parent );
QDateTimeEdit* widget = new QDateTimeEdit( parent );
widget->setDateTime( QDateTime::currentDateTime() );
return widget;
}

void QgsDateTimeEditWrapper::initWidget( QWidget *editor )

0 comments on commit 4850111

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