From 0ef32da1d8168c2849a575dc54e9eef376333b2e Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 19 Jun 2018 12:22:47 +0300 Subject: [PATCH] Refactoring. Rename GetPPath() to GetPatternPath(). Changes for Mac. --HG-- branch : develop --- src/app/valentina/mainwindow.cpp | 6 +++--- src/libs/vwidgets/vcontrolpointspline.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index 6a6a32758..2742dca87 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -1911,8 +1911,8 @@ void MainWindow::SyncMeasurements() #if defined(Q_OS_MAC) void MainWindow::OpenAt(QAction *where) { - const QString path = qApp->GetPPath().left(qApp->GetPPath().indexOf(where->text())) + where->text(); - if (path == qApp->GetPPath()) + const QString path = qApp->GetPatternPath().left(qApp->GetPatternPath().indexOf(where->text())) + where->text(); + if (path == qApp->GetPatternPath()) { return; } @@ -5533,7 +5533,7 @@ void MainWindow::UpdateWindowTitle() static QIcon fileIcon = QIcon(QCoreApplication::applicationDirPath() + QLatin1String("/../Resources/Valentina.icns")); QIcon icon; - if (not qApp->GetPPath().isEmpty()) + if (not qApp->GetPatternPath().isEmpty()) { if (not isWindowModified()) { diff --git a/src/libs/vwidgets/vcontrolpointspline.cpp b/src/libs/vwidgets/vcontrolpointspline.cpp index e9c7ebedf..a1d18f63a 100644 --- a/src/libs/vwidgets/vcontrolpointspline.cpp +++ b/src/libs/vwidgets/vcontrolpointspline.cpp @@ -265,7 +265,7 @@ void VControlPointSpline::Init() controlLine = new VScaledLine(this); controlLine->SetBoldLine(false); - controlLine->setFlag(QGraphicsItem::ItemStacksBehindParent, true); + //controlLine->setFlag(QGraphicsItem::ItemStacksBehindParent, true); controlLine->setVisible(false); }