Skip to content

Commit

Permalink
fix build with Qt <4.7 (eg. Debian Lucid)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Oct 9, 2013
1 parent 15efd23 commit f49ea36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/gui/qgsrelationadddlg.cpp
Expand Up @@ -5,6 +5,12 @@ QgsRelationAddDlg::QgsRelationAddDlg( QWidget *parent ) :
QDialog( parent )
{
setupUi( this );

#if QT_VERSION >= 0x40700
mTxtRelationId->setPlaceholderText( tr( "[Generated automatically]" ) );
#else
mTxtRelationId->setToolTip( tr( "[Generated automatically]" ) );
#endif
}

void QgsRelationAddDlg::addLayers( QList< QgsVectorLayer* > layers )
Expand Down
3 changes: 0 additions & 3 deletions src/ui/qgsrelationadddlgbase.ui
Expand Up @@ -80,9 +80,6 @@
</item>
<item row="8" column="1">
<widget class="QLineEdit" name="mTxtRelationId">
<property name="placeholderText">
<string>[Generated automatically]</string>
</property>
</widget>
</item>
<item row="1" column="1">
Expand Down

0 comments on commit f49ea36

Please sign in to comment.