mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
added scrollbars to the about page
This commit is contained in:
parent
6000b7626e
commit
d2de34914b
1 changed files with 6 additions and 1 deletions
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue