Commit 7889cdc8 authored by Andrius Štikonas's avatar Andrius Štikonas
Browse files

Port away from KLocale.

parent 4a75c3be
......@@ -26,7 +26,7 @@
#include "gpgproc.h"
#include <KDebug>
#include <KLocale>
#include <KLocalizedString>
#include <KMessageBox>
#include <QDesktopServices>
......
......@@ -23,7 +23,8 @@
#include "kgpgsettings.h"
#include <KDebug>
#include <KLocale>
#include <KLocalizedString>
#include <QFile>
#include <QStringList>
#include <QTextStream>
......
......@@ -28,7 +28,7 @@
#include "kgpgsettings.h"
#include "model/kgpgitemmodel.h"
#include <KLocale>
#include <KLocalizedString>
KGpgKeyNode::KGpgKeyNode(KGpgRootNode *parent, const KgpgCore::KgpgKey &k)
: KGpgSignableNode(parent),
......
......@@ -27,7 +27,7 @@
#include "KGpgUidNode.h"
#include "model/kgpgitemmodel.h"
#include <KLocale>
#include <KLocalizedString>
KGpgNode::KGpgNode(KGpgExpandableNode *parent)
: QObject(), m_parent(parent)
......
......@@ -18,7 +18,7 @@
*/
#include "KGpgRefNode.h"
#include <KLocale>
#include <KLocalizedString>
#include "KGpgExpandableNode.h"
#include "KGpgRootNode.h"
......
......@@ -20,7 +20,7 @@
#include "KGpgSignableNode.h"
#include <KLocale>
#include <KLocalizedString>
class KGpgSignNodePrivate {
public:
......
......@@ -18,7 +18,7 @@
*/
#include "KGpgSignableNode.h"
#include <KLocale>
#include <KLocalizedString>
KGpgSignableNode::KGpgSignableNode(KGpgExpandableNode *parent)
: KGpgExpandableNode(parent)
......
......@@ -18,7 +18,7 @@
*/
#include "KGpgSubkeyNode.h"
#include <KLocale>
#include <KLocalizedString>
#include "convert.h"
#include "KGpgKeyNode.h"
......
......@@ -21,7 +21,7 @@
#include "gpgproc.h"
#include "KGpgKeyNode.h"
#include <KLocale>
#include <KLocalizedString>
#include <QDateTime>
#include <QDir>
......
......@@ -17,7 +17,7 @@
#include "detailedconsole.h"
#include <KLocale>
#include <KLocalizedString>
#include <KMessageBox>
#include <KConfigGroup>
#include <QDialogButtonBox>
......
......@@ -35,7 +35,7 @@
#include <KFileDialog>
#include <KFindDialog>
#include <KGlobal>
#include <KLocale>
#include <KLocalizedString>
#include <KMessageBox>
#include <KRecentFilesAction>
#include <KSharedConfig>
......
......@@ -18,7 +18,7 @@
#include <KApplication>
#include <KMessageBox>
#include <KLocale>
#include <KLocalizedString>
#include <KLed>
#include <KConfigGroup>
#include <QDialogButtonBox>
......
......@@ -27,7 +27,7 @@
#include "transactions/kgpgsigntext.h"
#include "transactions/kgpgverify.h"
#include <KLocale>
#include <KLocalizedString>
#include <KMessageBox>
#include <KUrlMimeData>
......
......@@ -14,7 +14,7 @@
#include "foldercompressjob.h"
#include <KArchive>
#include <KLocale>
#include <KLocalizedString>
#include <KTar>
#include <KZip>
......
......@@ -27,8 +27,7 @@
#include "transactions/kgpgchangepass.h"
#include <KConfigGroup>
#include <KGlobal>
#include <KLocale>
#include <KLocalizedString>
#include <KMessageBox>
#include <KToolInvocation>
......@@ -38,6 +37,7 @@
#include <QFormLayout>
#include <QHBoxLayout>
#include <QImage>
#include <QLocale>
#include <QPixmap>
#include <QPushButton>
#include <QVBoxLayout>
......@@ -211,11 +211,11 @@ void KgpgKeyInfo::displayKey()
m_id->setText(m_node->getId().right(16));
m_algorithm->setText(Convert::toString(key->algorithm()) + QLatin1String( " / " ) + Convert::toString(key->encryptionAlgorithm()));
m_algorithm->setWhatsThis(i18n("<qt>The left part is the algorithm used by the <b>signature</b> key. The right part is the algorithm used by the <b>encryption</b> key.</qt>"));
m_creation->setText(KGlobal::locale()->formatDate(m_node->getCreation().date(), KLocale::ShortDate));
m_creation->setText(QLocale().toString(m_node->getCreation().date(), QLocale::ShortFormat));
if (m_node->getExpiration().isNull())
m_expiration->setText(i18nc("Unlimited key lifetime", "Unlimited"));
else
m_expiration->setText(KGlobal::locale()->formatDate(m_node->getExpiration().date(), KLocale::ShortDate));
m_expiration->setText(QLocale().toString(m_node->getExpiration().date(), QLocale::ShortFormat));
m_trust->setText(trust);
m_trust->setColor(trustcolor);
m_length->setText(m_node->getSize());
......
......@@ -26,7 +26,7 @@
#include "transactions/kgpgkeyserversearchtransaction.h"
#include "transactions/kgpgsendkeys.h"
#include <KLocale>
#include <KLocalizedString>
#include <KMessageBox>
#include <QCursor>
......
......@@ -61,8 +61,7 @@
#include <akonadi/contact/contactsearchjob.h>
#include <KActionCollection>
#include <KDebug>
#include <KGlobal>
#include <KLocale>
#include <KLocalizedString>
#include <KMessageBox>
#include <KMimeTypeTrader>
#include <KProcess>
......@@ -78,7 +77,6 @@
#include <KStatusNotifierItem>
#include <KToggleAction>
#include <KToolInvocation>
#include <QUrl>
#include <QApplication>
#include <QClipboard>
......@@ -99,6 +97,7 @@
#include <QPrintDialog>
#include <QPrinter>
#include <QProcess>
#include <QUrl>
#include <QWidget>
#include <QWidgetAction>
#include <kcontacts/addresseelist.h>
......
......@@ -25,7 +25,7 @@
#include "transactions/kgpgimport.h"
#include <KConfigGroup>
#include <KLocale>
#include <KLocalizedString>
#include <KMessageBox>
#include <KUrlMimeData>
......
......@@ -24,9 +24,8 @@
#include "core/kgpgkey.h"
#include <KComboBox>
#include <KLocale>
#include <KLocalizedString>
#include <KMessageBox>
#include <QUrl>
#include <KUrlRequester>
#include <QCheckBox>
......@@ -34,9 +33,10 @@
#include <QHBoxLayout>
#include <QLabel>
#include <QSpacerItem>
#include <QStandardPaths>
#include <QTextStream>
#include <QWidget>
#include <QStandardPaths>
#include <QUrl>
using namespace KgpgCore;
......
......@@ -23,7 +23,7 @@
#include "core/KGpgUidNode.h"
#include <gpgme.h>
#include <KLocale>
#include <KLocalizedString>
#include <KMessageBox>
#include <KProcess>
#include <QFile>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment