mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
QMenu must set a parent for correct position. #3
This commit is contained in:
@@ -338,7 +338,7 @@ void TitleBlockPropertiesWidget::initDialog(
|
||||
this,
|
||||
SLOT(duplicateCurrentTitleBlockTemplate()));
|
||||
|
||||
m_tbt_menu = new QMenu(tr("Title block templates actions"));
|
||||
m_tbt_menu = new QMenu(tr("Title block templates actions"), ui->m_tbt_pb);
|
||||
m_tbt_menu -> addAction(m_tbt_edit);
|
||||
m_tbt_menu -> addAction(m_tbt_duplicate);
|
||||
ui -> m_tbt_pb -> setMenu(m_tbt_menu);
|
||||
|
||||
Reference in New Issue
Block a user