From 95a280f43f4ffb9c7b2f9ab9aba572a1be14205b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 28 Jul 2017 11:31:42 +0200 Subject: [PATCH] GUI: Renamed FileView method --- gui/fileviewdialog.cpp | 4 ++-- gui/fileviewdialog.h | 9 +-------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/gui/fileviewdialog.cpp b/gui/fileviewdialog.cpp index 7b84428f2..995903796 100644 --- a/gui/fileviewdialog.cpp +++ b/gui/fileviewdialog.cpp @@ -32,10 +32,10 @@ FileViewDialog::FileViewDialog(const QString &file, setWindowTitle(title); connect(mUI.mButtons, SIGNAL(accepted()), this, SLOT(accept())); - LoadTextFile(file, mUI.mText); + loadTextFile(file, mUI.mText); } -void FileViewDialog::LoadTextFile(const QString &filename, QTextEdit *edit) +void FileViewDialog::loadTextFile(const QString &filename, QTextEdit *edit) { QFile file(filename); if (!file.exists()) { diff --git a/gui/fileviewdialog.h b/gui/fileviewdialog.h index 0dd9c064b..fcab4a934 100644 --- a/gui/fileviewdialog.h +++ b/gui/fileviewdialog.h @@ -52,14 +52,7 @@ protected: * @param filename File to load. * @param edit Control where to load the file contents. */ - void LoadTextFile(const QString &filename, QTextEdit *edit); - - /** - * @brief Format dialog title from filename. - * - * @param filename File to load. - */ - QString FormatTitle(const QString &filename); + void loadTextFile(const QString &filename, QTextEdit *edit); Ui::Fileview mUI; };