diff options
Diffstat (limited to 'pica-client/mainwindow.cpp')
| -rw-r--r-- | pica-client/mainwindow.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/pica-client/mainwindow.cpp b/pica-client/mainwindow.cpp index 2df04db..40b2544 100644 --- a/pica-client/mainwindow.cpp +++ b/pica-client/mainwindow.cpp @@ -26,9 +26,9 @@ MainWindow::MainWindow(QWidget *parent) : status->setMinimumHeight(36); notifications->setMinimumHeight(48); - layout->addWidget(notifications, 1, Qt::AlignTop); - layout->addWidget(bt_showhide_notifications, 0, Qt::AlignRight); layout->addWidget(contact_list, 8); + layout->addWidget(bt_showhide_notifications, 0, Qt::AlignRight); + layout->addWidget(notifications, 1, Qt::AlignBottom); layout->addWidget(status,0,Qt::AlignBottom); centralWidget()->setLayout(layout); @@ -133,5 +133,12 @@ void MainWindow::showhide_click() hide_notifications(); } +void MainWindow::AddNotification(QString &text) +{ + notifications->addItem(text); + notifications->item(notifications->count() -1) ->setForeground(QBrush(QColor(230, 10, 10, 196))); + show_notifications(); +} + |
