Skip to content
Permalink
Browse files

Fix wordcharacters

  • Loading branch information
m-kuhn committed Sep 8, 2018
1 parent cebaa81 commit f1db2ae47ca2255729c875a03bd8eb1b7014df73
Showing with 15 additions and 13 deletions.
  1. +11 −9 src/gui/qgscodeeditorexpression.cpp
  2. +4 −4 src/gui/qgscodeeditorexpression.h
@@ -16,12 +16,10 @@
#include "qgsapplication.h"
#include "qgscodeeditorexpression.h"

#include <QWidget>
#include <QString>
#include <QFont>
#include <QLabel>


QgsCodeEditorExpression::QgsCodeEditorExpression( QWidget *parent )
: QgsCodeEditor( parent )
{
@@ -146,18 +144,22 @@ void QgsCodeEditorExpression::updateApis()
mSqlLexer->setAPIs( mApis );
}

QgsCaseInsensitiveLexerExpression::QgsCaseInsensitiveLexerExpression( QObject *parent )
: QsciLexerSQL( parent )
{
}

bool QgsCaseInsensitiveLexerExpression::caseSensitive() const
{
return false;
}
#if 0

const char *QgsCaseInsensitiveLexerExpression::wordCharacters() const
{
static QString wordChars;

wordChars = QsciLexerSQL::wordCharacters();
wordChars += '@';
return wordChars.toUtf8().constData();
return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_@";
}

#endif
const char *QgsCaseInsensitiveLexerExpression::autoCompletionFillups() const
{
return "(";
}
@@ -82,14 +82,14 @@ class QgsCaseInsensitiveLexerExpression : public QsciLexerSQL
Q_OBJECT

public:
//! constructor
explicit QgsCaseInsensitiveLexerExpression( QObject *parent = nullptr ) : QsciLexerSQL( parent ) {}
//! Constructor
explicit QgsCaseInsensitiveLexerExpression( QObject *parent = nullptr );

bool caseSensitive() const override;

#if 0
const char *wordCharacters() const override;
#endif

const char *autoCompletionFillups() const override;
};
///@endcond
#endif

0 comments on commit f1db2ae

Please sign in to comment.
You can’t perform that action at this time.