Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Discover
Commits
2f7b1f58
Commit
2f7b1f58
authored
Feb 10, 2021
by
Aleix Pol Gonzalez
🐧
Committed by
Aleix Pol Gonzalez
Feb 10, 2021
Browse files
DiscoverAction: Fix wrong boilerplate code
BUG: 432692
parent
3fb0d529
Changes
2
Hide whitespace changes
Inline
Side-by-side
libdiscover/resources/DiscoverAction.cpp
View file @
2f7b1f58
...
...
@@ -53,7 +53,7 @@ void DiscoverAction::setIcon(const QIcon& icon)
void
DiscoverAction
::
setText
(
const
QString
&
text
)
{
if
(
text
!
=
m_text
)
if
(
text
=
=
m_text
)
return
;
m_text
=
text
;
...
...
@@ -62,7 +62,7 @@ void DiscoverAction::setText(const QString& text)
void
DiscoverAction
::
setToolTip
(
const
QString
&
toolTip
)
{
if
(
toolTip
!
=
m_toolTip
)
if
(
toolTip
=
=
m_toolTip
)
return
;
m_toolTip
=
toolTip
;
...
...
libdiscover/resources/DiscoverAction.h
View file @
2f7b1f58
...
...
@@ -17,7 +17,7 @@ class DISCOVERCOMMON_EXPORT DiscoverAction : public QObject
{
Q_OBJECT
Q_PROPERTY
(
QString
text
READ
text
WRITE
setText
NOTIFY
textChanged
)
Q_PROPERTY
(
QString
toolTip
READ
toolTip
WRITE
setToolTip
NOTIFY
t
ext
Changed
)
Q_PROPERTY
(
QString
toolTip
READ
toolTip
WRITE
setToolTip
NOTIFY
t
oolTip
Changed
)
Q_PROPERTY
(
QIcon
icon
READ
icon
WRITE
setIcon
NOTIFY
iconChanged
)
Q_PROPERTY
(
bool
enabled
READ
isEnabled
WRITE
setEnabled
NOTIFY
enabledChanged
)
Q_PROPERTY
(
bool
visible
READ
isVisible
WRITE
setVisible
NOTIFY
visibleChanged
)
...
...
Write
Preview
Supports
Markdown
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