diff --git a/examples/apps/etm_usage/main.cpp b/examples/apps/etm_usage/main.cpp index efea70f0..8ac00d9a 100644 --- a/examples/apps/etm_usage/main.cpp +++ b/examples/apps/etm_usage/main.cpp @@ -1,55 +1,55 @@ /* Copyright (c) 2010 Stephen Kelly This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ // READ THE README FILE #include #include #include #include #include "mainwindow.h" int main(int argc, char *argv[]) { KAboutData aboutData(QStringLiteral("etm_usage"), i18n("ETM Test application"), QStringLiteral("0.99"), i18n("Test app for EntityTreeModel"), KAboutLicense::GPL, - QStringLiteral("https://pim.kde.org/akonadi/")); + QStringLiteral("https://community.kde.org/KDE_PIM/Akonadi/")); QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("akonadi"))); aboutData.addAuthor(i18n("Stephen Kelly"), i18n("Author"), QStringLiteral("steveire@gmail.com")); QApplication app(argc, argv); QCommandLineParser parser; KAboutData::setApplicationData(aboutData); parser.addVersionOption(); parser.addHelpOption(); aboutData.setupCommandLine(&parser); parser.process(app); aboutData.processCommandLine(&parser); app.setQuitOnLastWindowClosed(true); MainWindow mainWindow; mainWindow.show(); return app.exec(); } diff --git a/examples/apps/mailreader/mailreaderview.cpp b/examples/apps/mailreader/mailreaderview.cpp index c31db4aa..968f9e27 100644 --- a/examples/apps/mailreader/mailreaderview.cpp +++ b/examples/apps/mailreader/mailreaderview.cpp @@ -1,108 +1,108 @@ /* * mailreaderview.cpp * * Copyright (C) 2009 Andras Mantia */ #include "mailreaderview.h" #include "settings.h" #include #include #include #include #include #include #include #include #include #include #include "messagelistsettings.h" #include "ui_prefs_messagelist.h" mailreaderView::mailreaderView(QWidget *parent) { ui_mailreaderview.setupUi(this); QHBoxLayout *layout = new QHBoxLayout(this); m_readerWin = new MessageViewer::Viewer(this, parent, dynamic_cast(parent)->actionCollection()); m_readerWin->setAttachmentStrategy(MessageViewer::AttachmentStrategy::inlined()); layout->addWidget(m_readerWin); setAutoFillBackground(true); displayAboutPage(); connect(m_readerWin, SIGNAL(urlClicked(Akonadi::Item,QUrl)), this, SLOT(urlClicked(Akonadi::Item,QUrl))); } mailreaderView::~mailreaderView() { } void mailreaderView::switchColors() { // switch the foreground/background colors of the label QColor color = Settings::col_background(); Settings::setCol_background(Settings::col_foreground()); Settings::setCol_foreground(color); settingsChanged(); } void mailreaderView::settingsChanged() { } void mailreaderView::showItem(const Akonadi::Item &item) { qDebug() << "Show item with ID: " << item.id(); m_readerWin->enableMessageDisplay(); m_readerWin->setDecryptMessageOverwrite(false); m_readerWin->setMessageItem(item, MimeTreeParser::Force); } void mailreaderView::showAboutPage() { displayAboutPage(); } void mailreaderView::displayAboutPage() { KLocalizedString info = ki18nc("%1: Mailreader version;" "--- end of comment ---", "

Welcome to Mailreader %1

" "

Mailread is a proof of concept reader for the Akonadi/KMime framework.

\n" - "

    The Akonadi Team

") + "

    The Akonadi Team

") .subs(QStringLiteral("0.1")); // Akonadi Mail Reader version //TODO PORT MEm_readerWin->displaySplashPage(info.toString()); } void mailreaderView::urlClicked(const Akonadi::Item &item, const QUrl &url) { Q_UNUSED(item); //TODO "Handle click" qDebug() << url << " clicked in the mail viewer"; } void mailreaderView::slotConfigure() { #if 0 if (KConfigDialog::showDialog(QLatin1String("mailviewersettings"))) { return; } KConfigDialog *dialog = new KConfigDialog(this, QLatin1String("mailviewersettings"), MessageViewer::MessageViewerSettings::self()); QWidget *widget = m_readerWin->configWidget(); dialog->addPage(widget, i18n("Viewer"), QLatin1String("kmail")); QWidget *messageListConfig = new QWidget(dialog); Ui::MessageListConfig ui; ui.setupUi(messageListConfig); dialog->addPage(messageListConfig, MessageList::MessageListSettings::self(), i18n("Message List"), QLatin1String("kmail")); dialog->setAttribute(Qt::WA_DeleteOnClose); dialog->show(); #endif }