add debug flug

This commit is contained in:
arcan1s
2014-07-10 09:44:23 +04:00
parent 2bf1d0f78e
commit 028546540c
14 changed files with 113 additions and 86 deletions

View File

@ -21,12 +21,13 @@
#include <QDebug>
ErrorWindow::ErrorWindow(QWidget *parent, const int messageNumber)
ErrorWindow::ErrorWindow(QWidget *parent, const bool debugCmd, const int messageNumber)
: QMainWindow(parent),
debug(debugCmd),
ui(new Ui::ErrorWindow)
{
ui->setupUi(this);
qDebug() << "[ErrorWindow]" << "[ErrorWindow]" << ":" << "Initializate with error code" << messageNumber;
if (debug) qDebug() << "[ErrorWindow]" << "[ErrorWindow]" << ":" << "Initializate with error code" << messageNumber;
setMessage(messageNumber);
}