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
PIM
KOrganizer
Commits
734d40a3
Commit
734d40a3
authored
Feb 14, 2021
by
Laurent Montel
😁
Browse files
Port to KNS3::QtQuickDialogWrapper
parent
92c565e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/actionmanager.cpp
View file @
734d40a3
...
...
@@ -62,7 +62,7 @@
#include "korganizer_debug.h"
#include "korganizer_options.h"
#include <KN
S3/DownloadDialog
>
#include <KN
ewStuff3/KNS3/QtQuickDialogWrapper
>
#include <KToggleAction>
#include <KWindowSystem>
#include <QIcon>
...
...
@@ -1132,11 +1132,8 @@ bool ActionManager::addIncidence(const QString &ical)
void
ActionManager
::
downloadNewStuff
()
{
QPointer
<
KNS3
::
DownloadDialog
>
dialog
=
new
KNS3
::
DownloadDialog
(
QStringLiteral
(
"korganizer.knsrc"
),
mCalendarView
);
dialog
->
setTitle
(
i18nc
(
"@title"
,
"KOrganizer Calendars Add-On Installer"
));
dialog
->
exec
();
const
auto
installedEntries
=
dialog
->
installedEntries
();
for
(
const
KNS3
::
Entry
&
e
:
installedEntries
)
{
const
auto
installedEntries
=
KNS3
::
QtQuickDialogWrapper
(
QStringLiteral
(
"korganizer.knsrc"
)).
exec
();
for
(
const
auto
&
e
:
installedEntries
)
{
qCDebug
(
KORGANIZER_LOG
)
<<
" downloadNewStuff :"
;
const
QStringList
lstFile
=
e
.
installedFiles
();
if
(
lstFile
.
count
()
!=
1
)
{
...
...
@@ -1174,7 +1171,6 @@ void ActionManager::downloadNewStuff()
}
}
}
delete
dialog
;
}
QString
ActionManager
::
localFileName
()
const
...
...
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