added scrollbars to the about page
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user