[3rdparty] Tidy up access and API dox
This commit is contained in:
parent
15dc47555a
commit
fac8662387
29
3rdparty/waitingspinnerwidget.h
vendored
29
3rdparty/waitingspinnerwidget.h
vendored
@ -38,27 +38,30 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||||||
class WaitingSpinnerWidget : public QWidget {
|
class WaitingSpinnerWidget : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
/*! Constructor for "standard" widget behaviour - use this
|
/** @brief Constructor for "standard" widget behaviour
|
||||||
* constructor if you wish to, e.g. embed your widget in another. */
|
*
|
||||||
|
* Use this constructor if you wish to, e.g. embed your widget in another.
|
||||||
|
*/
|
||||||
WaitingSpinnerWidget(QWidget *parent = nullptr,
|
WaitingSpinnerWidget(QWidget *parent = nullptr,
|
||||||
bool centerOnParent = true,
|
bool centerOnParent = true,
|
||||||
bool disableParentWhenSpinning = true);
|
bool disableParentWhenSpinning = true);
|
||||||
|
|
||||||
/*! Constructor - use this constructor to automatically create a modal
|
/** @brief Constructor
|
||||||
|
*
|
||||||
|
* Use this constructor to automatically create a modal
|
||||||
* ("blocking") spinner on top of the calling widget/window. If a valid
|
* ("blocking") spinner on top of the calling widget/window. If a valid
|
||||||
* parent widget is provided, "centreOnParent" will ensure that
|
* parent widget is provided, "centreOnParent" will ensure that
|
||||||
* QtWaitingSpinner automatically centres itself on it, if not,
|
* QtWaitingSpinner automatically centres itself on it, if not,
|
||||||
* "centreOnParent" is ignored. */
|
* @p centerOnParent is ignored.
|
||||||
|
*/
|
||||||
WaitingSpinnerWidget(Qt::WindowModality modality,
|
WaitingSpinnerWidget(Qt::WindowModality modality,
|
||||||
QWidget *parent = nullptr,
|
QWidget *parent = nullptr,
|
||||||
bool centerOnParent = true,
|
bool centerOnParent = true,
|
||||||
bool disableParentWhenSpinning = true);
|
bool disableParentWhenSpinning = true);
|
||||||
|
|
||||||
public slots:
|
WaitingSpinnerWidget(const WaitingSpinnerWidget&) = delete;
|
||||||
void start();
|
WaitingSpinnerWidget& operator=(const WaitingSpinnerWidget&) = delete;
|
||||||
void stop();
|
|
||||||
|
|
||||||
public:
|
|
||||||
void setColor(QColor color);
|
void setColor(QColor color);
|
||||||
void setTextColor(QColor color);
|
void setTextColor(QColor color);
|
||||||
void setRoundness(qreal roundness);
|
void setRoundness(qreal roundness);
|
||||||
@ -85,7 +88,11 @@ public:
|
|||||||
|
|
||||||
bool isSpinning() const;
|
bool isSpinning() const;
|
||||||
|
|
||||||
private slots:
|
public Q_SLOTS:
|
||||||
|
void start();
|
||||||
|
void stop();
|
||||||
|
|
||||||
|
private Q_SLOTS:
|
||||||
void rotate();
|
void rotate();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@ -117,10 +124,6 @@ private:
|
|||||||
QSize _imageSize;
|
QSize _imageSize;
|
||||||
QColor _textColor;
|
QColor _textColor;
|
||||||
|
|
||||||
private:
|
|
||||||
WaitingSpinnerWidget(const WaitingSpinnerWidget&);
|
|
||||||
WaitingSpinnerWidget& operator=(const WaitingSpinnerWidget&);
|
|
||||||
|
|
||||||
QTimer *_timer;
|
QTimer *_timer;
|
||||||
bool _centerOnParent;
|
bool _centerOnParent;
|
||||||
bool _disableParentWhenSpinning;
|
bool _disableParentWhenSpinning;
|
||||||
|
Loading…
Reference in New Issue
Block a user