mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:37:35 +00:00
SQLStudio: Convert MainWidget
to a failable constructor
This commit is contained in:
parent
e9ad7b8eed
commit
ba38984a60
3 changed files with 23 additions and 10 deletions
|
@ -17,10 +17,11 @@ namespace SQLStudio {
|
|||
class ScriptEditor;
|
||||
|
||||
class MainWidget : public GUI::Widget {
|
||||
C_OBJECT(MainWidget)
|
||||
C_OBJECT_ABSTRACT(MainWidget)
|
||||
|
||||
public:
|
||||
virtual ~MainWidget() = default;
|
||||
static ErrorOr<NonnullRefPtr<MainWidget>> create();
|
||||
|
||||
ErrorOr<void> initialize_menu(GUI::Window*);
|
||||
void open_new_script();
|
||||
|
@ -29,7 +30,7 @@ public:
|
|||
bool request_close();
|
||||
|
||||
private:
|
||||
MainWidget();
|
||||
ErrorOr<void> setup();
|
||||
|
||||
ScriptEditor* active_editor();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue