Code style

This commit is contained in:
Quentin Rouland 2019-03-21 00:04:05 +01:00
parent 3cbd834787
commit aa4018c680
12 changed files with 166 additions and 169 deletions

View File

@ -1,7 +1,6 @@
#include <QDebug>
#include <QFile>
#include <QDir>
#include <QtCore/QDirIterator>
#include <QtCore/QStandardPaths>
#include "gpg.h"
@ -28,7 +27,8 @@ Gpg::Gpg() {
QString gnuhome = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation).append("/gpghome");
QDir dir(gnuhome);
if (!dir.exists()) dir.mkpath(".");
if (!dir.exists())
dir.mkpath(".");
qputenv("GNUPGHOME", gnuhome.toStdString().c_str());
qDebug() << "GNUPGHOME is :" << qgetenv("GNUPGHOME");
@ -96,8 +96,6 @@ bool Gpg::encrypt_file(const QString str, const QString path) {
return true;*/
}
QString Gpg::get_key_id(QString uid) {
qDebug() << "Getting the key id " << uid;
auto *job = openpgp()->keyListJob(false, false, false);

View File

@ -1,5 +1,4 @@
#include <QtQml>
#include <QtQml/QQmlContext>
#include "plugin.h"
#include "gpg.h"

View File

@ -5,7 +5,8 @@
class FileSystemPlugin : public QQmlExtensionPlugin {
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
Q_PLUGIN_METADATA(IID
"org.qt-project.Qt.QQmlExtensionInterface")
public:
void registerTypes(const char *uri);

View File

@ -3,7 +3,6 @@
#include "pass.h"
Pass::Pass() {
}

View File

@ -1,5 +1,4 @@
#include <QtQml>
#include <QtQml/QQmlContext>
#include "plugin.h"
#include "pass.h"

View File

@ -5,7 +5,8 @@
class PassPlugin : public QQmlExtensionPlugin {
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
Q_PLUGIN_METADATA(IID
"org.qt-project.Qt.QQmlExtensionInterface")
public:
void registerTypes(const char *uri) override;

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: utpass.qrouland\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-03-20 22:15+0000\n"
"POT-Creation-Date: 2019-03-20 22:31+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"