We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f821df commit e895a31Copy full SHA for e895a31
1 file changed
āsrc/display/ihpushcard.cppā
@@ -5,11 +5,17 @@
5
#include <QLabel>
6
#include <QPainter>
7
#include <QPainterPath>
8
+#include "signalhub.h"
9
10
IHPushCard::IHPushCard(QWidget *parent) : QPushButton(parent) {
11
setupMainUI();
12
13
installEventFilter(this);
14
+
15
+ // Connect the clicked signal to the SignalHub's on_message_sent signal
16
+ connect(this, &IHPushCard::clicked, [&]() {
17
+ emit SignalHub::instance().on_message_sent(QString("You areļ¼") + m_intro, true);
18
+ });
19
}
20
21
void IHPushCard::setupMainUI() {
0 commit comments