Showing the changes to interface/src/ui/JSConsole.cpp (1 of 29 files). Show all
Unified · Split
| @@ -13,10 +13,11 @@ · 12 unmodified lines | ||
| 13 | 13 | #include <QLabel> |
| 14 | 14 | #include <QScrollBar> |
| 15 | 15 | |
| 16 | −#include "Application.h" | |
| 17 | −#include "ScriptHighlighting.h" | |
| 16 | +#include <PathUtils.h> | |
| 18 | 17 | |
| 18 | +#include "Application.h" | |
| 19 | 19 | #include "JSConsole.h" |
| 20 | +#include "ScriptHighlighting.h" | |
| 20 | 21 | |
| 21 | 22 | const int NO_CURRENT_HISTORY_COMMAND = -1; |
| 22 | 23 | const int MAX_HISTORY_SIZE = 64; |
| @@ -41,9 +42,9 @@ JSConsole::JSConsole(QWidget* parent, ScriptEngine* scriptEngine) : · 18 unmodified lines | ||
| 41 | 42 | _ui->promptTextEdit->setWordWrapMode(QTextOption::NoWrap); |
| 42 | 43 | _ui->promptTextEdit->installEventFilter(this); |
| 43 | 44 | |
| 44 | − QFile styleSheet(Application::resourcesPath() + "styles/console.qss"); | |
| 45 | + QFile styleSheet(PathUtils::resourcesPath() + "styles/console.qss"); | |
| 45 | 46 | if (styleSheet.open(QIODevice::ReadOnly)) { |
| 46 | − QDir::setCurrent(Application::resourcesPath()); | |
| 47 | + QDir::setCurrent(PathUtils::resourcesPath()); | |
| 47 | 48 | setStyleSheet(styleSheet.readAll()); |
| 48 | 49 | } |
| 49 | 50 | |