Refactoring. Rename GetPPath() to GetPatternPath(). Changes for Mac.
--HG-- branch : develop
This commit is contained in:
parent
09e8c81d6f
commit
0ef32da1d8
|
@ -1911,8 +1911,8 @@ void MainWindow::SyncMeasurements()
|
||||||
#if defined(Q_OS_MAC)
|
#if defined(Q_OS_MAC)
|
||||||
void MainWindow::OpenAt(QAction *where)
|
void MainWindow::OpenAt(QAction *where)
|
||||||
{
|
{
|
||||||
const QString path = qApp->GetPPath().left(qApp->GetPPath().indexOf(where->text())) + where->text();
|
const QString path = qApp->GetPatternPath().left(qApp->GetPatternPath().indexOf(where->text())) + where->text();
|
||||||
if (path == qApp->GetPPath())
|
if (path == qApp->GetPatternPath())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -5533,7 +5533,7 @@ void MainWindow::UpdateWindowTitle()
|
||||||
static QIcon fileIcon = QIcon(QCoreApplication::applicationDirPath() +
|
static QIcon fileIcon = QIcon(QCoreApplication::applicationDirPath() +
|
||||||
QLatin1String("/../Resources/Valentina.icns"));
|
QLatin1String("/../Resources/Valentina.icns"));
|
||||||
QIcon icon;
|
QIcon icon;
|
||||||
if (not qApp->GetPPath().isEmpty())
|
if (not qApp->GetPatternPath().isEmpty())
|
||||||
{
|
{
|
||||||
if (not isWindowModified())
|
if (not isWindowModified())
|
||||||
{
|
{
|
||||||
|
|
|
@ -265,7 +265,7 @@ void VControlPointSpline::Init()
|
||||||
|
|
||||||
controlLine = new VScaledLine(this);
|
controlLine = new VScaledLine(this);
|
||||||
controlLine->SetBoldLine(false);
|
controlLine->SetBoldLine(false);
|
||||||
controlLine->setFlag(QGraphicsItem::ItemStacksBehindParent, true);
|
//controlLine->setFlag(QGraphicsItem::ItemStacksBehindParent, true);
|
||||||
controlLine->setVisible(false);
|
controlLine->setVisible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user