From a502958a66269d5febf3838d4ccd6e25e4b750a2 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 15 Jul 2014 14:58:24 -0300 Subject: Selects the delegate text on Cylinder edition The text selection was not being set, bummer. See #628 Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/modeldelegates.cpp | 1 + 1 file changed, 1 insertion(+) 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 { -- cgit v1.2.3-70-g09d2