Print the settings path at the beginning of the main window or main core constructor

pull/278/head
f4exb 2019-01-17 08:52:57 +01:00
rodzic 3826b1faeb
commit dbf5fb895e
2 zmienionych plików z 20 dodań i 1 usunięć

Wyświetl plik

@ -28,6 +28,7 @@
#include <QKeyEvent>
#include <QResource>
#include <QFontDatabase>
#include <QStandardPaths>
#include <plugin/plugininstancegui.h>
#include <plugin/plugininstancegui.h>
@ -99,6 +100,14 @@ MainWindow::MainWindow(qtwebapp::LoggerWithFile *logger, const MainParser& parse
{
qDebug() << "MainWindow::MainWindow: start";
#if QT_VERSION >= 0x050500
QString path = QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation);
qInfo("MainWindow::MainWindow: settings path: %s", qPrintable(path));
#else
QString path = QStandardPaths::writableLocation(QStandardPaths::ConfigLocation);
qInfo("MainWindow::MainWindow: settings path: %s", qPrintable(path));
#endif
m_instance = this;
m_settings.setAudioDeviceManager(m_dspEngine->getAudioDeviceManager());

Wyświetl plik

@ -16,10 +16,12 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
///////////////////////////////////////////////////////////////////////////////////
#include <unistd.h>
#include <QDebug>
#include <QSysInfo>
#include <QResource>
#include <unistd.h>
#include <QStandardPaths>
#include "dsp/dspengine.h"
#include "dsp/dspdevicesourceengine.h"
@ -58,6 +60,14 @@ MainCore::MainCore(qtwebapp::LoggerWithFile *logger, const MainParser& parser, Q
{
qDebug() << "MainCore::MainCore: start";
#if QT_VERSION >= 0x050500
QString path = QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation);
qInfo("MainCore::MainCore: settings path: %s", qPrintable(path));
#else
QString path = QStandardPaths::writableLocation(QStandardPaths::ConfigLocation);
qInfo("MainCore::MainCore: settings path: %s", qPrintable(path));
#endif
m_instance = this;
m_settings.setAudioDeviceManager(m_dspEngine->getAudioDeviceManager());