Skip to content

Commit

Permalink
fix #10408: use today/now for date/time widget by default
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jun 6, 2014
1 parent edba0d3 commit 4850111
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/editorwidgets/qgsdatetimeeditwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 4850111

Please sign in to comment.