mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
d993684fec
commit
a502958a66
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue