added scrollbars to the about page

This commit is contained in:
fourtf 2018-06-06 20:04:57 +02:00
parent 6000b7626e
commit d2de34914b

View file

@ -1,6 +1,7 @@
#include "aboutpage.hpp" #include "aboutpage.hpp"
#include "util/layoutcreator.hpp" #include "util/layoutcreator.hpp"
#include "util/removescrollareabackground.hpp"
#include "widgets/helper/signallabel.hpp" #include "widgets/helper/signallabel.hpp"
#include <QFormLayout> #include <QFormLayout>
@ -20,7 +21,11 @@ AboutPage::AboutPage()
{ {
util::LayoutCreator<AboutPage> layoutCreator(this); util::LayoutCreator<AboutPage> layoutCreator(this);
auto layout = layoutCreator.emplace<QVBoxLayout>().withoutMargin(); auto scroll = layoutCreator.emplace<QScrollArea>();
auto widget = scroll.emplaceScrollAreaWidget();
util::removeScrollAreaBackground(*scroll, *widget);
auto layout = widget.setLayoutType<QVBoxLayout>();
{ {
QPixmap pixmap; QPixmap pixmap;
pixmap.load(":/images/aboutlogo.png"); pixmap.load(":/images/aboutlogo.png");