Clang warnings.

This commit is contained in:
Roman Telezhynskyi 2020-04-23 18:41:34 +03:00
parent e9f44d01e9
commit b9c5aed236
2 changed files with 20 additions and 20 deletions

View File

@ -54,15 +54,15 @@ public:
/** /**
* @brief LoadFile Loads the layout file of given path in m_layout. * @brief LoadFile Loads the layout file of given path in m_layout.
* This function doesn't update the gui. * This function doesn't update the gui.
* @param path * @param path path to layout
* @return * @return true if success
*/ */
bool LoadFile(QString path); bool LoadFile(QString path);
/** /**
* @brief SaveFile Saves the current layout to the layout file of given path * @brief SaveFile Saves the current layout to the layout file of given path
* @param path * @param path path to layout file
* @return * @return true if success
*/ */
bool SaveFile(const QString &path); bool SaveFile(const QString &path);

View File

@ -57,38 +57,38 @@ public:
/** /**
* @brief SetLayoutSize sets the size of the layout, the values have to be in Unit::Px * @brief SetLayoutSize sets the size of the layout, the values have to be in Unit::Px
* @param width * @param width layout width
* @param height * @param height layout height
*/ */
void SetLayoutSize(qreal width, qreal height); void SetLayoutSize(qreal width, qreal height);
/** /**
* @brief SetLayoutSize sets the size of the layout, the values have to be in the layout's unit * @brief SetLayoutSize sets the size of the layout, the values have to be in the layout's unit
* @param width * @param width layout width
* @param height * @param height layout height
*/ */
void SetLayoutSizeConverted(qreal width, qreal height); void SetLayoutSizeConverted(qreal width, qreal height);
/** /**
* @brief SetLayoutSize sets the size of the layout, the values have to be in Unit::Px * @brief SetLayoutSize sets the size of the layout, the values have to be in Unit::Px
* @param size * @param size layout size
*/ */
void SetLayoutSize(const QSizeF &size); void SetLayoutSize(const QSizeF &size);
/** /**
* @brief SetLayoutSizeConverted sets the size of the layout, the values have to be in the layout's unit * @brief SetLayoutSizeConverted sets the size of the layout, the values have to be in the layout's unit
* @param size * @param size layout size
*/ */
void SetLayoutSizeConverted(const QSizeF &size); void SetLayoutSizeConverted(const QSizeF &size);
/** /**
* @brief GetLayoutSize Returns the size in Unit::Px * @brief GetLayoutSize Returns the size in Unit::Px
* @return * @return layout size in Unit::Px
*/ */
QSizeF GetLayoutSize() const; QSizeF GetLayoutSize() const;
/** /**
* @brief GetLayoutSizeConverted Returns the size in the layout's unit * @brief GetLayoutSizeConverted Returns the size in the layout's unit
* @return * @return the size in the layout's unit
*/ */
QSizeF GetLayoutSizeConverted() const; QSizeF GetLayoutSizeConverted() const;
@ -112,25 +112,25 @@ public:
/** /**
* @brief SetLayoutMargins set the margins of the layout, the values have to be in Unit::Px * @brief SetLayoutMargins set the margins of the layout, the values have to be in Unit::Px
* @param margins * @param margins layout margins
*/ */
void SetLayoutMargins(const QMarginsF &margins); void SetLayoutMargins(const QMarginsF &margins);
/** /**
* @brief SetLayoutMargins set the margins of the layout, the values have to be in the unit of the layout * @brief SetLayoutMargins set the margins of the layout, the values have to be in the unit of the layout
* @param margins * @param margins layout margins
*/ */
void SetLayoutMarginsConverted(const QMarginsF &margins); void SetLayoutMarginsConverted(const QMarginsF &margins);
/** /**
* @brief GetLayoutMargins Returns the size in Unit::Px * @brief GetLayoutMargins Returns the size in Unit::Px
* @return * @return the size in Unit::Px
*/ */
QMarginsF GetLayoutMargins() const; QMarginsF GetLayoutMargins() const;
/** /**
* @brief GetLayoutMarginsConverted Returns the margins in the layout's unit * @brief GetLayoutMarginsConverted Returns the margins in the layout's unit
* @return * @return the margins in the layout's unit
*/ */
QMarginsF GetLayoutMarginsConverted() const; QMarginsF GetLayoutMarginsConverted() const;
@ -139,25 +139,25 @@ public:
/** /**
* @brief SetPiecesGap sets the pieces gap to the given value, the unit has to be in Unit::Px * @brief SetPiecesGap sets the pieces gap to the given value, the unit has to be in Unit::Px
* @param value * @param value pieces gap
*/ */
void SetPiecesGap(qreal value); void SetPiecesGap(qreal value);
/** /**
* @brief SetPiecesGapConverted sets the pieces gap to the given value, the unit has to be in the layout's unit * @brief SetPiecesGapConverted sets the pieces gap to the given value, the unit has to be in the layout's unit
* @param value * @param value pieces gap
*/ */
void SetPiecesGapConverted(qreal value); void SetPiecesGapConverted(qreal value);
/** /**
* @brief GetPiecesGap returns the pieces gap in Unit::Px * @brief GetPiecesGap returns the pieces gap in Unit::Px
* @return * @return the pieces gap in Unit::Px
*/ */
qreal GetPiecesGap() const; qreal GetPiecesGap() const;
/** /**
* @brief GetPiecesGapConverted returns the pieces gap in the layout's unit * @brief GetPiecesGapConverted returns the pieces gap in the layout's unit
* @return * @return the pieces gap in the layout's unit
*/ */
qreal GetPiecesGapConverted() const; qreal GetPiecesGapConverted() const;