Avoid window overlap when editing templates.

This commit is contained in:
okrc 2022-10-11 23:33:12 +08:00
parent b488b1bfeb
commit 9d86b1b4bf
No known key found for this signature in database
GPG Key ID: 7BFFDD3B3BF40F01
1 changed files with 2 additions and 0 deletions

View File

@ -177,6 +177,8 @@ void COptionsWindow::OnTemplateDoubleClicked(QTreeWidgetItem* pItem, int Column)
QSharedPointer<CSbieIni> pTemplate = QSharedPointer<CSbieIni>(new CSbieIni(pItem->data(1, Qt::UserRole).toString(), m_pBox->GetAPI()));
COptionsWindow OptionsWindow(pTemplate, pItem->text(1));
QPoint ParentPos = mapToGlobal(rect().topLeft());
OptionsWindow.move(ParentPos.x() + 30, ParentPos.y() + 10);
OptionsWindow.exec();
if(pItem->text(0) == "Local")