Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Calamares
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osak
Calamares
Commits
fac86623
Commit
fac86623
authored
Apr 15, 2022
by
Adriaan de Groot
Browse files
Options
Downloads
Patches
Plain Diff
[3rdparty] Tidy up access and API dox
parent
15dc4755
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
3rdparty/waitingspinnerwidget.h
+19
-16
19 additions, 16 deletions
3rdparty/waitingspinnerwidget.h
with
19 additions
and
16 deletions
3rdparty/waitingspinnerwidget.h
+
19
−
16
View file @
fac86623
...
...
@@ -38,27 +38,30 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
class
WaitingSpinnerWidget
:
public
QWidget
{
Q_OBJECT
public:
/*! Constructor for "standard" widget behaviour - use this
* constructor if you wish to, e.g. embed your widget in another. */
/** @brief Constructor for "standard" widget behaviour
*
* Use this constructor if you wish to, e.g. embed your widget in another.
*/
WaitingSpinnerWidget
(
QWidget
*
parent
=
nullptr
,
bool
centerOnParent
=
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
* parent widget is provided, "centreOnParent" will ensure that
* QtWaitingSpinner automatically centres itself on it, if not,
* "centreOnParent" is ignored. */
* @p centerOnParent is ignored.
*/
WaitingSpinnerWidget
(
Qt
::
WindowModality
modality
,
QWidget
*
parent
=
nullptr
,
bool
centerOnParent
=
true
,
bool
disableParentWhenSpinning
=
true
);
public
slots
:
void
start
();
void
stop
();
WaitingSpinnerWidget
(
const
WaitingSpinnerWidget
&
)
=
delete
;
WaitingSpinnerWidget
&
operator
=
(
const
WaitingSpinnerWidget
&
)
=
delete
;
public:
void
setColor
(
QColor
color
);
void
setTextColor
(
QColor
color
);
void
setRoundness
(
qreal
roundness
);
...
...
@@ -85,7 +88,11 @@ public:
bool
isSpinning
()
const
;
private
slots
:
public
Q_SLOTS
:
void
start
();
void
stop
();
private
Q_SLOTS
:
void
rotate
();
protected:
...
...
@@ -117,10 +124,6 @@ private:
QSize
_imageSize
;
QColor
_textColor
;
private:
WaitingSpinnerWidget
(
const
WaitingSpinnerWidget
&
);
WaitingSpinnerWidget
&
operator
=
(
const
WaitingSpinnerWidget
&
);
QTimer
*
_timer
;
bool
_centerOnParent
;
bool
_disableParentWhenSpinning
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment