Refactoring. Rename GetPPath() to GetPatternPath(). Changes for Mac.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-06-19 12:22:47 +03:00
parent 09e8c81d6f
commit 0ef32da1d8
2 changed files with 4 additions and 4 deletions

View File

@ -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())
{

View File

@ -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);
}