Skip to content

Commit e895a31

Browse files
committed
šŸ› small fix
1 parent 5f821df commit e895a31

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

ā€Žsrc/display/ihpushcard.cppā€Ž

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@
55
#include <QLabel>
66
#include <QPainter>
77
#include <QPainterPath>
8+
#include "signalhub.h"
89

910
IHPushCard::IHPushCard(QWidget *parent) : QPushButton(parent) {
1011
setupMainUI();
1112

1213
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+
});
1319
}
1420

1521
void IHPushCard::setupMainUI() {

0 commit comments

Comments
Ā (0)