mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:28:11 +00:00
HackStudio: Allow moving widgets around using the CursorTool
You can now move the widgets around, either by themselves or in group selections, by dragging them with the cursor tool. :^)
This commit is contained in:
parent
f6576c4b7c
commit
567769eb2f
4 changed files with 79 additions and 8 deletions
|
@ -12,6 +12,9 @@ public:
|
|||
FormEditorWidget& editor();
|
||||
const FormEditorWidget& editor() const;
|
||||
|
||||
// FIXME: This should be an app-wide preference instead.
|
||||
int grid_size() const { return m_grid_size; }
|
||||
|
||||
private:
|
||||
virtual void paint_event(GPaintEvent&) override;
|
||||
virtual void second_paint_event(GPaintEvent&) override;
|
||||
|
@ -21,6 +24,5 @@ private:
|
|||
|
||||
explicit FormWidget(FormEditorWidget& parent);
|
||||
|
||||
// FIXME: This should be an app-wide preference instead.
|
||||
int m_grid_size { 5 };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue