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
Games
Kigo
Commits
8c7998f9
Commit
8c7998f9
authored
Jan 25, 2022
by
Laurent Montel
😁
Browse files
Port to KNS3::QtQuickDialogWrapper
parent
190c8aed
Pipeline
#128584
failed with stage
in 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/gui/mainwindow.cpp
View file @
8c7998f9
...
...
@@ -19,7 +19,7 @@
#include <QAction>
#include <KActionCollection>
#include <KConfigDialog>
#include <KNS3/
DownloadDialog
>
#include <KNS3/
QtQuickDialogWrapper
>
#include <KStandardGameAction>
#include <KToggleAction>
#include <QIcon>
...
...
@@ -142,9 +142,8 @@ bool MainWindow::loadGame(const QString &fileName)
void
MainWindow
::
getMoreGames
()
{
KNS3
::
DownloadDialog
dialog
(
QStringLiteral
(
"kigo-games.knsrc"
),
this
);
dialog
.
exec
();
KNS3
::
QtQuickDialogWrapper
dialog
(
QStringLiteral
(
"kigo-games.knsrc"
));
const
QList
<
KNSCore
::
EntryInternal
>
entries
=
dialog
.
exec
();
/*KNS3::Entry::List entries = dialog.changedEntries();
if (entries.size() > 0) {
// do something with the modified entries here if you want
...
...
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