Skip to content

Commit 954e77e

Browse files
DelazJnyalldawson
authored andcommittedJun 16, 2019
Add tooltip to file selector widget
to avoid people trying to directly save files in installation folder
1 parent 0389ebe commit 954e77e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/gui/qgsfilewidget.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,13 @@ QgsFileWidget::QgsFileWidget( QWidget *parent )
5555
// otherwise, use the traditional QLineEdit subclass
5656
mLineEdit = new QgsFileDropEdit( this );
5757
mLineEdit->setDragEnabled( true );
58+
mLineEdit->setToolTip( tr( "Full path to the file(s), including name and extension" ) );
5859
connect( mLineEdit, &QLineEdit::textChanged, this, &QgsFileWidget::textEdited );
5960
mLayout->addWidget( mLineEdit );
6061

6162
mFileWidgetButton = new QToolButton( this );
6263
mFileWidgetButton->setText( QChar( 0x2026 ) );
64+
mFileWidgetButton->setToolTip( tr( "Browse" ) );
6365
connect( mFileWidgetButton, &QAbstractButton::clicked, this, &QgsFileWidget::openFileDialog );
6466
mLayout->addWidget( mFileWidgetButton );
6567

0 commit comments

Comments
 (0)
Please sign in to comment.