Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
968d8f26
Commit
968d8f26
authored
Dec 03, 2018
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: Allocate wda class dialog on stack instead of heap.
parent
f4466f68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
wb/lib/wb/qt/wb_wda_qt.cqt
wb/lib/wb/qt/wb_wda_qt.cqt
+8
-10
No files found.
wb/lib/wb/qt/wb_wda_qt.cqt
View file @
968d8f26
...
...
@@ -376,9 +376,9 @@ void WdaQt::pop()
void WdaQt::open_class_dialog(char* hierstr, char* classstr, char* namestr)
{
// Create an input dialog
QDialog
* wdaclass_dia = new QDialog(
);
wdaclass_dia
->
setMinimumSize(500, 150);
wdaclass_dia
->
setWindowTitle(fl("Select Class"));
QDialog
wdaclass_dia(toplevel
);
wdaclass_dia
.
setMinimumSize(500, 150);
wdaclass_dia
.
setWindowTitle(fl("Select Class"));
//Do not set the "DeleteOnClose" attribute,
//we need to access the dialog fields after exec()
...
...
@@ -415,20 +415,20 @@ void WdaQt::open_class_dialog(char* hierstr, char* classstr, char* namestr)
buttons->button(QDialogButtonBox::Ok)->setFixedSize(70, 25);
buttons->button(QDialogButtonBox::Cancel)->setFixedSize(70, 25);
QObject::connect(buttons->button(QDialogButtonBox::Ok), SIGNAL(clicked()),
wdaclass_dia, SLOT(accept()));
&
wdaclass_dia, SLOT(accept()));
QObject::connect(buttons->button(QDialogButtonBox::Cancel), SIGNAL(clicked()),
wdaclass_dia, SLOT(reject()));
&
wdaclass_dia, SLOT(reject()));
QVBoxLayout* india_vbox = new QVBoxLayout(wdaclass_dia);
QVBoxLayout* india_vbox = new QVBoxLayout(
&
wdaclass_dia);
india_vbox->addLayout(india_hboxclass);
india_vbox->addLayout(india_hboxhier);
india_vbox->addLayout(india_hboxname);
add_expanding(india_vbox, india_hboxattrobj);
india_vbox->addWidget(separator(QFrame::HLine));
india_vbox->addWidget(buttons);
wdaclass_dia->setLayout(india_vbox);
int res = wdaclass_dia->exec();
wdaclass_dia.setLayout(india_vbox);
int res = wdaclass_dia.exec();
if (res == QDialog::Accepted) {
char* hiername = qPrintableLatin1(wdaclass_hiervalue->text());
char* searchname = qPrintableLatin1(wdaclass_namevalue->text());
...
...
@@ -437,8 +437,6 @@ void WdaQt::open_class_dialog(char* hierstr, char* classstr, char* namestr)
toplevel->class_activate_ok(hiername, searchname, classname, attrobjects);
}
delete wdaclass_dia;
}
void WdaQt::update_title()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment