Commit 9d692dbc authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Rename as it's the name of a signal

parent ebedecf8
......@@ -38,7 +38,7 @@ DKIMManagerKeyWidget::DKIMManagerKeyWidget(QWidget *parent)
mainLayout->addWidget(searchLineEdit);
mainLayout->addWidget(mTreeWidget);
connect(mTreeWidget, &QTreeWidget::customContextMenuRequested, this, &DKIMManagerKeyWidget::customContextMenuRequested);
connect(mTreeWidget, &QTreeWidget::customContextMenuRequested, this, &DKIMManagerKeyWidget::slotCustomContextMenuRequested);
}
DKIMManagerKeyWidget::~DKIMManagerKeyWidget()
......@@ -55,7 +55,7 @@ void DKIMManagerKeyWidget::restoreHeaders(const QByteArray &header)
mTreeWidget->header()->restoreState(header);
}
void DKIMManagerKeyWidget::customContextMenuRequested(const QPoint &pos)
void DKIMManagerKeyWidget::slotCustomContextMenuRequested(const QPoint &pos)
{
QTreeWidgetItem *item = mTreeWidget->itemAt(pos);
QMenu menu(this);
......
......@@ -27,7 +27,7 @@ public:
Q_REQUIRED_RESULT QByteArray saveHeaders() const;
void restoreHeaders(const QByteArray &header);
private:
void customContextMenuRequested(const QPoint &);
void slotCustomContextMenuRequested(const QPoint &);
QTreeWidget *mTreeWidget = nullptr;
};
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment