Skip to content

Commit

Permalink
more conditional includes of console-lexer.h
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuetzel committed May 26, 2024
1 parent 23d047b commit b356903
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions libgui/src/command-widget.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@

#include "find-widget.h"
#include "gui-preferences-sc.h"
#include "console-lexer.h"
#if defined (HAVE_QSCINTILLA)
# include "console-lexer.h"
#endif

// FIXME: We need the following header for the fcn_callback and
// meth_callback typedefs. Maybe it would be better to declare those in
Expand All @@ -56,7 +58,12 @@ class console : public QsciScintilla

console (command_widget *p);

void append_string (const QString& string, int style = console_lexer::Default);
void append_string (const QString& string,
#if defined (HAVE_QSCINTILLA)
int style = console_lexer::Error);
#else
int style = 100);
#endif

Q_SIGNALS:

Expand Down
2 changes: 1 addition & 1 deletion libgui/src/qt-interpreter-events.cc
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ qt_interpreter_events::display_exception (const execution_exception& ee,
#if defined (HAVE_QSCINTILLA)
console_lexer::Error);
#else
0);
100);
#endif
// Create w new command line
Q_EMIT new_command_line_signal ();
Expand Down

0 comments on commit b356903

Please sign in to comment.