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
f4724c02
Commit
f4724c02
authored
Nov 27, 2018
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: Added Wpkg destructor.
parent
1ca88cff
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
wb/lib/wb/qt/wb_wpkg_qt.cqt
wb/lib/wb/qt/wb_wpkg_qt.cqt
+6
-2
wb/lib/wb/qt/wb_wpkg_qt.h
wb/lib/wb/qt/wb_wpkg_qt.h
+2
-0
wb/lib/wb/qt/wb_wpkgnav_qt.cpp
wb/lib/wb/qt/wb_wpkgnav_qt.cpp
+0
-4
No files found.
wb/lib/wb/qt/wb_wpkg_qt.cqt
View file @
f4724c02
...
...
@@ -154,9 +154,14 @@ void WPkgQt::reset_cursor()
toplevel->window()->unsetCursor();
}
WPkgQt::~WPkgQt()
{
delete wow;
delete wpkgnav;
}
void WPkgQtWidget::closeEvent(QCloseEvent* event)
{
debug_print("WPkgQtWidget::closeEvent\n");
if (pkg->close_cb) {
(pkg->close_cb)(pkg->parent_ctx);
} else {
...
...
@@ -171,7 +176,6 @@ WPkgQt::WPkgQt(QWidget* wa_parent_wid, void* wa_parent_ctx)
int sts;
toplevel = new WPkgQtWidget(this, wa_parent_wid);
toplevel->setToolTip(fl("wb_wpkg widget"));
toplevel->setMinimumSize(600, 600);
toplevel->setWindowTitle(fl("Distributor"));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
wb/lib/wb/qt/wb_wpkg_qt.h
View file @
f4724c02
...
...
@@ -50,6 +50,8 @@ class WPkgQtWidget;
class
WPkgQt
:
public
WPkg
{
public:
WPkgQt
(
QWidget
*
wa_parent_wid
,
void
*
wa_parent_ctx
);
~
WPkgQt
();
QWidget
*
brow_widget
;
QWidget
*
form_widget
;
QLabel
*
msg_label
;
...
...
wb/lib/wb/qt/wb_wpkgnav_qt.cpp
View file @
f4724c02
...
...
@@ -45,18 +45,14 @@ WPkgNavQt::WPkgNavQt(void* wa_parent_ctx, QWidget* wa_parent_wid,
pwr_tStatus
*
status
)
:
WPkgNav
(
wa_parent_ctx
,
wa_name
,
wa_utility
,
status
)
{
debug_print
(
"creating a scrolledbrowwidgetqt
\n
"
);
form_widget
=
scrolledbrowwidgetqt_new
(
init_brow_cb
,
this
,
&
brow_widget
);
showNow
(
brow_widget
);
*
w
=
form_widget
;
*
status
=
1
;
}
WPkgNavQt
::~
WPkgNavQt
()
{
debug_print
(
"WPkgNavQt::~WPkgNavQt
\n
"
);
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