From dfa2785310e26af75c39038314d0dd1d2f19b600 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Heli=20Hyv=C3=A4ttinen?= Date: Sat, 13 Nov 2010 19:52:26 +0200 Subject: [PATCH] Small fixes --- src/kitchenalertmainwindow.cpp | 7 ++++--- src/kitchenalertmainwindow.ui | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/kitchenalertmainwindow.cpp b/src/kitchenalertmainwindow.cpp index fbc6c5d..f65a002 100644 --- a/src/kitchenalertmainwindow.cpp +++ b/src/kitchenalertmainwindow.cpp @@ -173,8 +173,9 @@ void KitchenAlertMainWindow::alert(QModelIndex indexOfAlerter) // The program is brought to front and activated when alerted - raise(); + activateWindow(); + raise(); // The alerting timer is selected ui->ComingAlertsTableView->selectionModel()->select(QItemSelection(indexOfAlerter,indexOfAlerter),QItemSelectionModel::SelectCurrent | QItemSelectionModel::Rows ); @@ -306,7 +307,7 @@ bool KitchenAlertMainWindow::event(QEvent *event) switch (event->type()) { - case QEvent::ApplicationActivate: + case QEvent::WindowActivate: model_.setUpdateViewOnChanges(true); ui->debugLabel->setText("Returned to the application!"); @@ -314,7 +315,7 @@ bool KitchenAlertMainWindow::event(QEvent *event) break; - case QEvent::ApplicationDeactivate: + case QEvent::WindowDeactivate: model_.setUpdateViewOnChanges(false); ui->debugLabel->setText(""); break; diff --git a/src/kitchenalertmainwindow.ui b/src/kitchenalertmainwindow.ui index 0b419ec..5f13826 100644 --- a/src/kitchenalertmainwindow.ui +++ b/src/kitchenalertmainwindow.ui @@ -31,8 +31,8 @@ 0 0 - 1447 - 587 + 1445 + 585 @@ -74,7 +74,7 @@ - Done + Stop -- 1.7.9.5