Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
calamares
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
16
Issues
16
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Applications
calamares
Commits
8d4c7767
Commit
8d4c7767
authored
May 18, 2020
by
Adriaan de Groot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[libcalamaresui] Document ClickableLabel
parent
f67d8ef1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
src/libcalamaresui/widgets/ClickableLabel.h
src/libcalamaresui/widgets/ClickableLabel.h
+12
-5
No files found.
src/libcalamaresui/widgets/ClickableLabel.h
View file @
8d4c7767
...
...
@@ -17,12 +17,19 @@
* along with Calamares. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef CLICKABLELABEL_H
#define CLICKABLELABEL_H
#ifndef
LIBCALAMARESUI_
CLICKABLELABEL_H
#define
LIBCALAMARESUI_
CLICKABLELABEL_H
#include <QLabel>
#include <Q
Time
>
#include <Q
ElapsedTimer
>
/** @brief A Label where the whole label area is clickable
*
* When clicking anywhere on the Label (text, background, whatever)
* the signal clicked() is emitted. Use this as a buddy for radio
* buttons or other clickable things where you want mouse interaction
* with the label, to be the same as mouse interaction with the control.
*/
class
ClickableLabel
:
public
QLabel
{
Q_OBJECT
...
...
@@ -39,7 +46,7 @@ protected:
virtual
void
mouseReleaseEvent
(
QMouseEvent
*
event
)
override
;
private:
Q
Time
m_time
;
Q
ElapsedTimer
m_time
;
};
#endif // CLICKABLELABEL_H
#endif //
LIBCALAMARESUI_
CLICKABLELABEL_H
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment