Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
KTurtle
Commits
57ace239
Commit
57ace239
authored
Aug 06, 2021
by
Laurent Montel
😁
Browse files
Port to KNS3::QtQuickDialogWrapper
parent
786d248e
Pipeline
#73630
failed with stage
in 2 minutes and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/mainwindow.cpp
View file @
57ace239
...
...
@@ -33,7 +33,7 @@
#include
<KSharedConfig>
#include
<KToolBarPopupAction>
#include
<
kns3/downloaddialog.h
>
#include
<
KNS3/QtQuickDialogWrapper
>
#include
"interpreter/errormsg.h"
#include
"interpreter/translator.h"
...
...
@@ -1072,8 +1072,9 @@ void MainWindow::slotMessageDialog(const QString& text)
void
MainWindow
::
getNewExampleDialog
()
{
QPointer
<
KNS3
::
DownloadDialog
>
dialog
=
new
KNS3
::
DownloadDialog
(
this
);
dialog
->
exec
();
updateExamplesMenu
();
delete
dialog
;
KNS3
::
QtQuickDialogWrapper
dialog
(
QStringLiteral
(
"kturtle.knsrc"
));
const
QList
<
KNSCore
::
EntryInternal
>
entries
=
dialog
.
exec
();
if
(
entries
.
size
()
>
0
){
updateExamplesMenu
();
}
}
Write
Preview
Supports
Markdown
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