QScopedPointer doesn't support deleting from outside.
--HG-- branch : develop
This commit is contained in:
parent
b31a8d4c6b
commit
4ed5fd9329
|
@ -183,7 +183,7 @@ void VWidgetDetails::ToggleSectionDetails(bool select)
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void VWidgetDetails::ShowContextMenu(const QPoint &pos)
|
||||
{
|
||||
QScopedPointer<QMenu> menu(new QMenu(this));
|
||||
QScopedPointer<QMenu> menu(new QMenu());
|
||||
QAction *actionSelectAll = menu->addAction(tr("Select all"));
|
||||
QAction *actionSelectNone = menu->addAction(tr("Select none"));
|
||||
|
||||
|
|
|
@ -103,7 +103,7 @@ void VWidgetGroups::CtxMenu(const QPoint &pos)
|
|||
item = ui->tableWidget->item(row, 0);
|
||||
const quint32 id = item->data(Qt::UserRole).toUInt();
|
||||
|
||||
QScopedPointer<QMenu> menu(new QMenu(this));
|
||||
QScopedPointer<QMenu> menu(new QMenu());
|
||||
QAction *actionRename = menu->addAction(tr("Rename"));
|
||||
QAction *actionDelete = menu->addAction(tr("Delete"));
|
||||
QAction *selectedAction = menu->exec(ui->tableWidget->viewport()->mapToGlobal(pos));
|
||||
|
|
|
@ -218,7 +218,7 @@ void DialogPiecePath::ShowContextMenu(const QPoint &pos)
|
|||
return;
|
||||
}
|
||||
|
||||
QScopedPointer<QMenu> menu(new QMenu(this));
|
||||
QScopedPointer<QMenu> menu(new QMenu());
|
||||
|
||||
QListWidgetItem *rowItem = ui->listWidget->item(row);
|
||||
SCASSERT(rowItem != nullptr);
|
||||
|
|
|
@ -482,7 +482,7 @@ void DialogSeamAllowance::ShowMainPathContextMenu(const QPoint &pos)
|
|||
return;
|
||||
}
|
||||
|
||||
QScopedPointer<QMenu> menu(new QMenu(this));
|
||||
QScopedPointer<QMenu> menu(new QMenu());
|
||||
|
||||
QListWidgetItem *rowItem = ui->listWidgetMainPath->item(row);
|
||||
SCASSERT(rowItem != nullptr);
|
||||
|
@ -524,7 +524,7 @@ void DialogSeamAllowance::ShowCustomSAContextMenu(const QPoint &pos)
|
|||
return;
|
||||
}
|
||||
|
||||
QScopedPointer<QMenu> menu(new QMenu(this));
|
||||
QScopedPointer<QMenu> menu(new QMenu());
|
||||
QAction *actionOption = menu->addAction(QIcon::fromTheme("preferences-other"), tr("Options"));
|
||||
|
||||
QListWidgetItem *rowItem = ui->listWidgetCustomSA->item(row);
|
||||
|
@ -574,7 +574,7 @@ void DialogSeamAllowance::ShowInternalPathsContextMenu(const QPoint &pos)
|
|||
return;
|
||||
}
|
||||
|
||||
QScopedPointer<QMenu> menu(new QMenu(this));
|
||||
QScopedPointer<QMenu> menu(new QMenu());
|
||||
QAction *actionOption = menu->addAction(QIcon::fromTheme("preferences-other"), tr("Options"));
|
||||
QAction *actionDelete = menu->addAction(QIcon::fromTheme("edit-delete"), tr("Delete"));
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user