From 1f0720db3fb5589c519f18bee058a1156c2e357c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 28 Jul 2017 11:37:17 +0200 Subject: [PATCH] GUI: Renamed LowView methods --- gui/logview.cpp | 14 +++++++------- gui/logview.h | 8 ++++---- gui/mainwindow.cpp | 4 ++-- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/gui/logview.cpp b/gui/logview.cpp index d75bf4abf..b1c2c4089 100644 --- a/gui/logview.cpp +++ b/gui/logview.cpp @@ -32,9 +32,9 @@ LogView::LogView(QWidget *parent) setWindowFlags(Qt::Tool); mUI.mButtonBox->button(QDialogButtonBox::Reset)->setText(tr("Clear")); - connect(mUI.mButtonBox->button(QDialogButtonBox::Close), SIGNAL(clicked()), this, SLOT(CloseButtonClicked())); - connect(mUI.mButtonBox->button(QDialogButtonBox::Reset), SIGNAL(clicked()), this, SLOT(ClearButtonClicked())); - connect(mUI.mButtonBox->button(QDialogButtonBox::Save), SIGNAL(clicked()), this, SLOT(SaveButtonClicked())); + connect(mUI.mButtonBox->button(QDialogButtonBox::Close), SIGNAL(clicked()), this, SLOT(closeButtonClicked())); + connect(mUI.mButtonBox->button(QDialogButtonBox::Reset), SIGNAL(clicked()), this, SLOT(clearButtonClicked())); + connect(mUI.mButtonBox->button(QDialogButtonBox::Save), SIGNAL(clicked()), this, SLOT(saveButtonClicked())); QSettings settings; resize(settings.value(SETTINGS_LOG_VIEW_WIDTH, 400).toInt(), @@ -48,22 +48,22 @@ LogView::~LogView() settings.setValue(SETTINGS_LOG_VIEW_HEIGHT, size().height()); } -void LogView::AppendLine(const QString &line) +void LogView::appendLine(const QString &line) { mUI.mLogEdit->appendPlainText(line); } -void LogView::CloseButtonClicked() +void LogView::closeButtonClicked() { close(); } -void LogView::ClearButtonClicked() +void LogView::clearButtonClicked() { mUI.mLogEdit->clear(); } -void LogView::SaveButtonClicked() +void LogView::saveButtonClicked() { QString fileName = QFileDialog::getSaveFileName(this, tr("Save Log"), "", tr("Text files (*.txt *.log);;All files (*.*)")); diff --git a/gui/logview.h b/gui/logview.h index e4917927d..ec54b7768 100644 --- a/gui/logview.h +++ b/gui/logview.h @@ -40,7 +40,7 @@ public: * @param line String to add. * */ - void AppendLine(const QString &line); + void appendLine(const QString &line); protected slots: @@ -48,19 +48,19 @@ protected slots: * @brief Called when close button is clicked. * */ - void CloseButtonClicked(); + void closeButtonClicked(); /** * @brief Called when clear button is clicked. * */ - void ClearButtonClicked(); + void clearButtonClicked(); /** * @brief Called when save button is clicked. * */ - void SaveButtonClicked(); + void saveButtonClicked(); private: Ui::LogView mUI; diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index c0c1f0062..f66443475 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -1448,14 +1448,14 @@ void MainWindow::showLibraryEditor() void MainWindow::log(const QString &logline) { if (mLogView) { - mLogView->AppendLine(logline); + mLogView->appendLine(logline); } } void MainWindow::debugError(const ErrorItem &item) { if (mLogView) { - mLogView->AppendLine(item.ToString()); + mLogView->appendLine(item.ToString()); } }