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