mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Simplify code
Does anybody know why this was the way it was?
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user