Commit b1cdd068 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Put the hello widget in a scroller

So it doesn't affect the minimum width of the main window.

BUG:408504
parent 67702d3e
...@@ -61,6 +61,7 @@ ...@@ -61,6 +61,7 @@
#include <QScreen> #include <QScreen>
#include <QAction> #include <QAction>
#include <QWindow> #include <QWindow>
#include <QScrollArea>
#include <kactioncollection.h> #include <kactioncollection.h>
#include <kactionmenu.h> #include <kactionmenu.h>
...@@ -185,7 +186,13 @@ public: ...@@ -185,7 +186,13 @@ public:
{ {
if (id.isNull()) this->id = QUuid::createUuid(); if (id.isNull()) this->id = QUuid::createUuid();
widgetStack->addWidget(welcomePage); welcomeScroller = new QScrollArea();
welcomeScroller->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
welcomeScroller->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
welcomeScroller->setWidget(welcomePage);
welcomeScroller->setWidgetResizable(true);
widgetStack->addWidget(welcomeScroller);
widgetStack->addWidget(mdiArea); widgetStack->addWidget(mdiArea);
mdiArea->setTabsMovable(true); mdiArea->setTabsMovable(true);
mdiArea->setActivationOrder(QMdiArea::ActivationHistoryOrder); mdiArea->setActivationOrder(QMdiArea::ActivationHistoryOrder);
...@@ -256,6 +263,7 @@ public: ...@@ -256,6 +263,7 @@ public:
Digikam::ThemeManager *themeManager {0}; Digikam::ThemeManager *themeManager {0};
QScrollArea *welcomeScroller {0};
KisWelcomePageWidget *welcomePage {0}; KisWelcomePageWidget *welcomePage {0};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment