diff options
| author | me_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac> | 2013-04-13 21:49:33 +0000 |
|---|---|---|
| committer | me_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac> | 2013-04-13 21:49:33 +0000 |
| commit | dca2bef4e32e631c2eabc387261b4be680016095 (patch) | |
| tree | e86b72543d0738633abc94c5ef9607bb757422a6 /pica-client/mainwindow.cpp | |
| parent | 5c2175f675751f63ffa47ffde156620cc6f77abd (diff) | |
| download | pica-pica-dca2bef4e32e631c2eabc387261b4be680016095.tar.gz pica-pica-dca2bef4e32e631c2eabc387261b4be680016095.zip | |
notifications about protocol version incompatibility implemented
git-svn-id: svn://localhost/project_picapica/trunk@236 fb96df88-216d-11de-830c-f3023f12d8ac
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(); +} + |
