Commit 40f7a3309e6f060fbb6239a33eeffbbbc3657414
1 parent
bbf5e584
Exists in
master
Adicionado declaração de método em installcacic.h, e mudança no construtor de in…
…stallcacic.cpp para inicializar o atributo do diretório.
Showing
2 changed files
with
4 additions
and
0 deletions
Show diff stats
install-cacic/installcacic.cpp
@@ -3,6 +3,9 @@ | @@ -3,6 +3,9 @@ | ||
3 | InstallCacic::InstallCacic(QObject *parent) : | 3 | InstallCacic::InstallCacic(QObject *parent) : |
4 | QObject(parent) | 4 | QObject(parent) |
5 | { | 5 | { |
6 | + QDir dir; | ||
7 | + this->applicationDirPath = dir.currentPath(); | ||
8 | + | ||
6 | logManager = QLogger::QLoggerManager::getInstance(); | 9 | logManager = QLogger::QLoggerManager::getInstance(); |
7 | logManager->addDestination(this->applicationDirPath + "/Logs/cacicLog.txt","Install Cacic",QLogger::InfoLevel); | 10 | logManager->addDestination(this->applicationDirPath + "/Logs/cacicLog.txt","Install Cacic",QLogger::InfoLevel); |
8 | logManager->addDestination(this->applicationDirPath + "/Logs/cacicLog.txt","Install Cacic",QLogger::ErrorLevel); | 11 | logManager->addDestination(this->applicationDirPath + "/Logs/cacicLog.txt","Install Cacic",QLogger::ErrorLevel); |
install-cacic/installcacic.h
@@ -22,6 +22,7 @@ public: | @@ -22,6 +22,7 @@ public: | ||
22 | bool startProcess(QString pathprogram, bool wait, QStringList arguments); | 22 | bool startProcess(QString pathprogram, bool wait, QStringList arguments); |
23 | void registro(); | 23 | void registro(); |
24 | void setApplicationDirPath(const QString &value); | 24 | void setApplicationDirPath(const QString &value); |
25 | + QString getApplicationDirPath() const; | ||
25 | 26 | ||
26 | private: | 27 | private: |
27 | QMap<QString, QString> argumentos; | 28 | QMap<QString, QString> argumentos; |