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

@ -50,13 +50,14 @@ public slots:
/** TODO ISSUE 79 : create real function
* @brief DialogApply apply data and emit signal about applied dialog.
*/
virtual void DialogApply(){}
virtual void DialogApply(){}
void BiasXChanged(qreal d);
void BiasYChanged(qreal d);
void ClickedSeams(bool checked);
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

@ -54,7 +54,8 @@ public slots:
/** TODO ISSUE 79 : create real function
* @brief DialogApply apply data and emit signal about applied dialog.
*/
virtual void DialogApply(){}
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

@ -56,7 +56,8 @@ public slots:
/** TODO ISSUE 79 : create real function
* @brief DialogApply apply data and emit signal about applied dialog.
*/
virtual void DialogApply(){}
virtual void DialogApply(){}
virtual void UpdateList();
private:
Q_DISABLE_COPY(DialogUnionDetails)