Fix crash. Redefine updating list of variables.

--HG--
branch : develop
This commit is contained in:
dismine 2014-07-15 17:28:19 +03:00
parent ff3b3d8797
commit 0c42eb06b2
19 changed files with 95 additions and 4 deletions

View File

@ -294,3 +294,13 @@ void DialogDetail::DeleteItem()
qint32 row = ui.listWidget->currentRow();
delete ui.listWidget->item( row );
}
//---------------------------------------------------------------------------------------------------------------------
void DialogDetail::UpdateList()
{
/*
* Does nothing. We redefine this slot because it is only one now way block update list of variable.
* This dialog doesn't work with formula. Don't delete. Help avoid crash.
*/
}

View File

@ -57,6 +57,7 @@ public slots:
void ClickedClosed(bool checked);
void ObjectChanged(int row);
void DeleteItem();
virtual void UpdateList();
private:
/** @brief ui keeps information about user interface */

View File

@ -210,3 +210,12 @@ void DialogHeight::PointNameChanged()
ChangeColor(ui->labelSecondLinePoint, color);
CheckState();
}
//---------------------------------------------------------------------------------------------------------------------
void DialogHeight::UpdateList()
{
/*
* Does nothing. We redefine this slot because it is only one now way block update list of variable.
* This dialog doesn't work with formula. Don't delete. Help avoid crash.
*/
}

View File

@ -68,6 +68,7 @@ public slots:
*/
virtual void DialogApply(){}
virtual void PointNameChanged();
virtual void UpdateList();
private:
Q_DISABLE_COPY(DialogHeight)

View File

@ -132,6 +132,15 @@ void DialogLine::PointNameChanged()
CheckState();
}
//---------------------------------------------------------------------------------------------------------------------
void DialogLine::UpdateList()
{
/*
* Does nothing. We redefine this slot because it is only one now way block update list of variable.
* This dialog doesn't work with formula. Don't delete. Help avoid crash.
*/
}
//---------------------------------------------------------------------------------------------------------------------
void DialogLine::ShowVisualization()
{

View File

@ -64,6 +64,7 @@ public slots:
*/
virtual void DialogApply(){}
virtual void PointNameChanged();
virtual void UpdateList();
protected:
virtual void ShowVisualization();
private:

View File

@ -254,6 +254,15 @@ void DialogLineIntersect::PointNameChanged()
CheckState();
}
//---------------------------------------------------------------------------------------------------------------------
void DialogLineIntersect::UpdateList()
{
/*
* Does nothing. We redefine this slot because it is only one now way block update list of variable.
* This dialog doesn't work with formula. Don't delete. Help avoid crash.
*/
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief CheckState check state of dialog. Enable or disable button ok.

View File

@ -72,6 +72,7 @@ public slots:
void P1Line2Changed( int index);
void P2Line2Changed( int index);
virtual void PointNameChanged();
virtual void UpdateList();
private:
Q_DISABLE_COPY(DialogLineIntersect)

View File

@ -147,6 +147,15 @@ void DialogPointOfIntersection::PointNameChanged()
CheckState();
}
//---------------------------------------------------------------------------------------------------------------------
void DialogPointOfIntersection::UpdateList()
{
/*
* Does nothing. We redefine this slot because it is only one now way block update list of variable.
* This dialog doesn't work with formula. Don't delete. Help avoid crash.
*/
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief setFirstPointId set id of first point

View File

@ -62,6 +62,7 @@ public slots:
*/
virtual void DialogApply(){}
virtual void PointNameChanged();
virtual void UpdateList();
private:
Q_DISABLE_COPY(DialogPointOfIntersection)

View File

@ -81,6 +81,15 @@ void DialogSinglePoint::DialogAccepted()
emit DialogClosed(QDialog::Accepted);
}
//---------------------------------------------------------------------------------------------------------------------
void DialogSinglePoint::UpdateList()
{
/*
* Does nothing. We redefine this slot because it is only one now way block update list of variable.
* This dialog doesn't work with formula. Don't delete. Help avoid crash.
*/
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief setData set name and point

View File

@ -55,6 +55,7 @@ public slots:
* @brief DialogApply apply data and emit signal about applied dialog.
*/
virtual void DialogApply(){}
virtual void UpdateList();
private:
Q_DISABLE_COPY(DialogSinglePoint)

View File

@ -156,6 +156,15 @@ void DialogSpline::PointNameChanged()
CheckState();
}
//---------------------------------------------------------------------------------------------------------------------
void DialogSpline::UpdateList()
{
/*
* Does nothing. We redefine this slot because it is only one now way block update list of variable.
* This dialog doesn't work with formula. Don't delete. Help avoid crash.
*/
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief setKCurve set coefficient curve

View File

@ -74,6 +74,7 @@ public slots:
*/
virtual void DialogApply(){}
virtual void PointNameChanged();
virtual void UpdateList();
private:
Q_DISABLE_COPY(DialogSpline)

View File

@ -210,6 +210,15 @@ void DialogSplinePath::KAsm2Changed(qreal d)
item->setData(Qt::UserRole, QVariant::fromValue(p));
}
//---------------------------------------------------------------------------------------------------------------------
void DialogSplinePath::UpdateList()
{
/*
* Does nothing. We redefine this slot because it is only one now way block update list of variable.
* This dialog doesn't work with formula. Don't delete. Help avoid crash.
*/
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief NewItem add point to list

View File

@ -62,6 +62,7 @@ public slots:
void Angle2Changed( qreal index );
void KAsm1Changed(qreal d);
void KAsm2Changed(qreal d);
virtual void UpdateList();
private:
Q_DISABLE_COPY(DialogSplinePath)

View File

@ -106,7 +106,7 @@ public slots:
void PutHere();
void PutVal(QListWidgetItem * item);
virtual void ValChenged(int row);
void UpdateList();
virtual void UpdateList();
virtual void PointNameChanged(){}
protected:
Q_DISABLE_COPY(DialogTool)

View File

@ -78,6 +78,15 @@ void DialogUnionDetails::DialogAccepted()
emit DialogClosed(QDialog::Accepted);
}
//---------------------------------------------------------------------------------------------------------------------
void DialogUnionDetails::UpdateList()
{
/*
* Does nothing. We redefine this slot because it is only one now way block update list of variable.
* This dialog doesn't work with formula. Don't delete. Help avoid crash.
*/
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief CheckObject check if detail contain this id

View File

@ -57,6 +57,7 @@ public slots:
* @brief DialogApply apply data and emit signal about applied dialog.
*/
virtual void DialogApply(){}
virtual void UpdateList();
private:
Q_DISABLE_COPY(DialogUnionDetails)