Changeset View
Changeset View
Standalone View
Standalone View
src/actionmanager.cpp
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. | ||
3 | 3 | | |||
4 | Copyright (c) 2002 Mike Pilone <mpilone@slac.com> | 4 | Copyright (c) 2002 Mike Pilone <mpilone@slac.com> | ||
5 | Copyright (c) 2002 Don Sanders <sanders@kde.org> | 5 | Copyright (c) 2002 Don Sanders <sanders@kde.org> | ||
6 | Copyright (c) 2004 Cornelius Schumacher <schumacher@kde.org> | 6 | Copyright (c) 2004 Cornelius Schumacher <schumacher@kde.org> | ||
7 | Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.com> | 7 | Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.com> | ||
8 | Copyright (c) 2005 Rafal Rzepecki <divide@users.sourceforge.net> | 8 | Copyright (c) 2005 Rafal Rzepecki <divide@users.sourceforge.net> | ||
9 | Copyright (c) 2010-2019 Laurent Montel <montel@kde.org> | 9 | Copyright (c) 2010-2019 Laurent Montel <montel@kde.org> | ||
10 | Copyright (c) 2012 Allen Winter <winter@kde.org> | 10 | Copyright (c) 2012-2019 Allen Winter <winter@kde.org> | ||
11 | 11 | | |||
12 | This program is free software; you can redistribute it and/or modify | 12 | This program is free software; you can redistribute it and/or modify | ||
13 | it under the terms of the GNU General Public License as published by | 13 | it under the terms of the GNU General Public License as published by | ||
14 | the Free Software Foundation; either version 2 of the License, or | 14 | the Free Software Foundation; either version 2 of the License, or | ||
15 | (at your option) any later version. | 15 | (at your option) any later version. | ||
16 | 16 | | |||
17 | This program is distributed in the hope that it will be useful, | 17 | This program is distributed in the hope that it will be useful, | ||
18 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 18 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
▲ Show 20 Lines • Show All 1160 Lines • ▼ Show 20 Line(s) | |||||
1179 | 1179 | | |||
1180 | bool ActionManager::addIncidence(const QString &ical) | 1180 | bool ActionManager::addIncidence(const QString &ical) | ||
1181 | { | 1181 | { | ||
1182 | return mCalendarView->addIncidence(ical); | 1182 | return mCalendarView->addIncidence(ical); | ||
1183 | } | 1183 | } | ||
1184 | 1184 | | |||
1185 | void ActionManager::downloadNewStuff() | 1185 | void ActionManager::downloadNewStuff() | ||
1186 | { | 1186 | { | ||
1187 | QPointer<KNS3::DownloadDialog> dialog = new KNS3::DownloadDialog(mCalendarView); | 1187 | QPointer<KNS3::DownloadDialog> dialog = new KNS3::DownloadDialog(QStringLiteral("korganizer.knsrc"), mCalendarView); | ||
1188 | dialog->setTitle(i18nc("@title", "KOrganizer Calendars Add-On Installer")); | ||||
1188 | dialog->exec(); | 1189 | dialog->exec(); | ||
1189 | const auto installedEntries = dialog->installedEntries(); | 1190 | const auto installedEntries = dialog->installedEntries(); | ||
1190 | for (const KNS3::Entry &e : installedEntries) { | 1191 | for (const KNS3::Entry &e : installedEntries) { | ||
1191 | qCDebug(KORGANIZER_LOG) << " downloadNewStuff :"; | 1192 | qCDebug(KORGANIZER_LOG) << " downloadNewStuff :"; | ||
1192 | const QStringList lstFile = e.installedFiles(); | 1193 | const QStringList lstFile = e.installedFiles(); | ||
1193 | if (lstFile.count() != 1) { | 1194 | if (lstFile.count() != 1) { | ||
mlaurent: void KAboutData::setApplicationData(const KAboutData &aboutData)
{
if (s_registry… | |||||
1194 | continue; | 1195 | continue; | ||
1195 | } | 1196 | } | ||
1196 | const QString file = lstFile.at(0); | 1197 | const QString file = lstFile.at(0); | ||
1197 | const QUrl filename = QUrl::fromLocalFile(file); | 1198 | const QUrl filename = QUrl::fromLocalFile(file); | ||
1198 | qCDebug(KORGANIZER_LOG) << "filename :" << filename; | 1199 | qCDebug(KORGANIZER_LOG) << "filename :" << filename; | ||
1199 | if (!filename.isValid()) { | 1200 | if (!filename.isValid()) { | ||
1200 | continue; | 1201 | continue; | ||
1201 | } | 1202 | } | ||
▲ Show 20 Lines • Show All 519 Lines • Show Last 20 Lines |
void KAboutData::setApplicationData(const KAboutData &aboutData)
{
}
so I don't see why you want to change diplayname/organization etc.