15#ifndef LUA_DEBUGGER_ERROR_FRAME_H
16#define LUA_DEBUGGER_ERROR_FRAME_H
22class LuaDebuggerErrorFrame;
85 void showEvent(QShowEvent *event)
override;
88 Ui::LuaDebuggerErrorFrame *ui_;
93 void focusPrimaryControl();
99 void updateCompactHeight();
void resizeEvent(QResizeEvent *event) override
Recalculates the compact height of the frame when its width changes.
Definition lua_debugger_error_frame.cpp:123
void keyPressEvent(QKeyEvent *event) override
Handles key-press events; closes the frame on Escape.
Definition lua_debugger_error_frame.cpp:118
void showEvent(QShowEvent *event) override
Schedules focus transfer to the primary control when the frame becomes visible.
Definition lua_debugger_error_frame.cpp:129
void setEditorStyleFont(const QFont &font)
Synchronises the error text box font with the Lua editor.
Definition lua_debugger_error_frame.cpp:89
LuaDebuggerErrorFrame(QWidget *parent=nullptr)
Constructs the error frame with an empty error state.
Definition lua_debugger_error_frame.cpp:55
void schedulePrimaryFocus()
After show(), move focus to the text box.
Definition lua_debugger_error_frame.cpp:110
void clearErrorContent()
Clears the displayed error message and resets the frame to its empty state.
Definition lua_debugger_error_frame.cpp:95
void setErrorMessage(const QString &message)
Displays message as the current Lua error text.
Definition lua_debugger_error_frame.cpp:82
~LuaDebuggerErrorFrame() override
Destroys the error frame and releases all owned resources.
Definition lua_debugger_error_frame.cpp:77