From b85e4d5f20317609d8a4277482e8bb3dac3e2dae Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 8 Apr 2015 05:46:59 +0200 Subject: NewPicsDialog: Select current item in MappingTree on change in ResultView Usability fix: When selecting a mapping in the result view, select it in the source tree, too. --- mappingtreewidget.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mappingtreewidget.h') diff --git a/mappingtreewidget.h b/mappingtreewidget.h index 63145fa..2eb1331 100644 --- a/mappingtreewidget.h +++ b/mappingtreewidget.h @@ -36,7 +36,7 @@ class MappingTreeWidget : public QWidget { void addType(); void deleteChild(); void deleteType(); - void selectPath(const QList &data); + void selectPath(const QList &data, bool reverse = true); protected: virtual void hideEvent(QHideEvent *event); @@ -45,7 +45,6 @@ class MappingTreeWidget : public QWidget { void typeChanged(QString type); void editChild(); void selectionChanged(); - //void moveChild(); void filter(); void clearFilter(); @@ -95,6 +94,9 @@ class MappingEditWidget : public QWidget { void removeMapping(); void setMappings(const QList &mappings); + private slots: + void resultMappingChanged(const QModelIndex &cur, const QModelIndex &prev); + private: MappingTreeWidget *mMappingTree; MappingTreeResultView *mMappingResult; -- cgit v1.2.3-70-g09d2