diff --git a/src/gui/activitywidget.cpp b/src/gui/activitywidget.cpp index a15c2f789..e0459d6ea 100644 --- a/src/gui/activitywidget.cpp +++ b/src/gui/activitywidget.cpp @@ -75,9 +75,11 @@ ActivityWidget::ActivityWidget(QWidget *parent) : // Create a widget container for the notifications. The ui file defines // a scroll area that get a widget with a layout as children - QWidget *w = new QWidget(this); - _notificationsLayout = new QVBoxLayout(this); + QWidget *w = new QWidget; + _notificationsLayout = new QVBoxLayout; w->setLayout(_notificationsLayout); + _notificationsLayout->setAlignment(Qt::AlignTop); + _ui->_notifyScroll->setAlignment(Qt::AlignTop); _ui->_notifyScroll->setWidget(w); showLabels(); diff --git a/src/gui/activitywidget.ui b/src/gui/activitywidget.ui index fefd7b3ae..79d9a963b 100644 --- a/src/gui/activitywidget.ui +++ b/src/gui/activitywidget.ui @@ -16,6 +16,12 @@ + + + 0 + 0 + + TextLabel @@ -32,6 +38,9 @@ true + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + @@ -46,6 +55,12 @@ + + + 0 + 0 + + TextLabel @@ -63,6 +78,12 @@ + + + 0 + 0 + + TextLabel diff --git a/src/gui/notificationwidget.ui b/src/gui/notificationwidget.ui index 099d11cac..7f34baab5 100644 --- a/src/gui/notificationwidget.ui +++ b/src/gui/notificationwidget.ui @@ -11,7 +11,7 @@ - + 0 0 @@ -47,7 +47,7 @@ - + 0 0 @@ -59,6 +59,12 @@ + + + 0 + 0 + + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod temporm