34 lines
817 B
C++
34 lines
817 B
C++
#pragma once
|
|
#include <QDialog>
|
|
#include "EventModule.h"
|
|
#include "WebEngineView.h"
|
|
#include "QFramelessHelper.h"
|
|
|
|
|
|
class MainWindow;
|
|
|
|
class SettingDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
SettingDialog(MainWindow* parent);
|
|
~SettingDialog();
|
|
protected:
|
|
// bool DBConnect(json& parameter);
|
|
MainWindow* parent();
|
|
bool onMessage(const std::string& eventName, json& parameter);
|
|
|
|
void message(const QString& message, int type);
|
|
#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
|
|
bool nativeEvent(const QByteArray& eventType, void* message, qintptr* result);
|
|
#else
|
|
bool nativeEvent(const QByteArray& eventType, void* message, long* result);
|
|
#endif
|
|
private:
|
|
WebEngineView* _webView = nullptr;
|
|
MainWindow* _parent = nullptr;
|
|
std::unique_ptr<QFramelessHelper> _frameless;
|
|
SignalEventModule* _eventModule = nullptr;
|
|
};
|