Simplify code

Does anybody know why this was the way it was?
This commit is contained in:
Martin Kleusberg
2017-10-30 13:19:52 +01:00
parent 3a70b412e8
commit 9f17176bf6

View File

@@ -94,7 +94,7 @@ ExtendedTableWidget::ExtendedTableWidget(QWidget* parent) :
setContextMenuPolicy(Qt::CustomContextMenu);
// Set up context menu actions
connect(this, static_cast<void(QTableView::*)(const QPoint&)>(&QTableView::customContextMenuRequested),
connect(this, &QTableView::customContextMenuRequested,
[=](const QPoint& pos)
{
// Try to find out whether the current view is editable and (de)activate menu options according to that