From 1fdeb5deddefcb49ebdef90c852d2a7b3bd91e50 Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 27 Dec 2017 19:17:10 +0100 Subject: Improve archiving pictures Specifically editing mappings. Select and show the source when selecting a mapping result. I know I worked on this a while ago, but never got it right. IIRC I fiddled around with paths and recursion, but that was way too complicated. Just move down the source tree. Fuck recursion :) --- mappingtreewidget.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mappingtreewidget.h') diff --git a/mappingtreewidget.h b/mappingtreewidget.h index 44a43e3..baf9fb1 100644 --- a/mappingtreewidget.h +++ b/mappingtreewidget.h @@ -33,6 +33,8 @@ class MappingTreeWidget : public QWidget { QList selectedTree() const; QList selectedTreeRecursive(const QModelIndex &start) const; MappingTreeView *mappingTreeView() const { return mTree; } + MappingTreeModel *mappingTreeModel() const { return mModel; } + MappingTreeProxy *mappingTreeProxy() const { return mProxy; } public slots: void addChild(); @@ -121,6 +123,7 @@ class MappingEditWidget : public QWidget { void shiftFocusMappings(); void saveMappings(QString where); void loadMappings(QString from); + void resultSelectionChanged(const QModelIndex ¤t, const QModelIndex &previous); private: MappingTreeWidget *mMappingTree; -- cgit v1.2.3-70-g09d2