diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-07-15 14:58:24 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-15 17:05:30 -0700 |
commit | a502958a66269d5febf3838d4ccd6e25e4b750a2 (patch) | |
tree | c3ded04a2371a70bd547b19f9b6e97de68cabef6 /qt-ui | |
parent | d993684fec07ccf6c3135e16286cd87e045f142c (diff) | |
download | subsurface-a502958a66269d5febf3838d4ccd6e25e4b750a2.tar.gz |
Selects the delegate text on Cylinder edition
The text selection was not being set, bummer.
See #628
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/modeldelegates.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp index a3796e0aa..add853cce 100644 --- a/qt-ui/modeldelegates.cpp +++ b/qt-ui/modeldelegates.cpp @@ -77,6 +77,7 @@ void ComboBoxDelegate::setEditorData(QWidget *editor, const QModelIndex &index) c->setCurrentIndex(i); else c->setEditText(data); + c->lineEdit()->setSelection(0, c->lineEdit()->text().length()); } struct CurrSelected { |