aboutsummaryrefslogtreecommitdiff
path: root/src/aoemotebutton.cpp
diff options
context:
space:
mode:
authorSalanto <62221668+Salanto@users.noreply.github.com>2021-12-11 00:28:00 +0100
committerSalanto <62221668+Salanto@users.noreply.github.com>2021-12-11 02:09:27 +0100
commitbc49b3e976e4df01e983a9c9daea28287b9bee75 (patch)
tree9aa25ae92b58d6484c729a1a250121d54e431dfa /src/aoemotebutton.cpp
parentb8572f8afcba737182ceb243d14e82a544fb34ee (diff)
Update slots/signals to Qt5 connection style and eliminate some clazy warnings
Diffstat (limited to 'src/aoemotebutton.cpp')
-rw-r--r--src/aoemotebutton.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/aoemotebutton.cpp b/src/aoemotebutton.cpp
index 3260a944..638d49da 100644
--- a/src/aoemotebutton.cpp
+++ b/src/aoemotebutton.cpp
@@ -11,7 +11,7 @@ AOEmoteButton::AOEmoteButton(QWidget *p_parent, AOApplication *p_ao_app,
this->move(p_x, p_y);
this->resize(p_w, p_h);
- connect(this, SIGNAL(clicked()), this, SLOT(on_clicked()));
+ connect(this, &AOEmoteButton::clicked, this, &AOEmoteButton::on_clicked);
}
void AOEmoteButton::set_image(QString p_image, QString p_emote_comment)
@@ -67,4 +67,4 @@ void AOEmoteButton::set_char_image(QString p_char, int p_emote, QString suffix)
this->set_image(image_path, ao_app->get_emote_comment(p_char, p_emote));
}
-void AOEmoteButton::on_clicked() { emote_clicked(m_id); }
+void AOEmoteButton::on_clicked() { emit emote_clicked(m_id); }