diff options
author | Leena Miettinen <riitta-leena.miettinen@qt.io> | 2024-05-17 14:14:53 +0200 |
---|---|---|
committer | Leena Miettinen <riitta-leena.miettinen@qt.io> | 2024-05-17 12:25:39 +0000 |
commit | 946bbb477ebc2cd29a1a624ff2ac29603837dbaa (patch) | |
tree | 2843e203591cdfd10dd3fe3ecb72a45919ce3a58 | |
parent | ced23f3f89318d1e798aaa2f2e32d40c5f83c8c8 (diff) |
Doc: Fix QDoc warnings in BaseAspects docs
Change-Id: Iee6e29040dfffaa4fa7da99cb0b854ef22b45042
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
-rw-r--r-- | src/libs/utils/aspects.cpp | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/src/libs/utils/aspects.cpp b/src/libs/utils/aspects.cpp index c35085ce4d..5cc028bcdb 100644 --- a/src/libs/utils/aspects.cpp +++ b/src/libs/utils/aspects.cpp @@ -116,6 +116,17 @@ public: */ /*! + \enum Utils::BaseAspect::Announcement + + Whether to emit a signal when a value changes. + + \value DoEmit + Emit a signal. + \value BeQuiet + Don't emit a signal. +*/ + +/*! Constructs a base aspect. If \a container is non-null, the aspect is made known to the container. @@ -159,7 +170,9 @@ QVariant BaseAspect::variantValue() const /*! Sets \a value. - Prefer the typed setValue() of derived classes. + If \a howToAnnounce is set to \c DoEmit, emits the \c valueChanged signal. + + Prefer the typed \c setValue() of the derived classes. */ void BaseAspect::setVariantValue(const QVariant &value, Announcement howToAnnounce) { @@ -939,9 +952,6 @@ public: Based on QTextEdit, used for user-editable strings that often do not fit on a line. - \value PathChooserDisplay - Based on Utils::PathChooser. - \value PasswordLineEditDisplay Based on QLineEdit, used for password strings @@ -1428,7 +1438,9 @@ QString FilePathAspect::value() const } /*! - Sets the value of this file path aspect to \a value. + Sets the value of this file path aspect to \a filePath. + + If \a howToAnnounce is set to \c DoEmit, emits the \c valueChanged signal. \note This does not use any check that the value is actually a file path. @@ -2784,8 +2796,8 @@ void IntegersAspect::addToLayout(Layouting::LayoutItem &parent) */ /*! - Constructs a text display showing the \a message with an icon representing - type \a type. + Constructs a text display with the parent \a container. The display shows + \a message and an icon representing the type \a type. */ TextDisplay::TextDisplay(AspectContainer *container, const QString &message, InfoLabel::InfoType type) : BaseAspect(container), d(new Internal::TextDisplayPrivate) |