summaryrefslogtreecommitdiff
path: root/src/modinfodialog.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-05-20 17:38:17 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-05-20 17:38:17 -0400
commit00f8cbff05c3f548baba59b0cb525205cc1d80e3 (patch)
tree706ead7a454c40f5e5981db58f0ae853426488e1 /src/modinfodialog.h
parenta2b1f6a3604d8a2e4bc47c2b91fb58e6d5b45af6 (diff)
expandable sections in the conflict tab
Diffstat (limited to 'src/modinfodialog.h')
-rw-r--r--src/modinfodialog.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/modinfodialog.h b/src/modinfodialog.h
index 66c50be5..731611d2 100644
--- a/src/modinfodialog.h
+++ b/src/modinfodialog.h
@@ -183,6 +183,25 @@ private:
};
+class ExpanderWidget
+{
+public:
+ ExpanderWidget();
+ ExpanderWidget(QToolButton* button, QWidget* content);
+
+ void set(QToolButton* button, QWidget* content, bool opened=false);
+
+ void open();
+ void close();
+ void toggle();
+ bool opened() const;
+
+private:
+ QToolButton* m_button;
+ QWidget* m_content;
+};
+
+
/**
* this is a larger dialog used to visualise information abount the mod.
* @todo this would probably a good place for a plugin-system
@@ -383,6 +402,8 @@ private:
std::map<int, int> m_RealTabPos;
+ ExpanderWidget m_overwriteExpander, m_overwrittenExpander, m_nonconflictExpander;
+
bool canHideConflictItem(const QTreeWidgetItem* item) const;
bool canUnhideConflictItem(const QTreeWidgetItem* item) const;
bool canPreviewConflictItem(const QTreeWidgetItem* item) const;