Better code look.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-07-19 20:51:12 +03:00
parent fc7e0bb6cb
commit ce50203d57
3 changed files with 6 additions and 3 deletions

View File

@ -50,7 +50,8 @@ DialogAboutTape::DialogAboutTape(QWidget *parent)
//mApp->Settings()->GetOsSeparator() ? setLocale(QLocale::system()) : setLocale(QLocale(QLocale::C)); //mApp->Settings()->GetOsSeparator() ? setLocale(QLocale::system()) : setLocale(QLocale(QLocale::C));
RetranslateUi(); RetranslateUi();
connect(ui->pushButton_Web_Site, &QPushButton::clicked, [this](){ connect(ui->pushButton_Web_Site, &QPushButton::clicked, [this]()
{
if ( QDesktopServices::openUrl(QUrl(VER_COMPANYDOMAIN_STR)) == false) if ( QDesktopServices::openUrl(QUrl(VER_COMPANYDOMAIN_STR)) == false)
{ {
qWarning() << tr("Cannot open your default browser"); qWarning() << tr("Cannot open your default browser");

View File

@ -61,7 +61,8 @@ DialogAboutApp::DialogAboutApp(QWidget *parent) :
ui->pushButton_Web_Site->setText(tr("Web site : %1").arg(VER_COMPANYDOMAIN_STR)); ui->pushButton_Web_Site->setText(tr("Web site : %1").arg(VER_COMPANYDOMAIN_STR));
connect(ui->pushButton_Web_Site, &QPushButton::clicked, [this](){ connect(ui->pushButton_Web_Site, &QPushButton::clicked, [this]()
{
if ( QDesktopServices::openUrl(QUrl(VER_COMPANYDOMAIN_STR)) == false) if ( QDesktopServices::openUrl(QUrl(VER_COMPANYDOMAIN_STR)) == false)
{ {
qWarning() << tr("Cannot open your default browser"); qWarning() << tr("Cannot open your default browser");

View File

@ -140,7 +140,8 @@ MainWindow::MainWindow(QWidget *parent)
connect(doc, &VPattern::patternChanged, this, &MainWindow::PatternChangesWereSaved); connect(doc, &VPattern::patternChanged, this, &MainWindow::PatternChangesWereSaved);
connect(doc, &VPattern::UndoCommand, this, &MainWindow::FullParseFile); connect(doc, &VPattern::UndoCommand, this, &MainWindow::FullParseFile);
connect(doc, &VPattern::SetEnabledGUI, this, &MainWindow::SetEnabledGUI); connect(doc, &VPattern::SetEnabledGUI, this, &MainWindow::SetEnabledGUI);
connect(doc, &VPattern::CheckLayout, [this](){ connect(doc, &VPattern::CheckLayout, [this]()
{
if (pattern->DataDetails()->count() == 0) if (pattern->DataDetails()->count() == 0)
{ {
if(not ui->actionDraw->isChecked()) if(not ui->actionDraw->isChecked())