mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Undo: switch to edited trip
If fields in a trip are edited, select that trip, which will display the trip in the notes-box. This is realized by hooking into the tripChanged signal in the dive-list. A layering-violation, perhaps? Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
91c33b475c
commit
7924c7dafb
2 changed files with 22 additions and 2 deletions
|
@ -16,6 +16,7 @@
|
|||
#include <QLineEdit>
|
||||
#include <QNetworkAccessManager>
|
||||
#include "qt-models/divetripmodel.h"
|
||||
#include "core/subsurface-qt/DiveListNotifier.h"
|
||||
|
||||
class DiveListView : public QTreeView {
|
||||
Q_OBJECT
|
||||
|
@ -65,6 +66,7 @@ slots:
|
|||
void diveSelectionChanged(const QVector<QModelIndex> &indexes, bool select);
|
||||
void currentDiveChanged(QModelIndex index);
|
||||
void filterFinished();
|
||||
void tripChanged(dive_trip *trip, TripField);
|
||||
private:
|
||||
bool mouseClickSelection;
|
||||
QList<int> expandedRows;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue