aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/coreplugin/welcomepagehelper.cpp10
-rw-r--r--src/plugins/coreplugin/welcomepagehelper.h12
-rw-r--r--src/plugins/welcome/welcomeplugin.cpp16
3 files changed, 22 insertions, 16 deletions
diff --git a/src/plugins/coreplugin/welcomepagehelper.cpp b/src/plugins/coreplugin/welcomepagehelper.cpp
index 2a190b547e..f1b6281d43 100644
--- a/src/plugins/coreplugin/welcomepagehelper.cpp
+++ b/src/plugins/coreplugin/welcomepagehelper.cpp
@@ -868,4 +868,14 @@ Section::Section(const QString &name, int priority, std::optional<int> maxRows)
, maxRows(maxRows)
{}
+ResizeSignallingWidget::ResizeSignallingWidget(QWidget *parent)
+ : QWidget(parent)
+{
+}
+
+void ResizeSignallingWidget::resizeEvent(QResizeEvent *event)
+{
+ emit resized(event->size(), event->oldSize());
+}
+
} // namespace Core
diff --git a/src/plugins/coreplugin/welcomepagehelper.h b/src/plugins/coreplugin/welcomepagehelper.h
index 61d57e448d..88379990d3 100644
--- a/src/plugins/coreplugin/welcomepagehelper.h
+++ b/src/plugins/coreplugin/welcomepagehelper.h
@@ -229,6 +229,18 @@ private:
QString m_delayedSearchString;
};
+class CORE_EXPORT ResizeSignallingWidget : public QWidget
+{
+ Q_OBJECT
+
+public:
+ explicit ResizeSignallingWidget(QWidget *parent = nullptr);
+ void resizeEvent(QResizeEvent *event) override;
+
+signals:
+ void resized(const QSize &size, const QSize &oldSize);
+};
+
} // namespace Core
Q_DECLARE_METATYPE(Core::ListItem *)
diff --git a/src/plugins/welcome/welcomeplugin.cpp b/src/plugins/welcome/welcomeplugin.cpp
index bfa77cc399..38df46e629 100644
--- a/src/plugins/welcome/welcomeplugin.cpp
+++ b/src/plugins/welcome/welcomeplugin.cpp
@@ -68,22 +68,6 @@ static void addWeakVerticalSpacerToLayout(QVBoxLayout *layout, int maximumSize)
layout->setStretchFactor(weakSpacer, 1);
}
-class ResizeSignallingWidget : public QWidget
-{
- Q_OBJECT
-
-public:
- void resizeEvent(QResizeEvent *event) override;
-
-signals:
- void resized(const QSize &size, const QSize &oldSize);
-};
-
-void ResizeSignallingWidget::resizeEvent(QResizeEvent *event)
-{
- emit resized(event->size(), event->oldSize());
-}
-
class WelcomeMode : public IMode
{
Q_OBJECT