From 6ae5a001466ba77c1e877dbb01d54b1dbae6100c Mon Sep 17 00:00:00 2001 From: dismine Date: Wed, 6 Nov 2013 21:46:07 +0200 Subject: [PATCH] Little optimization. --HG-- branch : develop --- dialogs/dialogalongline.cpp | 2 +- dialogs/dialogalongline.h | 2 +- dialogs/dialogarc.cpp | 2 +- dialogs/dialogarc.h | 2 +- dialogs/dialogbisector.cpp | 2 +- dialogs/dialogbisector.h | 2 +- dialogs/dialogdetail.cpp | 2 +- dialogs/dialogdetail.h | 2 +- dialogs/dialogendline.cpp | 2 +- dialogs/dialogendline.h | 2 +- dialogs/dialogheight.cpp | 2 +- dialogs/dialogheight.h | 2 +- dialogs/dialogline.cpp | 2 +- dialogs/dialogline.h | 2 +- dialogs/dialoglineintersect.cpp | 2 +- dialogs/dialoglineintersect.h | 2 +- dialogs/dialognormal.cpp | 2 +- dialogs/dialognormal.h | 2 +- dialogs/dialogpointofcontact.cpp | 2 +- dialogs/dialogpointofcontact.h | 2 +- dialogs/dialogpointofintersection.cpp | 2 +- dialogs/dialogpointofintersection.h | 2 +- dialogs/dialogshoulderpoint.cpp | 2 +- dialogs/dialogshoulderpoint.h | 2 +- dialogs/dialogspline.cpp | 2 +- dialogs/dialogspline.h | 2 +- dialogs/dialogsplinepath.cpp | 2 +- dialogs/dialogsplinepath.h | 2 +- dialogs/dialogtool.cpp | 2 +- dialogs/dialogtool.h | 2 +- dialogs/dialogtriangle.cpp | 2 +- dialogs/dialogtriangle.h | 2 +- 32 files changed, 32 insertions(+), 32 deletions(-) diff --git a/dialogs/dialogalongline.cpp b/dialogs/dialogalongline.cpp index 00846dfa9..866b4bbf0 100644 --- a/dialogs/dialogalongline.cpp +++ b/dialogs/dialogalongline.cpp @@ -72,7 +72,7 @@ DialogAlongLine::~DialogAlongLine() delete ui; } -void DialogAlongLine::ChoosedObject(qint64 id, Scene::Scenes type) +void DialogAlongLine::ChoosedObject(qint64 id, const Scene::Scenes &type) { if (idDetail == 0 && mode == Draw::Modeling) { diff --git a/dialogs/dialogalongline.h b/dialogs/dialogalongline.h index bda9b31f3..f4a425163 100644 --- a/dialogs/dialogalongline.h +++ b/dialogs/dialogalongline.h @@ -47,7 +47,7 @@ public: inline qint64 getSecondPointId() const {return secondPointId;} void setSecondPointId(const qint64 &value, const qint64 &id); public slots: - virtual void ChoosedObject(qint64 id, Scene::Scenes type); + virtual void ChoosedObject(qint64 id, const Scene::Scenes &type); virtual void DialogAccepted(); private: Q_DISABLE_COPY(DialogAlongLine) diff --git a/dialogs/dialogarc.cpp b/dialogs/dialogarc.cpp index 16989d44e..47c43239e 100644 --- a/dialogs/dialogarc.cpp +++ b/dialogs/dialogarc.cpp @@ -107,7 +107,7 @@ void DialogArc::SetRadius(const QString &value) ui->lineEditRadius->setText(radius); } -void DialogArc::ChoosedObject(qint64 id, Scene::Scenes type) +void DialogArc::ChoosedObject(qint64 id, const Scene::Scenes &type) { if (idDetail == 0 && mode == Draw::Modeling) { diff --git a/dialogs/dialogarc.h b/dialogs/dialogarc.h index c701ba582..1267f6943 100644 --- a/dialogs/dialogarc.h +++ b/dialogs/dialogarc.h @@ -44,7 +44,7 @@ public: inline QString GetF2() const {return f2;} void SetF2(const QString &value); public slots: - virtual void ChoosedObject(qint64 id, Scene::Scenes type); + virtual void ChoosedObject(qint64 id, const Scene::Scenes &type); virtual void DialogAccepted(); virtual void ValChenged(int row); void PutRadius(); diff --git a/dialogs/dialogbisector.cpp b/dialogs/dialogbisector.cpp index afd97c41c..a9869ca03 100644 --- a/dialogs/dialogbisector.cpp +++ b/dialogs/dialogbisector.cpp @@ -72,7 +72,7 @@ DialogBisector::~DialogBisector() delete ui; } -void DialogBisector::ChoosedObject(qint64 id, Scene::Scenes type) +void DialogBisector::ChoosedObject(qint64 id, const Scene::Scenes &type) { if (idDetail == 0 && mode == Draw::Modeling) { diff --git a/dialogs/dialogbisector.h b/dialogs/dialogbisector.h index c9b0260dc..4ea1f3fb3 100644 --- a/dialogs/dialogbisector.h +++ b/dialogs/dialogbisector.h @@ -49,7 +49,7 @@ public: inline qint64 getThirdPointId() const {return thirdPointId;} void setThirdPointId(const qint64 &value, const qint64 &id); public slots: - virtual void ChoosedObject(qint64 id, Scene::Scenes type); + virtual void ChoosedObject(qint64 id, const Scene::Scenes &type); virtual void DialogAccepted(); private: Q_DISABLE_COPY(DialogBisector) diff --git a/dialogs/dialogdetail.cpp b/dialogs/dialogdetail.cpp index add670998..de397de89 100644 --- a/dialogs/dialogdetail.cpp +++ b/dialogs/dialogdetail.cpp @@ -43,7 +43,7 @@ DialogDetail::DialogDetail(const VContainer *data, Draw::Draws mode, QWidget *pa connect(ui.lineEditNameDetail, &QLineEdit::textChanged, this, &DialogDetail::NamePointChanged); } -void DialogDetail::ChoosedObject(qint64 id, Scene::Scenes type) +void DialogDetail::ChoosedObject(qint64 id, const Scene::Scenes &type) { if (idDetail == 0 && mode == Draw::Modeling) { diff --git a/dialogs/dialogdetail.h b/dialogs/dialogdetail.h index 8a6a12cdf..c49a57f6d 100644 --- a/dialogs/dialogdetail.h +++ b/dialogs/dialogdetail.h @@ -33,7 +33,7 @@ public: inline VDetail getDetails() const {return details;} void setDetails(const VDetail &value); public slots: - virtual void ChoosedObject(qint64 id, Scene::Scenes type); + virtual void ChoosedObject(qint64 id, const Scene::Scenes &type); virtual void DialogAccepted(); void BiasXChanged(qreal d); void BiasYChanged(qreal d); diff --git a/dialogs/dialogendline.cpp b/dialogs/dialogendline.cpp index 9770166b0..db41ac062 100644 --- a/dialogs/dialogendline.cpp +++ b/dialogs/dialogendline.cpp @@ -82,7 +82,7 @@ DialogEndLine::DialogEndLine(const VContainer *data, Draw::Draws mode, QWidget * connect(ui->lineEditFormula, &QLineEdit::textChanged, this, &DialogEndLine::FormulaChanged); } -void DialogEndLine::ChoosedObject(qint64 id, Scene::Scenes type) +void DialogEndLine::ChoosedObject(qint64 id, const Scene::Scenes &type) { if (idDetail == 0 && mode == Draw::Modeling) { diff --git a/dialogs/dialogendline.h b/dialogs/dialogendline.h index 489d264c4..300b8d201 100644 --- a/dialogs/dialogendline.h +++ b/dialogs/dialogendline.h @@ -46,7 +46,7 @@ public: inline qint64 getBasePointId() const {return basePointId;} void setBasePointId(const qint64 &value, const qint64 &id); public slots: - virtual void ChoosedObject(qint64 id, Scene::Scenes type); + virtual void ChoosedObject(qint64 id, const Scene::Scenes &type); virtual void DialogAccepted(); private: Q_DISABLE_COPY(DialogEndLine) diff --git a/dialogs/dialogheight.cpp b/dialogs/dialogheight.cpp index db2039bce..5f3411532 100644 --- a/dialogs/dialogheight.cpp +++ b/dialogs/dialogheight.cpp @@ -76,7 +76,7 @@ void DialogHeight::setP2LineId(const qint64 &value, const qint64 &id) setCurrentPointId(ui->comboBoxP2Line, p2LineId, value, id); } -void DialogHeight::ChoosedObject(qint64 id, Scene::Scenes type) +void DialogHeight::ChoosedObject(qint64 id, const Scene::Scenes &type) { if (idDetail == 0 && mode == Draw::Modeling) { diff --git a/dialogs/dialogheight.h b/dialogs/dialogheight.h index e737ad5a3..4b787ff3b 100644 --- a/dialogs/dialogheight.h +++ b/dialogs/dialogheight.h @@ -47,7 +47,7 @@ public: inline qint64 getP2LineId() const{return p2LineId;} void setP2LineId(const qint64 &value, const qint64 &id); public slots: - virtual void ChoosedObject(qint64 id, Scene::Scenes type); + virtual void ChoosedObject(qint64 id, const Scene::Scenes &type); virtual void DialogAccepted(); private: Q_DISABLE_COPY(DialogHeight) diff --git a/dialogs/dialogline.cpp b/dialogs/dialogline.cpp index ecdf6cb9d..4d95c7522 100644 --- a/dialogs/dialogline.cpp +++ b/dialogs/dialogline.cpp @@ -72,7 +72,7 @@ void DialogLine::DialogAccepted() DialogClosed(QDialog::Accepted); } -void DialogLine::ChoosedObject(qint64 id, Scene::Scenes type) +void DialogLine::ChoosedObject(qint64 id, const Scene::Scenes &type) { if (idDetail == 0 && mode == Draw::Modeling) { diff --git a/dialogs/dialogline.h b/dialogs/dialogline.h index 9957eca16..2693d2734 100644 --- a/dialogs/dialogline.h +++ b/dialogs/dialogline.h @@ -40,7 +40,7 @@ public: inline qint64 getSecondPoint() const {return secondPoint;} void setSecondPoint(const qint64 &value); public slots: - void ChoosedObject(qint64 id, Scene::Scenes type); + void ChoosedObject(qint64 id, const Scene::Scenes &type); virtual void DialogAccepted(); private: Q_DISABLE_COPY(DialogLine) diff --git a/dialogs/dialoglineintersect.cpp b/dialogs/dialoglineintersect.cpp index 4961e0db3..480476c08 100644 --- a/dialogs/dialoglineintersect.cpp +++ b/dialogs/dialoglineintersect.cpp @@ -47,7 +47,7 @@ DialogLineIntersect::~DialogLineIntersect() delete ui; } -void DialogLineIntersect::ChoosedObject(qint64 id, Scene::Scenes type) +void DialogLineIntersect::ChoosedObject(qint64 id, const Scene::Scenes &type) { if (idDetail == 0 && mode == Draw::Modeling) { diff --git a/dialogs/dialoglineintersect.h b/dialogs/dialoglineintersect.h index 9c5195df5..574a83455 100644 --- a/dialogs/dialoglineintersect.h +++ b/dialogs/dialoglineintersect.h @@ -47,7 +47,7 @@ public: inline QString getPointName() const {return pointName;} void setPointName(const QString &value); public slots: - virtual void ChoosedObject(qint64 id, Scene::Scenes type); + virtual void ChoosedObject(qint64 id, const Scene::Scenes &type); virtual void DialogAccepted(); void P1Line1Changed( int index); void P2Line1Changed( int index); diff --git a/dialogs/dialognormal.cpp b/dialogs/dialognormal.cpp index d13aeab95..c105e8445 100644 --- a/dialogs/dialognormal.cpp +++ b/dialogs/dialognormal.cpp @@ -88,7 +88,7 @@ DialogNormal::~DialogNormal() delete ui; } -void DialogNormal::ChoosedObject(qint64 id, Scene::Scenes type) +void DialogNormal::ChoosedObject(qint64 id, const Scene::Scenes &type) { if (idDetail == 0 && mode == Draw::Modeling) { diff --git a/dialogs/dialognormal.h b/dialogs/dialognormal.h index 84a661522..782305582 100644 --- a/dialogs/dialognormal.h +++ b/dialogs/dialognormal.h @@ -48,7 +48,7 @@ public: inline qint64 getSecondPointId() const {return secondPointId;} void setSecondPointId(const qint64 &value, const qint64 &id); public slots: - virtual void ChoosedObject(qint64 id, Scene::Scenes type); + virtual void ChoosedObject(qint64 id, const Scene::Scenes &type); virtual void DialogAccepted(); private: Q_DISABLE_COPY(DialogNormal) diff --git a/dialogs/dialogpointofcontact.cpp b/dialogs/dialogpointofcontact.cpp index 6b551df7e..e9caa7905 100644 --- a/dialogs/dialogpointofcontact.cpp +++ b/dialogs/dialogpointofcontact.cpp @@ -65,7 +65,7 @@ DialogPointOfContact::DialogPointOfContact(const VContainer *data, Draw::Draws m connect(ui.lineEditFormula, &QLineEdit::textChanged, this, &DialogPointOfContact::FormulaChanged); } -void DialogPointOfContact::ChoosedObject(qint64 id, Scene::Scenes type) +void DialogPointOfContact::ChoosedObject(qint64 id, const Scene::Scenes &type) { if (idDetail == 0 && mode == Draw::Modeling) { diff --git a/dialogs/dialogpointofcontact.h b/dialogs/dialogpointofcontact.h index 35af0835a..37171e72e 100644 --- a/dialogs/dialogpointofcontact.h +++ b/dialogs/dialogpointofcontact.h @@ -42,7 +42,7 @@ public: inline qint64 getSecondPoint() const {return secondPoint;} void setSecondPoint(const qint64 &value, const qint64 &id); public slots: - virtual void ChoosedObject(qint64 id, Scene::Scenes type); + virtual void ChoosedObject(qint64 id, const Scene::Scenes &type); virtual void DialogAccepted(); private: Q_DISABLE_COPY(DialogPointOfContact) diff --git a/dialogs/dialogpointofintersection.cpp b/dialogs/dialogpointofintersection.cpp index 299eaadee..7adcd8b28 100644 --- a/dialogs/dialogpointofintersection.cpp +++ b/dialogs/dialogpointofintersection.cpp @@ -50,7 +50,7 @@ void DialogPointOfIntersection::setSecondPointId(const qint64 &value, const qint setCurrentPointId(ui->comboBoxSecondPoint, secondPointId, value, id); } -void DialogPointOfIntersection::ChoosedObject(qint64 id, Scene::Scenes type) +void DialogPointOfIntersection::ChoosedObject(qint64 id, const Scene::Scenes &type) { if (idDetail == 0 && mode == Draw::Modeling) { diff --git a/dialogs/dialogpointofintersection.h b/dialogs/dialogpointofintersection.h index 556b9b3ea..e6971853c 100644 --- a/dialogs/dialogpointofintersection.h +++ b/dialogs/dialogpointofintersection.h @@ -43,7 +43,7 @@ public: inline qint64 getSecondPointId() const {return secondPointId;} void setSecondPointId(const qint64 &value, const qint64 &id); public slots: - virtual void ChoosedObject(qint64 id, Scene::Scenes type); + virtual void ChoosedObject(qint64 id, const Scene::Scenes &type); virtual void DialogAccepted(); private: Q_DISABLE_COPY(DialogPointOfIntersection) diff --git a/dialogs/dialogshoulderpoint.cpp b/dialogs/dialogshoulderpoint.cpp index 0224eb90b..809516519 100644 --- a/dialogs/dialogshoulderpoint.cpp +++ b/dialogs/dialogshoulderpoint.cpp @@ -73,7 +73,7 @@ DialogShoulderPoint::~DialogShoulderPoint() delete ui; } -void DialogShoulderPoint::ChoosedObject(qint64 id, Scene::Scenes type) +void DialogShoulderPoint::ChoosedObject(qint64 id, const Scene::Scenes &type) { if (idDetail == 0 && mode == Draw::Modeling) { diff --git a/dialogs/dialogshoulderpoint.h b/dialogs/dialogshoulderpoint.h index 8d06393e6..ba516c4dd 100644 --- a/dialogs/dialogshoulderpoint.h +++ b/dialogs/dialogshoulderpoint.h @@ -49,7 +49,7 @@ public: inline qint64 getPShoulder() const {return pShoulder;} void setPShoulder(const qint64 &value, const qint64 &id); public slots: - virtual void ChoosedObject(qint64 id, Scene::Scenes type); + virtual void ChoosedObject(qint64 id, const Scene::Scenes &type); virtual void DialogAccepted(); private: Q_DISABLE_COPY(DialogShoulderPoint) diff --git a/dialogs/dialogspline.cpp b/dialogs/dialogspline.cpp index 16baab710..5f0d42123 100644 --- a/dialogs/dialogspline.cpp +++ b/dialogs/dialogspline.cpp @@ -44,7 +44,7 @@ DialogSpline::~DialogSpline() delete ui; } -void DialogSpline::ChoosedObject(qint64 id, Scene::Scenes type) +void DialogSpline::ChoosedObject(qint64 id, const Scene::Scenes &type) { if (idDetail == 0 && mode == Draw::Modeling) { diff --git a/dialogs/dialogspline.h b/dialogs/dialogspline.h index bcb69ce87..f155910b6 100644 --- a/dialogs/dialogspline.h +++ b/dialogs/dialogspline.h @@ -50,7 +50,7 @@ public: inline qreal getKCurve() const {return kCurve;} void setKCurve(const qreal &value); public slots: - virtual void ChoosedObject(qint64 id, Scene::Scenes type); + virtual void ChoosedObject(qint64 id, const Scene::Scenes &type); virtual void DialogAccepted(); private: Q_DISABLE_COPY(DialogSpline) diff --git a/dialogs/dialogsplinepath.cpp b/dialogs/dialogsplinepath.cpp index 7321f2989..76efb8bd8 100644 --- a/dialogs/dialogsplinepath.cpp +++ b/dialogs/dialogsplinepath.cpp @@ -67,7 +67,7 @@ void DialogSplinePath::SetPath(const VSplinePath &value) } -void DialogSplinePath::ChoosedObject(qint64 id, Scene::Scenes type) +void DialogSplinePath::ChoosedObject(qint64 id, const Scene::Scenes &type) { if (idDetail == 0 && mode == Draw::Modeling) { diff --git a/dialogs/dialogsplinepath.h b/dialogs/dialogsplinepath.h index d3ebff753..b6eb49813 100644 --- a/dialogs/dialogsplinepath.h +++ b/dialogs/dialogsplinepath.h @@ -40,7 +40,7 @@ public: inline VSplinePath GetPath() const {return path;} void SetPath(const VSplinePath &value); public slots: - virtual void ChoosedObject(qint64 id, Scene::Scenes type); + virtual void ChoosedObject(qint64 id, const Scene::Scenes &type); virtual void DialogAccepted(); void PointChenged(int row); void currentPointChanged( int index ); diff --git a/dialogs/dialogtool.cpp b/dialogs/dialogtool.cpp index beaa36183..a07413b69 100644 --- a/dialogs/dialogtool.cpp +++ b/dialogs/dialogtool.cpp @@ -254,7 +254,7 @@ void DialogTool::CheckState() bOk->setEnabled(flagFormula && flagName); } -void DialogTool::ChoosedObject(qint64 id, Scene::Scenes type) +void DialogTool::ChoosedObject(qint64 id, const Scene::Scenes &type) { Q_UNUSED(id); Q_UNUSED(type); diff --git a/dialogs/dialogtool.h b/dialogs/dialogtool.h index 119eba2e9..79dfeb517 100644 --- a/dialogs/dialogtool.h +++ b/dialogs/dialogtool.h @@ -37,7 +37,7 @@ signals: void DialogClosed(int result); void ToolTip(const QString &toolTip); public slots: - virtual void ChoosedObject(qint64 id, Scene::Scenes type); + virtual void ChoosedObject(qint64 id, const Scene::Scenes &type); void NamePointChanged(); virtual void DialogAccepted(); virtual void DialogRejected(); diff --git a/dialogs/dialogtriangle.cpp b/dialogs/dialogtriangle.cpp index 96b136c2c..7e8a0015b 100644 --- a/dialogs/dialogtriangle.cpp +++ b/dialogs/dialogtriangle.cpp @@ -46,7 +46,7 @@ DialogTriangle::~DialogTriangle() delete ui; } -void DialogTriangle::ChoosedObject(qint64 id, Scene::Scenes type) +void DialogTriangle::ChoosedObject(qint64 id, const Scene::Scenes &type) { if (idDetail == 0 && mode == Draw::Modeling) { diff --git a/dialogs/dialogtriangle.h b/dialogs/dialogtriangle.h index 3c43fc89f..ec2c1da08 100644 --- a/dialogs/dialogtriangle.h +++ b/dialogs/dialogtriangle.h @@ -46,7 +46,7 @@ public: inline QString getPointName() const {return pointName;} void setPointName(const QString &value); public slots: - virtual void ChoosedObject(qint64 id, Scene::Scenes type); + virtual void ChoosedObject(qint64 id, const Scene::Scenes &type); virtual void DialogAccepted(); private: Q_DISABLE_COPY(DialogTriangle)