diff options
Diffstat (limited to 'src/modinfodialog.h')
| -rw-r--r-- | src/modinfodialog.h | 21 |
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;
|
