Fix issue with signal/slot in message window

This commit is contained in:
Jordan Sherer
2025-06-27 15:46:50 -04:00
parent b203ef394c
commit 6b396e98cf
2 changed files with 3 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ MessageWindow::MessageWindow(QWidget *parent) :
ui->setupUi(this);
// connect selection model changed
connect(ui->messageTableWidget->selectionModel(), &QItemSelectionModel::selectionChanged, this, &MessageWindow::on_messageTableWidget_selectionChanged);
connect(ui->messageTableWidget->selectionModel(), &QItemSelectionModel::selectionChanged, this, &MessageWindow::messageTableSelectionChanged);
// reply when key pressed in the reply box
ui->replytextEdit->installEventFilter(new EventFilter::EnterKeyPress([this](QKeyEvent * const event)
@@ -151,7 +151,7 @@ QString MessageWindow::prepareReplyMessage(QString path, QString text){
return QString("%1 MSG %2").arg(path).arg(text);
}
void MessageWindow::on_messageTableWidget_selectionChanged(const QItemSelection &/*selected*/, const QItemSelection &/*deselected*/){
void MessageWindow::messageTableSelectionChanged(const QItemSelection &/*selected*/, const QItemSelection &/*deselected*/){
auto row = ui->messageTableWidget->currentRow();
// message column

View File

@@ -29,7 +29,7 @@ public slots:
QString prepareReplyMessage(QString path, QString text);
private slots:
void on_messageTableWidget_selectionChanged(const QItemSelection &/*selected*/, const QItemSelection &/*deselected*/);
void messageTableSelectionChanged(const QItemSelection &/*selected*/, const QItemSelection &/*deselected*/);
void on_replyPushButton_clicked();
private: