diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-07-19 02:47:13 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-07-22 07:36:38 -0400 |
| commit | e071dfdfaa369a475a2d93df623c1696feee56ba (patch) | |
| tree | 4e3f1714558f6ac46f010b1cae561a96c1195c03 /src/texteditor.cpp | |
| parent | aae6d6a5aa8d6b101fcc38388222a8a6e7ee2ec6 (diff) | |
changed qCritical() to log::error()
removed now unused vlog()
Diffstat (limited to 'src/texteditor.cpp')
| -rw-r--r-- | src/texteditor.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/texteditor.cpp b/src/texteditor.cpp index 130cd76f..0c0eb1cc 100644 --- a/src/texteditor.cpp +++ b/src/texteditor.cpp @@ -1,7 +1,10 @@ #include "texteditor.h" #include "utility.h" +#include <log.h> #include <QSplitter> +using namespace MOBase; + TextEditor::TextEditor(QWidget* parent) : QPlainTextEdit(parent), m_toolbar(nullptr), m_lineNumbers(nullptr), m_highlighter(nullptr), @@ -249,7 +252,7 @@ QWidget* TextEditor::wrapEditWidget() auto index = splitter->indexOf(this); if (index == -1) { - qCritical( + log::error( "TextEditor: cannot wrap edit widget to display a toolbar, " "parent is a splitter, but widget isn't in it"); @@ -260,7 +263,7 @@ QWidget* TextEditor::wrapEditWidget() } else { // unknown parent - qCritical( + log::error( "TextEditor: cannot wrap edit widget to display a toolbar, " "no parent or parent has no layout"); |
