Disable QT keywords to avoid clashes with other libraries. (#5882)
This commit is contained in:
@@ -89,7 +89,7 @@ public:
|
||||
|
||||
static bool supportsCustomWindowFrame();
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void topMostChanged(bool topMost);
|
||||
|
||||
protected:
|
||||
|
||||
@@ -136,7 +136,7 @@ ColorPickerDialog::ColorPickerDialog(QColor color, QWidget *parent)
|
||||
new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
|
||||
|
||||
QObject::connect(buttonBox, &QDialogButtonBox::accepted, this, [this] {
|
||||
emit this->colorConfirmed(this->color());
|
||||
this->colorConfirmed(this->color());
|
||||
this->close();
|
||||
});
|
||||
QObject::connect(buttonBox, &QDialogButtonBox::rejected, this,
|
||||
@@ -156,7 +156,7 @@ void ColorPickerDialog::setColor(const QColor &color)
|
||||
return;
|
||||
}
|
||||
this->color_ = color;
|
||||
emit this->colorChanged(color);
|
||||
this->colorChanged(color);
|
||||
}
|
||||
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -13,11 +13,11 @@ public:
|
||||
|
||||
QColor color() const;
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void colorChanged(QColor color);
|
||||
void colorConfirmed(QColor color);
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void setColor(const QColor &color);
|
||||
|
||||
private:
|
||||
|
||||
@@ -25,7 +25,7 @@ public:
|
||||
|
||||
std::shared_ptr<Hotkey> data();
|
||||
|
||||
protected slots:
|
||||
protected Q_SLOTS:
|
||||
/**
|
||||
* @brief validates the hotkey
|
||||
*
|
||||
|
||||
@@ -26,7 +26,7 @@ public:
|
||||
protected:
|
||||
void themeChangedEvent() override;
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void updateSuggestions(const QString &text);
|
||||
|
||||
private:
|
||||
|
||||
@@ -290,7 +290,7 @@ void Button::mousePressEvent(QMouseEvent *event)
|
||||
|
||||
this->mouseDown_ = true;
|
||||
|
||||
emit this->leftMousePress();
|
||||
this->leftMousePress();
|
||||
|
||||
if (this->menu_ && !this->menuVisible_)
|
||||
{
|
||||
@@ -317,13 +317,13 @@ void Button::mouseReleaseEvent(QMouseEvent *event)
|
||||
|
||||
if (isInside)
|
||||
{
|
||||
emit leftClicked();
|
||||
leftClicked();
|
||||
}
|
||||
}
|
||||
|
||||
if (isInside)
|
||||
{
|
||||
emit clicked(event->button());
|
||||
clicked(event->button());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ public:
|
||||
|
||||
void setMenu(std::unique_ptr<QMenu> menu);
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void leftClicked();
|
||||
void clicked(Qt::MouseButton button);
|
||||
void leftMousePress();
|
||||
|
||||
@@ -147,7 +147,7 @@ void NotebookButton::mouseReleaseEvent(QMouseEvent *event)
|
||||
|
||||
update();
|
||||
|
||||
emit leftClicked();
|
||||
leftClicked();
|
||||
}
|
||||
|
||||
Button::mouseReleaseEvent(event);
|
||||
|
||||
@@ -31,7 +31,7 @@ protected:
|
||||
void hideEvent(QHideEvent *) override;
|
||||
void showEvent(QShowEvent *) override;
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void leftClicked();
|
||||
|
||||
private:
|
||||
|
||||
@@ -67,7 +67,7 @@ private:
|
||||
|
||||
bool eventFilter(QObject *obj, QEvent *event) override;
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void insertCompletion(const QString &completion);
|
||||
};
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ void SettingsDialogTab::setSelected(bool _selected)
|
||||
// height: <checkbox-size>px;
|
||||
|
||||
this->selected_ = _selected;
|
||||
emit selectedChanged(selected_);
|
||||
selectedChanged(selected_);
|
||||
}
|
||||
|
||||
SettingsPage *SettingsDialogTab::page()
|
||||
|
||||
@@ -37,7 +37,7 @@ public:
|
||||
|
||||
const QString &name() const;
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void selectedChanged(bool);
|
||||
|
||||
private:
|
||||
|
||||
@@ -9,14 +9,14 @@ SignalLabel::SignalLabel(QWidget *parent, Qt::WindowFlags f)
|
||||
|
||||
void SignalLabel::mouseDoubleClickEvent(QMouseEvent *ev)
|
||||
{
|
||||
emit this->mouseDoubleClick(ev);
|
||||
this->mouseDoubleClick(ev);
|
||||
}
|
||||
|
||||
void SignalLabel::mousePressEvent(QMouseEvent *event)
|
||||
{
|
||||
if (event->button() == Qt::LeftButton)
|
||||
{
|
||||
emit leftMouseDown();
|
||||
leftMouseDown();
|
||||
}
|
||||
|
||||
event->ignore();
|
||||
@@ -26,7 +26,7 @@ void SignalLabel::mouseReleaseEvent(QMouseEvent *event)
|
||||
{
|
||||
if (event->button() == Qt::LeftButton)
|
||||
{
|
||||
emit leftMouseUp();
|
||||
leftMouseUp();
|
||||
}
|
||||
|
||||
event->ignore();
|
||||
@@ -34,7 +34,7 @@ void SignalLabel::mouseReleaseEvent(QMouseEvent *event)
|
||||
|
||||
void SignalLabel::mouseMoveEvent(QMouseEvent *event)
|
||||
{
|
||||
emit this->mouseMove(event);
|
||||
this->mouseMove(event);
|
||||
event->ignore();
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ public:
|
||||
explicit SignalLabel(QWidget *parent = nullptr, Qt::WindowFlags f = {});
|
||||
~SignalLabel() override = default;
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void mouseDoubleClick(QMouseEvent *ev);
|
||||
|
||||
void leftMouseDown();
|
||||
|
||||
@@ -156,7 +156,7 @@ void AlphaSlider::setAlpha(int alpha)
|
||||
this->alpha_ = alpha;
|
||||
this->color_.setAlpha(alpha);
|
||||
|
||||
emit this->colorChanged(this->color_);
|
||||
this->colorChanged(this->color_);
|
||||
this->update();
|
||||
}
|
||||
|
||||
|
||||
@@ -15,10 +15,10 @@ public:
|
||||
|
||||
int alpha() const;
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void colorChanged(QColor color) const;
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void setColor(QColor color);
|
||||
|
||||
protected:
|
||||
|
||||
@@ -16,7 +16,7 @@ public:
|
||||
QColor color() const;
|
||||
|
||||
// NOLINTNEXTLINE(readability-redundant-access-specifiers)
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void setColor(const QColor &color);
|
||||
|
||||
protected:
|
||||
|
||||
@@ -162,7 +162,7 @@ void ColorInput::emitUpdate()
|
||||
{
|
||||
this->updateComponents();
|
||||
// our components triggered this update, emit the new color
|
||||
emit this->colorChanged(this->currentColor_);
|
||||
this->colorChanged(this->currentColor_);
|
||||
}
|
||||
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -17,10 +17,10 @@ public:
|
||||
|
||||
QColor color() const;
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void colorChanged(QColor color);
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void setColor(QColor color);
|
||||
|
||||
private:
|
||||
|
||||
@@ -158,7 +158,7 @@ void HueSlider::setHue(int hue)
|
||||
this->color_.getHsv(&h, &s, &v, &a);
|
||||
this->color_.setHsv(this->hue_, s, v, a);
|
||||
|
||||
emit this->colorChanged(this->color_);
|
||||
this->colorChanged(this->color_);
|
||||
this->update();
|
||||
}
|
||||
|
||||
|
||||
@@ -15,10 +15,10 @@ public:
|
||||
|
||||
int hue() const;
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void colorChanged(QColor color) const;
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void setColor(QColor color);
|
||||
|
||||
protected:
|
||||
|
||||
@@ -186,7 +186,7 @@ void SBCanvas::emitUpdatedColor()
|
||||
{
|
||||
this->color_.setHsv(this->hue_, this->saturation_, this->brightness_,
|
||||
this->color_.alpha());
|
||||
emit this->colorChanged(this->color_);
|
||||
this->colorChanged(this->color_);
|
||||
}
|
||||
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -17,10 +17,10 @@ public:
|
||||
int saturation() const;
|
||||
int brightness() const;
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void colorChanged(QColor color) const;
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void setColor(QColor color);
|
||||
|
||||
protected:
|
||||
|
||||
@@ -213,7 +213,7 @@ void GenericListView::focusPreviousCompletion()
|
||||
|
||||
void GenericListView::requestClose()
|
||||
{
|
||||
emit this->closeRequested();
|
||||
this->closeRequested();
|
||||
}
|
||||
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -26,7 +26,7 @@ public:
|
||||
|
||||
void refreshTheme(const Theme &theme);
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void closeRequested();
|
||||
|
||||
private:
|
||||
|
||||
@@ -177,7 +177,7 @@ private:
|
||||
pajlada::Signals::SignalHolder signalHolder_;
|
||||
std::vector<boost::signals2::scoped_connection> bSignals_;
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void addSibling();
|
||||
void deleteFromContainer();
|
||||
void changeChannel();
|
||||
|
||||
@@ -102,7 +102,7 @@ private:
|
||||
pajlada::Signals::SignalHolder channelConnections_;
|
||||
std::vector<boost::signals2::scoped_connection> bSignals_;
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void reloadChannelEmotes();
|
||||
void reloadSubscriberEmotes();
|
||||
void reconnect();
|
||||
|
||||
@@ -168,7 +168,7 @@ protected:
|
||||
// set the height of the split input to 0 if we're supposed to be hidden instead
|
||||
bool hidden{false};
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void editTextChanged();
|
||||
|
||||
friend class Split;
|
||||
|
||||
Reference in New Issue
Block a user