mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-05-18 19:48:23 -05:00
946d408aaf
This addresses two issued mentioned in #2215 # It's possible to focus out of the SQL Editor using Ctrl+PgDown (not used by QScintilla) # Ctrl+Tab and Ctrl+Shift+Tab works in all the widgets in the area and provides the same functionality that the one provided by QTabWidget (switch for- and backwards through the tabs)
31 lines
461 B
C++
31 lines
461 B
C++
#ifndef SQLTEXTEDIT_H
|
|
#define SQLTEXTEDIT_H
|
|
|
|
#include "ExtendedScintilla.h"
|
|
|
|
class SqlUiLexer;
|
|
|
|
/**
|
|
* @brief The SqlTextEdit class
|
|
* This class is based on the QScintilla widget
|
|
*/
|
|
class SqlTextEdit : public ExtendedScintilla
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit SqlTextEdit(QWidget *parent = nullptr);
|
|
|
|
static SqlUiLexer* sqlLexer;
|
|
|
|
private:
|
|
void transferFocus();
|
|
|
|
public slots:
|
|
void reloadSettings();
|
|
void toggleBlockComment();
|
|
|
|
};
|
|
|
|
#endif
|