2 Star 0 Fork 5

fctx8688/sqliteStudio

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
uiscriptingedit.h 946 Bytes
Copy Edit Raw Blame History
shengzhe8688 authored 2020-01-18 12:15 +08:00 . 首次上传
#ifndef UISCRIPTINGEDIT_H
#define UISCRIPTINGEDIT_H
#include "uiloaderpropertyhandler.h"
#include "common/global.h"
#include "guiSQLiteStudio_global.h"
#include <QObject>
class QSyntaxHighlighter;
class GUI_API_EXPORT UiScriptingEdit : public UiLoaderPropertyHandler
{
public:
UiScriptingEdit();
const char* getPropertyName() const;
void handle(QWidget* widget, const QVariant& value);
private:
class EditUpdater : public QObject
{
public:
EditUpdater(QWidget* widget);
bool eventFilter(QObject* obj, QEvent* e);
private:
void installNewHighlighter(const QVariant& prop);
QWidget* watchedWidget = nullptr;
QString currentLang;
QSyntaxHighlighter* currentHighlighter = nullptr;
bool changingHighlighter = false;
};
};
#endif // UISCRIPTINGEDIT_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/fctx8688/sqliteStudio.git
git@gitee.com:fctx8688/sqliteStudio.git
fctx8688
sqliteStudio
sqliteStudio
master

Search