Commit 2f7b1f58 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

DiscoverAction: Fix wrong boilerplate code

BUG: 432692
parent 3fb0d529
......@@ -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;
......
......@@ -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 textChanged)
Q_PROPERTY(QString toolTip READ toolTip WRITE setToolTip NOTIFY toolTipChanged)
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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment