mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: rename MainWindow member variables
Instead of the weirdly named "information" and the inconsistent "dive_list" use the logical "mainTab" and the camel-cased "diveList", respectively. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
78e2560296
commit
068b01aef2
10 changed files with 89 additions and 89 deletions
|
@ -92,7 +92,7 @@ void TagWidget::reparse()
|
|||
* Do not show the completer when not in edit mode - basically
|
||||
* this returns when we are accepting or discarding the changes.
|
||||
*/
|
||||
if (MainWindow::instance()->information->isEditing() == false) {
|
||||
if (MainWindow::instance()->mainTab->isEditing() == false) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -186,7 +186,7 @@ void TagWidget::keyPressEvent(QKeyEvent *e)
|
|||
}
|
||||
}
|
||||
if (e->key() == Qt::Key_Tab && lastFinishedTag) { // if we already end in comma, go to next/prev field
|
||||
MainWindow::instance()->information->nextInputField(e); // by sending the key event to the MainTab widget
|
||||
MainWindow::instance()->mainTab->nextInputField(e); // by sending the key event to the MainTab widget
|
||||
} else if (e->key() == Qt::Key_Tab || e->key() == Qt::Key_Return) { // otherwise let's pretend this is a comma instead
|
||||
QKeyEvent fakeEvent(e->type(), Qt::Key_Comma, e->modifiers(), QString(","));
|
||||
keyPressEvent(&fakeEvent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue