Skip to content

Commit 1f0720d

Browse files
committed
GUI: Renamed LowView methods
1 parent 95a280f commit 1f0720d

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

gui/logview.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ LogView::LogView(QWidget *parent)
3232
setWindowFlags(Qt::Tool);
3333

3434
mUI.mButtonBox->button(QDialogButtonBox::Reset)->setText(tr("Clear"));
35-
connect(mUI.mButtonBox->button(QDialogButtonBox::Close), SIGNAL(clicked()), this, SLOT(CloseButtonClicked()));
36-
connect(mUI.mButtonBox->button(QDialogButtonBox::Reset), SIGNAL(clicked()), this, SLOT(ClearButtonClicked()));
37-
connect(mUI.mButtonBox->button(QDialogButtonBox::Save), SIGNAL(clicked()), this, SLOT(SaveButtonClicked()));
35+
connect(mUI.mButtonBox->button(QDialogButtonBox::Close), SIGNAL(clicked()), this, SLOT(closeButtonClicked()));
36+
connect(mUI.mButtonBox->button(QDialogButtonBox::Reset), SIGNAL(clicked()), this, SLOT(clearButtonClicked()));
37+
connect(mUI.mButtonBox->button(QDialogButtonBox::Save), SIGNAL(clicked()), this, SLOT(saveButtonClicked()));
3838

3939
QSettings settings;
4040
resize(settings.value(SETTINGS_LOG_VIEW_WIDTH, 400).toInt(),
@@ -48,22 +48,22 @@ LogView::~LogView()
4848
settings.setValue(SETTINGS_LOG_VIEW_HEIGHT, size().height());
4949
}
5050

51-
void LogView::AppendLine(const QString &line)
51+
void LogView::appendLine(const QString &line)
5252
{
5353
mUI.mLogEdit->appendPlainText(line);
5454
}
5555

56-
void LogView::CloseButtonClicked()
56+
void LogView::closeButtonClicked()
5757
{
5858
close();
5959
}
6060

61-
void LogView::ClearButtonClicked()
61+
void LogView::clearButtonClicked()
6262
{
6363
mUI.mLogEdit->clear();
6464
}
6565

66-
void LogView::SaveButtonClicked()
66+
void LogView::saveButtonClicked()
6767
{
6868
QString fileName = QFileDialog::getSaveFileName(this, tr("Save Log"),
6969
"", tr("Text files (*.txt *.log);;All files (*.*)"));

gui/logview.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,27 +40,27 @@ class LogView : public QWidget {
4040
* @param line String to add.
4141
*
4242
*/
43-
void AppendLine(const QString &line);
43+
void appendLine(const QString &line);
4444

4545
protected slots:
4646

4747
/**
4848
* @brief Called when close button is clicked.
4949
*
5050
*/
51-
void CloseButtonClicked();
51+
void closeButtonClicked();
5252

5353
/**
5454
* @brief Called when clear button is clicked.
5555
*
5656
*/
57-
void ClearButtonClicked();
57+
void clearButtonClicked();
5858

5959
/**
6060
* @brief Called when save button is clicked.
6161
*
6262
*/
63-
void SaveButtonClicked();
63+
void saveButtonClicked();
6464

6565
private:
6666
Ui::LogView mUI;

gui/mainwindow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,14 +1448,14 @@ void MainWindow::showLibraryEditor()
14481448
void MainWindow::log(const QString &logline)
14491449
{
14501450
if (mLogView) {
1451-
mLogView->AppendLine(logline);
1451+
mLogView->appendLine(logline);
14521452
}
14531453
}
14541454

14551455
void MainWindow::debugError(const ErrorItem &item)
14561456
{
14571457
if (mLogView) {
1458-
mLogView->AppendLine(item.ToString());
1458+
mLogView->appendLine(item.ToString());
14591459
}
14601460
}
14611461

0 commit comments

Comments
 (0)