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 0deb329
Showing 1 changed file with 8 additions and 2 deletions.
@@ -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.