Change slot FullUpdateFromGui name to more readable FullUpdateFromGuiOk.

--HG--
branch : feature
This commit is contained in:
dismine 2014-06-11 19:38:09 +03:00
parent c5250cde7f
commit 1dfe9eda03
4 changed files with 8 additions and 8 deletions

View File

@ -105,10 +105,10 @@ void VDrawTool::ChangedNameDraw(const QString &oldName, const QString &newName)
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief FullUpdateFromGui refresh tool data after change in options.
* @brief FullUpdateFromGuiOk refresh tool data after change in options.
* @param result keep result working dialog.
*/
void VDrawTool::FullUpdateFromGui(int result)
void VDrawTool::FullUpdateFromGuiOk(int result)
{
if (result == QDialog::Accepted)
{

View File

@ -61,7 +61,7 @@ public slots:
virtual void ShowTool(quint32 id, Qt::GlobalColor color, bool enable);
virtual void ChangedActivDraw(const QString &newName);
void ChangedNameDraw(const QString &oldName, const QString &newName);
virtual void FullUpdateFromGui(int result);
virtual void FullUpdateFromGuiOk(int result);
/**
* @brief FullUpdateFromGuiApply refresh tool data after change in options but do not delete dialog
*/
@ -125,7 +125,7 @@ protected:
connect(qobject_cast< VMainGraphicsScene * >(tool->scene()),
&VMainGraphicsScene::ChoosedObject, dialog, &DialogTool::ChoosedObject);
connect(dialog, &DialogTool::DialogClosed, tool, &Tool::FullUpdateFromGui);
connect(dialog, &DialogTool::DialogClosed, tool, &Tool::FullUpdateFromGuiOk);
connect(dialog, &DialogTool::DialogApplied, tool, &Tool::FullUpdateFromGuiApply);
if (ignoreFullUpdate == false)
{

View File

@ -201,7 +201,7 @@ void VToolDetail::FullUpdateFromFile()
}
//---------------------------------------------------------------------------------------------------------------------
void VToolDetail::FullUpdateFromGui(int result)
void VToolDetail::FullUpdateFromGuiOk(int result)
{
if (result == QDialog::Accepted)
{
@ -369,7 +369,7 @@ void VToolDetail::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
dialog = new DialogDetail(getData(), list.first());
connect(qobject_cast< VMainGraphicsScene * >(this->scene()), &VMainGraphicsScene::ChoosedObject,
dialog, &DialogTool::ChoosedObject);
connect(dialog, &DialogTool::DialogClosed, this, &VToolDetail::FullUpdateFromGui);
connect(dialog, &DialogTool::DialogClosed, this, &VToolDetail::FullUpdateFromGuiOk);
setDialog();
dialog->show();
}

View File

@ -118,10 +118,10 @@ public slots:
*/
virtual void FullUpdateFromFile ();
/**
* @brief FullUpdateFromGui refresh tool data after change in options.
* @brief FullUpdateFromGuiOk refresh tool data after change in options.
* @param result keep result working dialog.
*/
virtual void FullUpdateFromGui(int result);
virtual void FullUpdateFromGuiOk(int result);
protected:
/**
* @brief AddToFile add tag with informations about tool into file.