diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2013-11-28 21:10:37 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-14 00:34:25 +0100 |
commit | b648f11227054b1e029c202c2a996f359335a86b (patch) | |
tree | 2e02c9547a3d4d893744055b60150dd8a64341e8 /src/widgets/graphicsview | |
parent | 391a6627cd97759eeabeac9cd5cd011a0a9f3d25 (diff) |
QSimplex: API cleanup [1/3]: Rename an enum
Enums should be named LikeThis, not likeThis, even in private API.
Change-Id: I197f9f888204a7c495364bd09357bfca24146560
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/widgets/graphicsview')
-rw-r--r-- | src/widgets/graphicsview/qsimplex_p.cpp | 4 | ||||
-rw-r--r-- | src/widgets/graphicsview/qsimplex_p.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/widgets/graphicsview/qsimplex_p.cpp b/src/widgets/graphicsview/qsimplex_p.cpp index a2437d8ab1..cf023dc8f1 100644 --- a/src/widgets/graphicsview/qsimplex_p.cpp +++ b/src/widgets/graphicsview/qsimplex_p.cpp @@ -509,7 +509,7 @@ bool QSimplex::iterate() Both solveMin and solveMax are interfaces to this method. - The enum solverFactor admits 2 values: Minimum (-1) and Maximum (+1). + The enum SolverFactor admits 2 values: Minimum (-1) and Maximum (+1). This method sets the original objective and runs the second phase Simplex to obtain the optimal solution for the problem. As the internal @@ -517,7 +517,7 @@ bool QSimplex::iterate() minimization case by inverting the original objective and then maximizing it. */ -qreal QSimplex::solver(solverFactor factor) +qreal QSimplex::solver(SolverFactor factor) { // Remove old objective clearRow(0); diff --git a/src/widgets/graphicsview/qsimplex_p.h b/src/widgets/graphicsview/qsimplex_p.h index 3fa3417eaf..8cb295e7ef 100644 --- a/src/widgets/graphicsview/qsimplex_p.h +++ b/src/widgets/graphicsview/qsimplex_p.h @@ -180,8 +180,8 @@ private: // Helpers void clearDataStructures(); void solveMaxHelper(); - enum solverFactor { Minimum = -1, Maximum = 1 }; - qreal solver(solverFactor factor); + enum SolverFactor { Minimum = -1, Maximum = 1 }; + qreal solver(SolverFactor factor); void collectResults(); QList<QSimplexConstraint *> constraints; |