19 #include <QFileDialog> 22 #include "ui_loggingdialog.h" 27 m_mainSettings(mainSettings)
54 QString fileName = QFileDialog::getSaveFileName(
this,
55 tr(
"Save log file"),
".", tr(
"Log Files (*.log)"), 0, QFileDialog::DontUseNativeDialog);
59 qDebug(
"LoggingDialog::on_showFileDialog_clicked: selected: %s", qPrintable(fileName));
61 ui->logFileNameText->setText(fileName);
const QString & getLogFileName() const
LoggingDialog(MainSettings &mainSettings, QWidget *parent=0)
bool getUseLogFile() const
void setConsoleMinLogLevel(const QtMsgType &minLogLevel)
QtMsgType getFileMinLogLevel() const
void setFileMinLogLevel(const QtMsgType &minLogLevel)
int msgLevelToIndex(const QtMsgType &msgLevel)
void on_showFileDialog_clicked(bool checked)
MainSettings & m_mainSettings
void setUseLogFile(bool useLogFile)
QtMsgType msgLevelFromIndex(int intMsgLevel)
QtMsgType getConsoleMinLogLevel() const
void setLogFileName(const QString &value)