summaryrefslogtreecommitdiff
path: root/src/expanderwidget.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-09-22 15:14:53 -0400
committerGitHub <noreply@github.com>2019-09-22 15:14:53 -0400
commit5044a6cd2c7d75e2505e5abc6645fc990f343dc9 (patch)
treee06b037a1d44876a895fd5ecc47071477e52101b /src/expanderwidget.h
parentf69559fe0bd40629e66ecde6e362b73595d9bd2e (diff)
parentc1a5f2ef73f4435c08876155d4551c045d5e7594 (diff)
Merge pull request #839 from isanae/even-more-logging
Even more logging
Diffstat (limited to 'src/expanderwidget.h')
-rw-r--r--src/expanderwidget.h51
1 files changed, 0 insertions, 51 deletions
diff --git a/src/expanderwidget.h b/src/expanderwidget.h
deleted file mode 100644
index 99b2d303..00000000
--- a/src/expanderwidget.h
+++ /dev/null
@@ -1,51 +0,0 @@
-#ifndef EXPANDERWIDGET_H
-#define EXPANDERWIDGET_H
-
-#include <QToolButton>
-
-/* Takes a QToolButton and a widget and creates an expandable widget.
-**/
-class ExpanderWidget
-{
-public:
- /** empty expander, use set()
- **/
- ExpanderWidget();
-
- /** see set()
- **/
- ExpanderWidget(QToolButton* button, QWidget* content);
-
- /** @brief sets the button and content widgets to use
- * the button will be given an arrow icon, clicking it will toggle the
- * visibility of the given widget
- * @param button the button that toggles the content
- * @param content the widget that will be shown or hidden
- * @param opened initial state, defaults to closed
- **/
- void set(QToolButton* button, QWidget* content, bool opened=false);
-
- /** either opens or closes the expander depending on the current state
- **/
- void toggle();
-
- /** sets the current state of the expander
- **/
- void toggle(bool b);
-
- /** returns whether the expander is currently opened
- **/
- bool opened() const;
-
- QByteArray saveState() const;
- void restoreState(const QByteArray& a);
-
- QToolButton* button() const;
-
-private:
- QToolButton* m_button;
- QWidget* m_content;
- bool opened_;
-};
-
-#endif // EXPANDERWIDGET_H