Skip to content
Permalink
Browse files
Insert date value in attribute editor
  • Loading branch information
marco authored and mach0 committed Nov 13, 2011
1 parent 083924b commit 0deb3293ec3c2f48c90aa6da51ec9d612b05caf9
Showing with 8 additions and 2 deletions.
  1. +8 −2 src/gui/qgsattributeeditor.cpp
@@ -716,9 +716,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 0deb329

Please sign in to comment.