From 6defa93ae313976e73b403c8d855f247793eeba5 Mon Sep 17 00:00:00 2001 From: byloveletter Date: Wed, 19 Apr 2017 16:52:04 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=90=EB=9F=AC=20=ED=8C=9D=EC=97=85=20?= =?UTF-8?q?=EB=94=94=EC=9E=90=EC=9D=B8=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 고객사 디자인 적용 --- app/gui/oven_control/errorpopupdlg.cpp | 10 +++--- app/gui/oven_control/errorpopupdlg.h | 4 +-- app/gui/oven_control/errorpopupdlg.ui | 61 ++++++++++++++++++++-------------- 3 files changed, 44 insertions(+), 31 deletions(-) diff --git a/app/gui/oven_control/errorpopupdlg.cpp b/app/gui/oven_control/errorpopupdlg.cpp index ff9f892..be00abc 100644 --- a/app/gui/oven_control/errorpopupdlg.cpp +++ b/app/gui/oven_control/errorpopupdlg.cpp @@ -1,16 +1,18 @@ #include "errorpopupdlg.h" #include "ui_errorpopupdlg.h" -errorPopupDlg::errorPopupDlg(QWidget *parent, const QString &MsgDesc) : +errorPopupDlg::errorPopupDlg(QWidget *parent, const QString &MsgDesc, const QString &MsgTitle) : QDialog(parent), ui(new Ui::errorPopupDlg) { ui->setupUi(this); - this->setAttribute(Qt::WA_TranslucentBackground); + this->setAttribute( Qt::WA_TranslucentBackground); + this->setAttribute( Qt::WA_DeleteOnClose); this->setWindowFlags(Qt::FramelessWindowHint); ui->centralwidget->setWindowFlags(Qt::FramelessWindowHint); ui->ctrlWarnDescription->setText(MsgDesc); + ui->ctrlWarnTitle->setText(MsgTitle); } errorPopupDlg::~errorPopupDlg() @@ -18,7 +20,7 @@ errorPopupDlg::~errorPopupDlg() delete ui; } -void errorPopupDlg::on_ctrlOkBtn_released() +void errorPopupDlg::on_ctrlOkBtn_clicked() { - deleteLater(); + close(); } diff --git a/app/gui/oven_control/errorpopupdlg.h b/app/gui/oven_control/errorpopupdlg.h index 008f904..1dc8b16 100644 --- a/app/gui/oven_control/errorpopupdlg.h +++ b/app/gui/oven_control/errorpopupdlg.h @@ -12,11 +12,11 @@ class errorPopupDlg : public QDialog Q_OBJECT public: - explicit errorPopupDlg(QWidget *parent = 0, const QString &MsgDesc=0); + explicit errorPopupDlg(QWidget *parent = 0, const QString &MsgDesc=0, const QString &MsgTitle=0); ~errorPopupDlg(); private slots: - void on_ctrlOkBtn_released(); + void on_ctrlOkBtn_clicked(); private: Ui::errorPopupDlg *ui; diff --git a/app/gui/oven_control/errorpopupdlg.ui b/app/gui/oven_control/errorpopupdlg.ui index 7903be1..986a9e8 100644 --- a/app/gui/oven_control/errorpopupdlg.ui +++ b/app/gui/oven_control/errorpopupdlg.ui @@ -14,18 +14,17 @@ Dialog - #centralwidget { background-image: url(:/images/background/popup/503.png); -border-color: rgb(255,255,255); -border-width: 2px; -border-style: solid;} + #centralwidget { background-image: url(:/images/background/popup/error.png); +background-color: rgba(0, 0, 0, 255); +} - 0 - 510 - 900 - 503 + 21 + 446 + 858 + 984 @@ -34,10 +33,10 @@ border-style: solid;} - 374 - 370 - 152 - 70 + 0 + 730 + 858 + 252 @@ -51,11 +50,14 @@ border-style: solid;} 10 75 true + true - QPushButton {border-image: url(:/images/button/152.png);} -QPushButton::pressed {border-image: url(:/images/button/152_ov.png);} + QPushButton {border : none; +color : white; +} +QPushButton::pressed {color : yellow} QPushButton { text-align:center;} @@ -66,9 +68,9 @@ QPushButton { text-align:center;} 0 - 120 - 901 - 201 + 230 + 858 + 521 @@ -85,15 +87,21 @@ QPushButton { text-align:center;} TextLabel - Qt::AlignCenter + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + + + true + + + 40 - + - 40 - 5 - 861 + 0 + 100 + 858 51 @@ -117,9 +125,9 @@ QPushButton { text-align:center;} - 350 - 6 - 61 + 0 + 30 + 858 51 @@ -129,6 +137,9 @@ QPushButton { text-align:center;} :/images/symbol/warning.png + + Qt::AlignCenter + -- 2.1.4