mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
TBT editor: logos manager: added a "Close" button.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@1804 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
parent
3e4b948fd6
commit
0c961cb884
@ -293,7 +293,22 @@ void QETTitleBlockTemplateEditor::editLogos() {
|
||||
if (!logo_manager_) {
|
||||
initLogoManager();
|
||||
}
|
||||
logo_manager_ -> show();
|
||||
|
||||
logo_manager_ -> layout() -> setContentsMargins(0, 0, 0, 0);
|
||||
QDialogButtonBox *buttons = new QDialogButtonBox(QDialogButtonBox::Close);
|
||||
|
||||
QVBoxLayout *vlayout0 = new QVBoxLayout();
|
||||
vlayout0 -> addWidget(logo_manager_);
|
||||
vlayout0 -> addWidget(buttons);
|
||||
|
||||
QDialog d(this);
|
||||
d.setWindowTitle(logo_manager_ -> windowTitle());
|
||||
d.setLayout(vlayout0);
|
||||
connect(buttons, SIGNAL(rejected()), &d, SLOT(reject()));
|
||||
d.exec();
|
||||
|
||||
// prevent the logo manager from being deleted along with the dialog
|
||||
logo_manager_ -> setParent(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user