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
bddce1e2
Commit
bddce1e2
authored
Dec 18, 2018
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: Fixed missing callback in xtt_fileview.
parent
bc947761
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
xtt/lib/xtt/qt/xtt_fileview_qt.cqt
xtt/lib/xtt/qt/xtt_fileview_qt.cqt
+3
-7
xtt/lib/xtt/qt/xtt_fileview_qt.h
xtt/lib/xtt/qt/xtt_fileview_qt.h
+4
-0
No files found.
xtt/lib/xtt/qt/xtt_fileview_qt.c
pp
→
xtt/lib/xtt/qt/xtt_fileview_qt.c
qt
View file @
bddce1e2
...
...
@@ -84,13 +84,11 @@ void XttFileviewQtWidget::list_ok_cb(const QString& file)
strncpy(input_text, qPrintableLatin1(file), sizeof(input_text));
/*
if (!streq(filetype, "")) {
if (!streq(fileview->filetype, "")) {
if (file.indexOf('.') == 0) {
strcat(input_text, filetype);
strcat(input_text, file
view->file
type);
}
}
*/
for (int i = 0; i < fileview->filecnt; i++) {
if (streq(fileview->filelist[i], input_text)) {
...
...
@@ -117,7 +115,6 @@ void XttFileviewQtWidget::list_ok_cb(const QString& file)
void XttFileviewQtWidget::closeEvent(QCloseEvent* event)
{
debug_print
(
"XttFileviewQtWidget::closeEvent
\n
"
);
free(fileview->filelist);
delete fileview;
QWidget::closeEvent(event);
...
...
@@ -157,7 +154,6 @@ XttFileviewQt::XttFileviewQt(void* xn_parent_ctx, QWidget* xn_parent_wid,
}
toplevel = new XttFileviewQtWidget(this, xn_parent_wid);
toplevel
->
setToolTip
(
fl
(
"xtt_fileview widget"
));
toplevel->setMinimumSize(500, 500);
toplevel->setWindowTitle(translate_utf8(xn_title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -175,7 +171,7 @@ XttFileviewQt::XttFileviewQt(void* xn_parent_ctx, QWidget* xn_parent_wid,
}
QObject::connect(toplevel, SIGNAL(fileSelected(const QString&)), toplevel,
SLOT
(
XttFileviewQtWidget
::
list_ok_cb
(
const
QString
&
)));
SLOT(list_ok_cb(const QString&)));
toplevel->exec();
}
\ No newline at end of file
xtt/lib/xtt/qt/xtt_fileview_qt.h
View file @
bddce1e2
...
...
@@ -37,6 +37,8 @@
#ifndef xtt_fileview_qt_h
#define xtt_fileview_qt_h
#include "pwr.h"
#include "xtt_fileview.h"
#include <QFileDialog>
...
...
@@ -77,6 +79,8 @@ private:
};
class
XttFileviewQtWidget
:
public
QFileDialog
{
Q_OBJECT
public:
XttFileviewQtWidget
(
XttFileviewQt
*
parent_ctx
,
QWidget
*
parent
)
:
QFileDialog
(
parent
),
fileview
(
parent_ctx
)
...
...
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