GUI: Renamed FileView method
This commit is contained in:
parent
515e84ed00
commit
95a280f43f
|
@ -32,10 +32,10 @@ FileViewDialog::FileViewDialog(const QString &file,
|
||||||
|
|
||||||
setWindowTitle(title);
|
setWindowTitle(title);
|
||||||
connect(mUI.mButtons, SIGNAL(accepted()), this, SLOT(accept()));
|
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);
|
QFile file(filename);
|
||||||
if (!file.exists()) {
|
if (!file.exists()) {
|
||||||
|
|
|
@ -52,14 +52,7 @@ protected:
|
||||||
* @param filename File to load.
|
* @param filename File to load.
|
||||||
* @param edit Control where to load the file contents.
|
* @param edit Control where to load the file contents.
|
||||||
*/
|
*/
|
||||||
void LoadTextFile(const QString &filename, QTextEdit *edit);
|
void loadTextFile(const QString &filename, QTextEdit *edit);
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Format dialog title from filename.
|
|
||||||
*
|
|
||||||
* @param filename File to load.
|
|
||||||
*/
|
|
||||||
QString FormatTitle(const QString &filename);
|
|
||||||
|
|
||||||
Ui::Fileview mUI;
|
Ui::Fileview mUI;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue