summaryrefslogtreecommitdiffstats
path: root/mappingtreewidget.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2016-07-21 17:24:23 +0200
committerArno <arno@disconnect.de>2016-07-21 17:24:23 +0200
commitc9e1751c0ad9bb0f140cdf7cf24608cc86836259 (patch)
tree9034e3e602dab695a445078205e3baf738469f0b /mappingtreewidget.h
parentb92c026a4bf23ffdf9d797ae8d053e875f13ce4e (diff)
downloadSheMov-c9e1751c0ad9bb0f140cdf7cf24608cc86836259.tar.gz
SheMov-c9e1751c0ad9bb0f140cdf7cf24608cc86836259.tar.bz2
SheMov-c9e1751c0ad9bb0f140cdf7cf24608cc86836259.zip
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!
Diffstat (limited to 'mappingtreewidget.h')
-rw-r--r--mappingtreewidget.h4
1 files changed, 4 insertions, 0 deletions
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<MappingData> selectedTree() const;
+ QList<MappingData> 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<MappingData> &mappings);
@@ -126,6 +129,7 @@ class MappingEditWidget : public QWidget {
QPushButton *mAddMapping;
QPushButton *mRemoveMapping;
QPushButton *mClearMapping;
+ QPushButton *mAddTree;
};
class MappingInputDialog : public QDialog {