From f21911c0d6867d8c86ea644c95d913018868ac55 Mon Sep 17 00:00:00 2001 From: ZackaryWelch Date: Mon, 4 Jun 2018 15:04:12 -0400 Subject: Removed extra file and whitespace --- src-qt5/desktop-utils/lumina-textedit/MainUI.cpp | 6 +++--- src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp | 4 ++-- src-qt5/desktop-utils/lumina-textedit/Word.h | 4 ++-- src-qt5/desktop-utils/lumina-textedit/lumina-textedit.pro | 2 +- src-qt5/desktop-utils/lumina-textedit/wordMenu.h | 6 ------ 5 files changed, 8 insertions(+), 14 deletions(-) delete mode 100644 src-qt5/desktop-utils/lumina-textedit/wordMenu.h diff --git a/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp b/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp index d3b0338f..fe1e689b 100644 --- a/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp +++ b/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp @@ -414,7 +414,7 @@ void MainUI::ModifyColors(){ void MainUI::SetLanguage() { QDir dir(hunspellPath); QStringList files = dir.entryList(QStringList() << "*.dic", QDir::Files); - QStringList items; + QStringList items; int defaultDic = 0; for(int i = 0; i < files.size(); i++) { QString item = files[i].split('.')[0]; @@ -426,7 +426,7 @@ void MainUI::SetLanguage() { QString dic = QInputDialog::getItem(this, "Set Language for Document", "Language:", items, defaultDic); settings->setValue("language/", dic); if(hunspell) - delete hunspell; + delete hunspell; hunspell = new Hunspell(QString(hunspellPath+dic+".aff").toLocal8Bit(), QString(hunspellPath+dic+".dic").toLocal8Bit()); @@ -664,7 +664,7 @@ void MainUI::checkSpelling(int bpos, int epos) { checkWord(block); } } - + cur->setWordList(wordList); } diff --git a/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp b/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp index 3c775851..285cd1b9 100644 --- a/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp +++ b/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp @@ -62,7 +62,7 @@ void PlainTextEditor::LoadSyntaxRule(QString type){ files[i].SetupDocument(this); SYNTAX->loadRules(files[i]); break; - }else if(i==files.length()-1){ + }else if(i==files.length()-1){ SyntaxFile dummy; SYNTAX->loadRules(dummy); } @@ -364,7 +364,7 @@ void PlainTextEditor::fileChanged(){ text.append("\n"); text.append( tr("(Note: You will lose all currently-unsaved changes)") ); text.append("\n\n%1"); - + if(!update){ update = (QMessageBox::Yes == QMessageBox::question(this, tr("File Modified"),text.arg(currentFile()) , QMessageBox::Yes | QMessageBox::No, QMessageBox::No) ); } diff --git a/src-qt5/desktop-utils/lumina-textedit/Word.h b/src-qt5/desktop-utils/lumina-textedit/Word.h index 7dd29257..36fb3cb8 100644 --- a/src-qt5/desktop-utils/lumina-textedit/Word.h +++ b/src-qt5/desktop-utils/lumina-textedit/Word.h @@ -4,9 +4,9 @@ class Word { public: - Word(QString _word, QStringList _sugg, QTextEdit::ExtraSelection _sel, int _blockNum, int _position) : word(_word), suggestions(_sugg), sel(_sel), blockNum(_blockNum), position(_position) { + Word(QString _word, QStringList _sugg, QTextEdit::ExtraSelection _sel, int _blockNum, int _position) : word(_word), suggestions(_sugg), sel(_sel), blockNum(_blockNum), position(_position) { ignored = false; - } + } void ignore() { ignored = true; } bool isIgnored() { return ignored; } diff --git a/src-qt5/desktop-utils/lumina-textedit/lumina-textedit.pro b/src-qt5/desktop-utils/lumina-textedit/lumina-textedit.pro index bbfc455b..5ebbd9d0 100644 --- a/src-qt5/desktop-utils/lumina-textedit/lumina-textedit.pro +++ b/src-qt5/desktop-utils/lumina-textedit/lumina-textedit.pro @@ -17,7 +17,7 @@ HEADERS += MainUI.h \ ColorDialog.h \ DnDTabBar.h \ Word.h - + SOURCES += main.cpp \ MainUI.cpp \ PlainTextEditor.cpp \ diff --git a/src-qt5/desktop-utils/lumina-textedit/wordMenu.h b/src-qt5/desktop-utils/lumina-textedit/wordMenu.h deleted file mode 100644 index dfffcedd..00000000 --- a/src-qt5/desktop-utils/lumina-textedit/wordMenu.h +++ /dev/null @@ -1,6 +0,0 @@ -class WordMenu : public QMenu { - WordMenu() { - ignoreAll = this->addAction(tr("Ignore All")); - - } -} -- cgit