Commit 5a9a1b18285122aa05247af9177dc652cd3f1036

Authored by 김태훈
1 parent e9d3dabf86
Exists in master and in 2 other branches fhd, fhd-demo

다중 요리 오류 메시지 출력 추가

Showing 1 changed file with 12 additions and 1 deletions   Show diff stats
app/gui/oven_control/multicookbook.cpp
1 1 #include "multicookbook.h"
2 2  
  3 +#include <QErrorMessage>
  4 +
3 5 namespace
4 6 {
5 7  
6   -void showError(QString message)
  8 +static QErrorMessage *errorDialog = Q_NULLPTR;
  9 +void showError(QString errorMessage)
7 10 {
  11 + if (errorDialog == NULL)
  12 + {
  13 + errorDialog = new QErrorMessage;
  14 + errorDialog->setWindowModality(Qt::ApplicationModal);
  15 + errorDialog->setGeometry(QRect(0, 426, 900, 426));
  16 + }
8 17  
  18 + errorDialog->showMessage(errorMessage);
  19 + errorDialog->exec();
9 20 }
10 21  
11 22 }
... ...