Refactoring. More appropriate name for a method.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2019-03-30 11:16:54 +02:00
parent 4565a47b91
commit 4d75ca0fe3
3 changed files with 4 additions and 4 deletions

View File

@ -5283,7 +5283,7 @@ bool MainWindow::DoExport(const VCommandLinePtr &expParams)
auto settings = expParams->DefaultGenerator(); auto settings = expParams->DefaultGenerator();
settings->SetTextAsPaths(expParams->IsTextAsPaths()); settings->SetTextAsPaths(expParams->IsTextAsPaths());
if (LayoutSettings(*settings.get())) if (GenerateLayout(*settings.get()))
{ {
try try
{ {

View File

@ -210,7 +210,7 @@ void MainWindowsNoGUI::ToolLayoutSettings(bool checked)
return; return;
} }
layoutPrinterName = layout.SelectedPrinter(); layoutPrinterName = layout.SelectedPrinter();
LayoutSettings(lGenerator); GenerateLayout(lGenerator);
tButton->setChecked(false); tButton->setChecked(false);
} }
else else
@ -220,7 +220,7 @@ void MainWindowsNoGUI::ToolLayoutSettings(bool checked)
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
bool MainWindowsNoGUI::LayoutSettings(VLayoutGenerator& lGenerator) bool MainWindowsNoGUI::GenerateLayout(VLayoutGenerator& lGenerator)
{ {
lGenerator.SetDetails(listDetails); lGenerator.SetDetails(listDetails);

View File

@ -133,7 +133,7 @@ protected:
virtual void CleanLayout()=0; virtual void CleanLayout()=0;
virtual void PrepareSceneList()=0; virtual void PrepareSceneList()=0;
QIcon ScenePreview(int i) const; QIcon ScenePreview(int i) const;
bool LayoutSettings(VLayoutGenerator& lGenerator); bool GenerateLayout(VLayoutGenerator& lGenerator);
int ContinueIfLayoutStale(); int ContinueIfLayoutStale();
QString FileName() const; QString FileName() const;
void SetSizeHeightForIndividualM() const; void SetSizeHeightForIndividualM() const;