Better code look.
--HG-- branch : develop
This commit is contained in:
parent
fc7e0bb6cb
commit
ce50203d57
|
@ -50,7 +50,8 @@ DialogAboutTape::DialogAboutTape(QWidget *parent)
|
|||
//mApp->Settings()->GetOsSeparator() ? setLocale(QLocale::system()) : setLocale(QLocale(QLocale::C));
|
||||
|
||||
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)
|
||||
{
|
||||
qWarning() << tr("Cannot open your default browser");
|
||||
|
|
|
@ -61,7 +61,8 @@ DialogAboutApp::DialogAboutApp(QWidget *parent) :
|
|||
|
||||
|
||||
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)
|
||||
{
|
||||
qWarning() << tr("Cannot open your default browser");
|
||||
|
|
|
@ -140,7 +140,8 @@ MainWindow::MainWindow(QWidget *parent)
|
|||
connect(doc, &VPattern::patternChanged, this, &MainWindow::PatternChangesWereSaved);
|
||||
connect(doc, &VPattern::UndoCommand, this, &MainWindow::FullParseFile);
|
||||
connect(doc, &VPattern::SetEnabledGUI, this, &MainWindow::SetEnabledGUI);
|
||||
connect(doc, &VPattern::CheckLayout, [this](){
|
||||
connect(doc, &VPattern::CheckLayout, [this]()
|
||||
{
|
||||
if (pattern->DataDetails()->count() == 0)
|
||||
{
|
||||
if(not ui->actionDraw->isChecked())
|
||||
|
|
Loading…
Reference in New Issue
Block a user