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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: utpass.qrouland\n" "Project-Id-Version: utpass.qrouland\n"
"Report-Msgid-Bugs-To: \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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"