mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Do not display popup with modifiers
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d95856d3b2
commit
a9642d5751
1 changed files with 5 additions and 1 deletions
|
@ -469,6 +469,9 @@ void DiveLocationLineEdit::setTemporaryDiveSiteName(const QString& s)
|
||||||
|
|
||||||
model->setData(i1, i1_name );
|
model->setData(i1, i1_name );
|
||||||
proxy->invalidate();
|
proxy->invalidate();
|
||||||
|
fixPopupPosition();
|
||||||
|
if (!view->isVisible())
|
||||||
|
view->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DiveLocationLineEdit::keyPressEvent(QKeyEvent *ev)
|
void DiveLocationLineEdit::keyPressEvent(QKeyEvent *ev)
|
||||||
|
@ -482,8 +485,9 @@ void DiveLocationLineEdit::keyPressEvent(QKeyEvent *ev)
|
||||||
if(ev->key() != Qt::Key_Up && ev->key() != Qt::Key_Down) {
|
if(ev->key() != Qt::Key_Up && ev->key() != Qt::Key_Down) {
|
||||||
currType = NEW_DIVE_SITE;
|
currType = NEW_DIVE_SITE;
|
||||||
currUuid = RECENTLY_ADDED_DIVESITE;
|
currUuid = RECENTLY_ADDED_DIVESITE;
|
||||||
}
|
} else {
|
||||||
showPopup();
|
showPopup();
|
||||||
|
}
|
||||||
} else if (ev->key() == Qt::Key_Escape) {
|
} else if (ev->key() == Qt::Key_Escape) {
|
||||||
view->hide();
|
view->hide();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue