forked from qt-creator/qt-creator
ProjectExplorer: Prevent context menu on ProjectSelector
The context menu on the ProjectSelector (outside the "SelectorTree") does not make much sense and pops up with an offset. Change-Id: I79aa3157e04b9d343077fdbc87b8f7cd891426b4 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -572,9 +572,6 @@ public:
|
||||
selectorView->setObjectName("ProjectSelector"); // Needed for dock widget state saving
|
||||
selectorView->setWindowTitle(Tr::tr("Project Selector"));
|
||||
selectorView->setAutoFillBackground(true);
|
||||
selectorView->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
connect(selectorView, &QWidget::customContextMenuRequested,
|
||||
this, &ProjectWindowPrivate::openContextMenu);
|
||||
|
||||
auto activeLabel = new QLabel(Tr::tr("Active Project"));
|
||||
QFont font = activeLabel->font();
|
||||
|
||||
Reference in New Issue
Block a user