diff options
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/kmessagewidget.h | 52 | ||||
-rw-r--r-- | qt-ui/models.cpp | 5 | ||||
-rw-r--r-- | qt-ui/printlayout.cpp | 2 |
3 files changed, 29 insertions, 30 deletions
diff --git a/qt-ui/kmessagewidget.h b/qt-ui/kmessagewidget.h index 7a0a253ae..90492b3cb 100644 --- a/qt-ui/kmessagewidget.h +++ b/qt-ui/kmessagewidget.h @@ -105,8 +105,8 @@ public: }; /** - * Constructs a KMessageWidget with the specified parent. - */ + * Constructs a KMessageWidget with the specified parent. + */ explicit KMessageWidget(QWidget *parent = 0); explicit KMessageWidget(const QString &text, QWidget *parent = 0); @@ -132,9 +132,9 @@ public: int heightForWidth(int width) const; /** - * The icon shown on the left of the text. By default, no icon is shown. - * @since 4.11 - */ + * The icon shown on the left of the text. By default, no icon is shown. + * @since 4.11 + */ QIcon icon() const; public @@ -148,40 +148,40 @@ Q_SLOTS: void setMessageType(KMessageWidget::MessageType type); /** - * Show the widget using an animation, unless - * KGlobalSettings::graphicsEffectLevel() does not allow simple effects. - */ + * Show the widget using an animation, unless + * KGlobalSettings::graphicsEffectLevel() does not allow simple effects. + */ void animatedShow(); /** - * Hide the widget using an animation, unless - * KGlobalSettings::graphicsEffectLevel() does not allow simple effects. - */ + * Hide the widget using an animation, unless + * KGlobalSettings::graphicsEffectLevel() does not allow simple effects. + */ void animatedHide(); /** - * Define an icon to be shown on the left of the text - * @since 4.11 - */ + * Define an icon to be shown on the left of the text + * @since 4.11 + */ void setIcon(const QIcon &icon); Q_SIGNALS: /** - * This signal is emitted when the user clicks a link in the text label. - * The URL referred to by the href anchor is passed in contents. - * @param contents text of the href anchor - * @see QLabel::linkActivated() - * @since 4.10 - */ + * This signal is emitted when the user clicks a link in the text label. + * The URL referred to by the href anchor is passed in contents. + * @param contents text of the href anchor + * @see QLabel::linkActivated() + * @since 4.10 + */ void linkActivated(const QString &contents); /** - * This signal is emitted when the user hovers over a link in the text label. - * The URL referred to by the href anchor is passed in contents. - * @param contents text of the href anchor - * @see QLabel::linkHovered() - * @since 4.11 - */ + * This signal is emitted when the user hovers over a link in the text label. + * The URL referred to by the href anchor is passed in contents. + * @param contents text of the href anchor + * @see QLabel::linkHovered() + * @since 4.11 + */ void linkHovered(const QString &contents); protected: diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index 25deca094..01a3c33b3 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -191,7 +191,7 @@ void CylindersModel::passInData(const QModelIndex &index, const QVariant &value) /* Has the string value changed */ #define CHANGED() \ - (vString = value.toString()) != data(index, role).toString() + (vString = value.toString()) != data(index, role).toString() bool CylindersModel::setData(const QModelIndex &index, const QVariant &value, int role) { @@ -934,8 +934,7 @@ bool TreeItem::setData(const QModelIndex &index, const QVariant &value, int role return false; } -QModelIndex TreeModel::index(int row, int column, const QModelIndex &parent) - const +QModelIndex TreeModel::index(int row, int column, const QModelIndex &parent) const { if (!hasIndex(row, column, parent)) return QModelIndex(); diff --git a/qt-ui/printlayout.cpp b/qt-ui/printlayout.cpp index cf566e604..e06bedaa2 100644 --- a/qt-ui/printlayout.cpp +++ b/qt-ui/printlayout.cpp @@ -114,7 +114,7 @@ int PrintLayout::estimateTotalDives() const * p is the padding between elements */ #define ESTIMATE_DIVE_DIM(S, n, p) \ - ((S) - ((n) - 1) * (p)) / (n); + ((S) - ((n) - 1) * (p)) / (n); void PrintLayout::printProfileDives(int divesPerRow, int divesPerColumn) { |