summaryrefslogtreecommitdiff
path: root/src/study/WarningPanel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/study/WarningPanel.h')
-rw-r--r--src/study/WarningPanel.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/study/WarningPanel.h b/src/study/WarningPanel.h
new file mode 100644
index 0000000..f207843
--- /dev/null
+++ b/src/study/WarningPanel.h
@@ -0,0 +1,25 @@
+#ifndef WARNING_PANEL_H
+#define WARNING_PANEL_H
+
+#include <QtWidgets>
+
+class WarningPanel: public QFrame
+{
+ Q_OBJECT
+
+public:
+ WarningPanel(QWidget* parent = 0);
+ void setText(const QString& text);
+
+private:
+ QLabel* createWarningIconLabel() const;
+ QToolButton* createWarningCloseButton() const;
+ QHBoxLayout* createWarningLayout();
+ void initPanel();
+
+private:
+ QLabel* warningLabel;
+
+};
+
+#endif