From b4ddf51fade6979b7d8e476ee11ff4c7dc875e20 Mon Sep 17 00:00:00 2001 From: Joachim Wuttke <j.wuttke@fz-juelich.de> Date: Mon, 27 Nov 2023 09:19:42 +0100 Subject: [PATCH] rm unused caution header --- GUI/View/Info/CautionSign.cpp | 11 ----------- GUI/View/Info/CautionSign.h | 5 ----- 2 files changed, 16 deletions(-) diff --git a/GUI/View/Info/CautionSign.cpp b/GUI/View/Info/CautionSign.cpp index 6b459ba1889..323e26d6afd 100644 --- a/GUI/View/Info/CautionSign.cpp +++ b/GUI/View/Info/CautionSign.cpp @@ -29,7 +29,6 @@ const int ypos_offset = 40; CautionSign::CautionSign(QWidget* parent) : QObject(parent) - , m_caution_header("Houston, we have a problem.") , m_cautionWidget(nullptr) , m_area(nullptr) , m_clear_just_had_happened(false) @@ -49,11 +48,6 @@ void CautionSign::clear() QTimer::singleShot(10, this, [this]() { m_clear_just_had_happened = false; }); } -void CautionSign::setCautionHeader(const QString& cautionHeader) -{ - m_caution_header = cautionHeader; -} - //! Shows caution sign on the screen. If clear of previous caution sign had happened just //! few msec ago, make a small delay, to stress its reapearance. @@ -83,11 +77,6 @@ void CautionSign::setArea(QWidget* area) m_area->installEventFilter(this); } -bool CautionSign::isShown() const -{ - return m_cautionWidget != nullptr; -} - bool CautionSign::eventFilter(QObject* obj, QEvent* event) { if (event->type() == QEvent::Resize) diff --git a/GUI/View/Info/CautionSign.h b/GUI/View/Info/CautionSign.h index 2fd3cd76a9a..04423140532 100644 --- a/GUI/View/Info/CautionSign.h +++ b/GUI/View/Info/CautionSign.h @@ -29,14 +29,10 @@ public: void clear(); - void setCautionHeader(const QString& cautionHeader); - void setCautionMessage(const QString& cautionMessage); void setArea(QWidget* area); - bool isShown() const; - protected: bool eventFilter(QObject* obj, QEvent* event) override; @@ -44,7 +40,6 @@ private: void updateLabelGeometry(); QPoint positionForCautionSign() const; - QString m_caution_header; QString m_caution_message; CautionSignWidget* m_cautionWidget; QWidget* m_area; -- GitLab