mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-15 21:41:58 +00:00
LibGUI: Convert custom widgets and subclasses to ObjectPtr
This commit is contained in:
parent
15a66dc8ab
commit
defafd72bc
Notes:
sideshowbarker
2024-07-19 12:00:58 +09:00
Author: https://github.com/awesomekling
Commit: defafd72bc
30 changed files with 57 additions and 47 deletions
|
@ -60,7 +60,7 @@ int main(int argc, char** argv)
|
|||
update_window_title(100);
|
||||
window->set_rect(200, 200, bitmap->width(), bitmap->height());
|
||||
|
||||
auto* widget = new QSWidget(nullptr);
|
||||
auto widget = QSWidget::construct();
|
||||
widget->on_scale_change = [&](int scale) {
|
||||
update_window_title(scale);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue