mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fix wordcharacters
This commit is contained in:
parent
cebaa81996
commit
f1db2ae47c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user