mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-19 02:48:49 +00:00
Implement highlight in Types dialog (#1186)
This commit is contained in:
parent
281d4e95e0
commit
bc974e432f
@ -3,6 +3,7 @@
|
||||
|
||||
#include "Cutter.h"
|
||||
#include "common/Configuration.h"
|
||||
#include "common/SyntaxHighlighter.h"
|
||||
#include "widgets/TypesWidget.h"
|
||||
|
||||
#include <QFileDialog>
|
||||
@ -14,6 +15,8 @@ LoadNewTypesDialog::LoadNewTypesDialog(QWidget *parent) :
|
||||
{
|
||||
ui->setupUi(this);
|
||||
ui->plainTextEdit->setPlainText("");
|
||||
syntaxHighLighter = new SyntaxHighlighter(ui->plainTextEdit->document());
|
||||
|
||||
ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
|
||||
}
|
||||
|
||||
|
@ -7,6 +7,7 @@
|
||||
namespace Ui {
|
||||
class LoadNewTypesDialog;
|
||||
}
|
||||
class SyntaxHighlighter;
|
||||
|
||||
class LoadNewTypesDialog : public QDialog
|
||||
{
|
||||
@ -38,6 +39,7 @@ private slots:
|
||||
|
||||
private:
|
||||
std::unique_ptr<Ui::LoadNewTypesDialog> ui;
|
||||
SyntaxHighlighter *syntaxHighLighter;
|
||||
|
||||
signals:
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user