diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2009-09-30 12:30:12 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2009-09-30 12:32:43 (GMT) |
commit | 71b3a015d5f051c732646ead395e56a609cc51af (patch) | |
tree | a98820d8b224117a4bce99878bf97163c995df26 /src/gui/dialogs | |
parent | 79aee2c16479a1dff1af886a6ccc6b2776ad6537 (diff) | |
download | Qt-71b3a015d5f051c732646ead395e56a609cc51af.zip Qt-71b3a015d5f051c732646ead395e56a609cc51af.tar.gz Qt-71b3a015d5f051c732646ead395e56a609cc51af.tar.bz2 |
Be consistant between static method and regular QFileDialog contructor.
The protected constructor of QFileDialog call selectAll() on the
line edit. This constructor is only called by static methods. But the
regular constructor didn't behave the same. Now it does :D.
Task-number:QTBUG-4419
Reviewed-by:jasplin
Diffstat (limited to 'src/gui/dialogs')
-rw-r--r-- | src/gui/dialogs/qfiledialog.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/dialogs/qfiledialog.cpp b/src/gui/dialogs/qfiledialog.cpp index 14f19f2..297c900 100644 --- a/src/gui/dialogs/qfiledialog.cpp +++ b/src/gui/dialogs/qfiledialog.cpp @@ -317,6 +317,7 @@ QFileDialog::QFileDialog(QWidget *parent, Qt::WindowFlags f) { Q_D(QFileDialog); d->init(); + d->lineEdit()->selectAll(); } /*! @@ -334,6 +335,7 @@ QFileDialog::QFileDialog(QWidget *parent, { Q_D(QFileDialog); d->init(directory, filter, caption); + d->lineEdit()->selectAll(); } /*! |