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
6e9a8354
Commit
6e9a8354
authored
Jan 03, 2019
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: Added destructor to cow_pb_gsd_attr
parent
46a2037e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
profibus/lib/cow/qt/cow_pb_gsd_attr_qt.cqt
profibus/lib/cow/qt/cow_pb_gsd_attr_qt.cqt
+7
-8
profibus/lib/cow/qt/cow_pb_gsd_attr_qt.h
profibus/lib/cow/qt/cow_pb_gsd_attr_qt.h
+1
-1
profibus/lib/cow/qt/cow_pb_gsd_attrnav_qt.cpp
profibus/lib/cow/qt/cow_pb_gsd_attrnav_qt.cpp
+1
-1
No files found.
profibus/lib/cow/qt/cow_pb_gsd_attr_qt.cqt
View file @
6e9a8354
...
...
@@ -171,11 +171,6 @@ void GsdAttrQtWidget::activate_cmd_apply()
attr->activate_cmd_apply();
}
void GsdAttrQtWidget::activate_cmd_ca()
{
attr->activate_cmd_ca();
}
void GsdAttrQtWidget::activate_cmd_input()
{
attr->cmd_prompt->setVisible(false);
...
...
@@ -208,11 +203,15 @@ void GsdAttrQtWidget::focusInEvent(QFocusEvent* event)
void GsdAttrQtWidget::closeEvent(QCloseEvent* event)
{
debug_print("GsdAttrQtWidget::closeEvent\n");
attr->activate_exit();
QWidget::closeEvent(event);
}
GsdAttrQt::~GsdAttrQt()
{
delete attrnav;
}
GsdAttrQt::GsdAttrQt(QWidget* a_parent_wid, void* a_parent_ctx, void* a_object,
pb_gsd* a_gsd, int a_edit_mode)
: GsdAttr(a_parent_ctx, a_object, a_gsd, a_edit_mode)
...
...
@@ -277,7 +276,7 @@ GsdAttrQt::GsdAttrQt(QWidget* a_parent_wid, void* a_parent_ctx, void* a_object,
cmd_input = new QLineEdit();
cmd_input->setFixedHeight(25);
QObject::connect(cmd_input, SIGNAL(editing
_f
inished()), toplevel,
QObject::connect(cmd_input, SIGNAL(editing
F
inished()), toplevel,
SLOT(valchanged_cmd_input()));
statusbar->addWidget(msg_label);
...
...
@@ -294,7 +293,7 @@ GsdAttrQt::GsdAttrQt(QWidget* a_parent_wid, void* a_parent_ctx, void* a_object,
QObject::connect(buttons->button(QDialogButtonBox::Apply), SIGNAL(clicked()),
toplevel, SLOT(activate_cmd_apply()));
QObject::connect(buttons->button(QDialogButtonBox::Cancel), SIGNAL(clicked()),
toplevel, SLOT(
activate_cmd_ca
()));
toplevel, SLOT(
close
()));
QVBoxLayout* vbox = new QVBoxLayout(toplevel);
vbox->setMenuBar(menu_bar);
...
...
profibus/lib/cow/qt/cow_pb_gsd_attr_qt.h
View file @
6e9a8354
...
...
@@ -62,6 +62,7 @@ public:
GsdAttrQt
(
QWidget
*
a_parent_wid
,
void
*
a_parent_ctx
,
void
*
a_object
,
pb_gsd
*
a_gsd
,
int
a_edit_mode
);
~
GsdAttrQt
();
void
message
(
char
severity
,
const
char
*
message
);
void
set_prompt
(
const
char
*
prompt
);
...
...
@@ -98,7 +99,6 @@ public slots:
void
activate_cmd_input
();
void
activate_cmd_ok
();
void
activate_cmd_apply
();
void
activate_cmd_ca
();
void
valchanged_cmd_input
(){}
...
...
profibus/lib/cow/qt/cow_pb_gsd_attrnav_qt.cpp
View file @
6e9a8354
...
...
@@ -48,7 +48,6 @@ GsdAttrNavQt::GsdAttrNavQt(void* xn_parent_ctx, QWidget* xn_parent_wid,
pwr_tStatus
*
status
)
:
GsdAttrNav
(
xn_parent_ctx
,
xn_name
,
xn_gsd
,
xn_edit_mode
,
status
)
{
debug_print
(
"creating a scrolledbrowwidgetqt
\n
"
);
form_widget
=
scrolledbrowwidgetqt_new
(
init_brow_cb
,
this
,
&
brow_widget
);
*
w
=
form_widget
;
...
...
@@ -61,6 +60,7 @@ GsdAttrNavQt::GsdAttrNavQt(void* xn_parent_ctx, QWidget* xn_parent_wid,
GsdAttrNavQt
::~
GsdAttrNavQt
()
{
delete
trace_timerid
;
delete
wow
;
delete
brow
;
form_widget
->
close
();
}
...
...
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