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
889d9fe0
Commit
889d9fe0
authored
Dec 04, 2018
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: Added destructor to XAttOne.
parent
3eaf7f35
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
xtt/lib/xtt/qt/xtt_xattone_qt.cqt
xtt/lib/xtt/qt/xtt_xattone_qt.cqt
+7
-9
xtt/lib/xtt/qt/xtt_xattone_qt.h
xtt/lib/xtt/qt/xtt_xattone_qt.h
+1
-0
No files found.
xtt/lib/xtt/qt/xtt_xattone_qt.cqt
View file @
889d9fe0
...
...
@@ -183,6 +183,7 @@ int XAttOneQt::change_value(int set_focus)
set_prompt(Lng::translate("value >"));
input_open = 1;
}
toplevel->update();
return XATT__SUCCESS;
}
...
...
@@ -232,9 +233,13 @@ void XAttOneQt::pop()
::pop(toplevel);
}
XAttOneQt::~XAttOneQt()
{
delete cmd_entry;
}
void XAttOneQtWidget::closeEvent(QCloseEvent* event)
{
debug_print("XAttOneQtWidget::closeEvent\n");
if (attone->close_cb) {
(attone->close_cb)(attone->parent_ctx, attone);
} else {
...
...
@@ -288,11 +293,8 @@ XAttOneQt::XAttOneQt(QWidget* xa_parent_wid, void* xa_parent_ctx,
// Buttons
QDialogButtonBox* buttons = new QDialogButtonBox();
buttons->addButton(QDialogButtonBox::Ok);
buttons->button(QDialogButtonBox::Ok)->setFixedSize(70, 25);
buttons->addButton(QDialogButtonBox::Apply);
buttons->button(QDialogButtonBox::Apply)->setFixedSize(70, 25);
buttons->addButton(QDialogButtonBox::Cancel);
buttons->button(QDialogButtonBox::Cancel)->setFixedSize(70, 25);
QObject::connect(buttons->button(QDialogButtonBox::Ok), SIGNAL(clicked()),
toplevel, SLOT(activate_cmd_scrolled_ok()));
QObject::connect(buttons->button(QDialogButtonBox::Apply), SIGNAL(clicked()),
...
...
@@ -322,11 +324,7 @@ XAttOneQt::XAttOneQt(QWidget* xa_parent_wid, void* xa_parent_ctx,
toplevel->setLayout(vbox);
toplevel->show();
if (priv & pwr_mPrv_RtWrite || priv & pwr_mPrv_System) {
access_rw = 1;
} else {
access_rw = 0;
}
access_rw = ((priv & pwr_mPrv_RtWrite) || (priv & pwr_mPrv_System));
msg_label->setVisible(false);
if (access_rw) {
...
...
xtt/lib/xtt/qt/xtt_xattone_qt.h
View file @
889d9fe0
...
...
@@ -52,6 +52,7 @@ class XAttOneQt : public XAttOne {
public:
XAttOneQt
(
QWidget
*
xa_parent_wid
,
void
*
xa_parent_ctx
,
pwr_sAttrRef
*
xa_objar
,
char
*
xa_title
,
unsigned
int
xa_priv
,
int
*
xa_sts
);
~
XAttOneQt
();
QWidget
*
form_widget
;
QLabel
*
msg_label
;
...
...
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