Skip to content
Permalink
Browse files

Insert date value in attribute editor

  • Loading branch information
marco
marco committed Oct 13, 2011
1 parent f8ed801 commit 10d81dd7436d575868c40815fe2c7db2bb0bb2a4
Showing with 8 additions and 2 deletions.
  1. +8 −2 src/gui/qgsattributeeditor.cpp
@@ -762,9 +762,15 @@ bool QgsAttributeEditor::setValue( QWidget *editor, QgsVectorLayer *vl, int idx,
case QgsVectorLayer::FileName:
case QgsVectorLayer::Calendar:
{
QLineEdit *le = editor->findChild<QLineEdit *>();
if ( le == NULL )
QLineEdit* le = qobject_cast<QLineEdit*>( editor );
if( !le )
{
le = editor->findChild<QLineEdit *>();
}
if ( !le )
{
return false;
}
le->setText( value.toString() );
}
break;

0 comments on commit 10d81dd

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