Small fixes
authorHeli Hyvättinen <heli.hyvattinen@kymp.net>
Sat, 13 Nov 2010 17:52:26 +0000 (19:52 +0200)
committerHeli Hyvättinen <heli@pantteri.(none)>
Sat, 13 Nov 2010 17:52:26 +0000 (19:52 +0200)
src/kitchenalertmainwindow.cpp
src/kitchenalertmainwindow.ui

index fbc6c5d..f65a002 100644 (file)
@@ -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;
index 0b419ec..5f13826 100644 (file)
@@ -31,8 +31,8 @@
       <rect>
        <x>0</x>
        <y>0</y>
-       <width>1447</width>
-       <height>587</height>
+       <width>1445</width>
+       <height>585</height>
       </rect>
      </property>
      <widget class="QWidget" name="verticalLayoutWidget">
@@ -74,7 +74,7 @@
          <item>
           <widget class="QPushButton" name="DoneButton">
            <property name="text">
-            <string>Done</string>
+            <string>Stop</string>
            </property>
           </widget>
          </item>