Added a gutter and currentline highlighting to the SQL editor.

Currently gutter only shows linenumbers. Code is mostly from http://doc.qt.io/qt-5/qtwidgets-widgets-codeeditor-example.html

There is a little bit included in this commit from a first try to make toobars adept to the current tab.

Code #2
This commit is contained in:
eelke 2018-04-08 09:07:43 +02:00
parent 5e83094e6a
commit 47ee1857cd
15 changed files with 281 additions and 6 deletions

View file

@ -8,6 +8,7 @@
#include "tuplesresultwidget.h"
#include <QWidget>
#include "PglPage.h"
#include <memory>
namespace Ui {
@ -27,7 +28,7 @@ class OpenDatabase;
class QueryParamListController;
class PgDatabaseCatalog;
class QueryTab : public QWidget {
class QueryTab : public PglPage {
Q_OBJECT
public:
QueryTab(MainWindow *win, QWidget *parent = nullptr);