Qt: Shader editor now works

This commit is contained in:
wheremyfoodat 2024-07-14 15:49:35 +03:00
parent d87477832b
commit 186fd3b94b
6 changed files with 63 additions and 35 deletions

View file

@ -17,12 +17,11 @@ class ShaderEditorWindow : public QDialog {
Zep::IZepReplProvider replProvider;
static constexpr float fontSize = 14.0f;
// Whether this backend supports shader editor
bool shaderEditorSupported = true;
public:
// Whether this backend supports shader editor
bool supported = true;
ShaderEditorWindow(QWidget* parent, const std::string& filename, const std::string& initialText);
void setText(const std::string& text) { zepWidget.GetEditor().GetMRUBuffer()->SetText(text); }
void setEnable(bool enable);
};