summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-07-15 14:58:24 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-15 17:05:30 -0700
commita502958a66269d5febf3838d4ccd6e25e4b750a2 (patch)
treec3ded04a2371a70bd547b19f9b6e97de68cabef6
parentd993684fec07ccf6c3135e16286cd87e045f142c (diff)
downloadsubsurface-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>
-rw-r--r--qt-ui/modeldelegates.cpp1
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 {