From 5eaff85a60a60375a2b40630af4df18e312d07fc Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 22 Jun 2021 16:38:12 +0300 Subject: [PATCH] Add link to our shop. --- src/app/valentina/mainwindow.cpp | 5 +++++ src/app/valentina/mainwindow.ui | 22 ++++++++++++++-------- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index cd1595834..5083b153e 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -4917,6 +4917,11 @@ void MainWindow::CreateActions() qCDebug(vMainWindow, "Reporting bug"); QDesktopServices::openUrl(QUrl(QStringLiteral("https://gitlab.com/smart-pattern/valentina/issues/new"))); }); + connect(ui->actionShop, &QAction::triggered, this, []() + { + qCDebug(vMainWindow, "Open shop"); + QDesktopServices::openUrl(QUrl(QStringLiteral("https://smart-pattern.com.ua/catalogue/"))); + }); connect(ui->actionLast_tool, &QAction::triggered, this, &MainWindow::LastUsedTool); diff --git a/src/app/valentina/mainwindow.ui b/src/app/valentina/mainwindow.ui index 0a78e70ba..ca14002f7 100644 --- a/src/app/valentina/mainwindow.ui +++ b/src/app/valentina/mainwindow.ui @@ -372,7 +372,7 @@ 0 0 - 104 + 140 108 @@ -481,7 +481,7 @@ 0 0 - 104 + 126 243 @@ -746,7 +746,7 @@ 0 0 - 104 + 126 282 @@ -1037,7 +1037,7 @@ 0 0 - 98 + 140 102 @@ -1120,7 +1120,7 @@ 0 0 - 104 + 126 192 @@ -1324,7 +1324,7 @@ 0 0 - 104 + 126 237 @@ -1589,8 +1589,8 @@ 0 0 - 104 - 57 + 140 + 168 @@ -1728,6 +1728,7 @@ &Help + @@ -3026,6 +3027,11 @@ Create or edit a watermark + + + Shop + +