Refactoring. Removed unneeded method.
--HG-- branch : develop
This commit is contained in:
parent
9e9689e16a
commit
e67b6b5805
|
@ -480,19 +480,6 @@ bool MainWindow::UpdateMeasurements(const QString &path, int size, int height)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
|
||||||
void MainWindow::ToggleMSync(bool toggle)
|
|
||||||
{
|
|
||||||
if (mChanges)
|
|
||||||
{
|
|
||||||
ui->actionSyncMeasurements->setEnabled(toggle);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
ui->actionSyncMeasurements->setEnabled(false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
/**
|
/**
|
||||||
* @brief OptionDraw help change name of pattern piece.
|
* @brief OptionDraw help change name of pattern piece.
|
||||||
|
@ -1389,7 +1376,7 @@ void MainWindow::MeasurementsChanged(const QString &path)
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateWindowTitle();
|
UpdateWindowTitle();
|
||||||
ToggleMSync(true);
|
ui->actionSyncMeasurements->setEnabled(mChanges);
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
@ -1411,14 +1398,13 @@ void MainWindow::SyncMeasurements()
|
||||||
doc->LiteParseTree(Document::LiteParse);
|
doc->LiteParseTree(Document::LiteParse);
|
||||||
mChanges = false;
|
mChanges = false;
|
||||||
UpdateWindowTitle();
|
UpdateWindowTitle();
|
||||||
|
ui->actionSyncMeasurements->setEnabled(mChanges);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
qCWarning(vMainWindow, "%s", qUtf8Printable(tr("Couldn't sync measurements.")));
|
qCWarning(vMainWindow, "%s", qUtf8Printable(tr("Couldn't sync measurements.")));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ToggleMSync(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
|
@ -316,8 +316,6 @@ private:
|
||||||
bool LoadMeasurements(const QString &path);
|
bool LoadMeasurements(const QString &path);
|
||||||
bool UpdateMeasurements(const QString &path, int size, int height);
|
bool UpdateMeasurements(const QString &path, int size, int height);
|
||||||
|
|
||||||
void ToggleMSync(bool toggle);
|
|
||||||
|
|
||||||
void ReopenFilesAfterCrash(QStringList &args);
|
void ReopenFilesAfterCrash(QStringList &args);
|
||||||
void DoExport(const VCommandLinePtr& expParams);
|
void DoExport(const VCommandLinePtr& expParams);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user