From c9e1751c0ad9bb0f140cdf7cf24608cc86836259 Mon Sep 17 00:00:00 2001 From: Arno Date: Thu, 21 Jul 2016 17:24:23 +0200 Subject: Implement add tree in SlideDlg + others Yeah! Finalling getting the hang of recursion, I hope! Add a new Button ">>>>" to add a whole subtree. Not really useful when archiving, but very useful when selecting Slide attributes! --- mappingtreewidget.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mappingtreewidget.h') diff --git a/mappingtreewidget.h b/mappingtreewidget.h index 8ba066d..44a43e3 100644 --- a/mappingtreewidget.h +++ b/mappingtreewidget.h @@ -30,6 +30,8 @@ class MappingTreeWidget : public QWidget { public: explicit MappingTreeWidget(QWidget *parent = 0); MappingData selectedItem() const; + QList selectedTree() const; + QList selectedTreeRecursive(const QModelIndex &start) const; MappingTreeView *mappingTreeView() const { return mTree; } public slots: @@ -110,6 +112,7 @@ class MappingEditWidget : public QWidget { public slots: void addMapping(); + void addTree(); void removeMapping(); void clearMapping(); void setMappings(const QList &mappings); @@ -126,6 +129,7 @@ class MappingEditWidget : public QWidget { QPushButton *mAddMapping; QPushButton *mRemoveMapping; QPushButton *mClearMapping; + QPushButton *mAddTree; }; class MappingInputDialog : public QDialog { -- cgit v1.2.3-70-g09d2