1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:57:44 +00:00

LibGUI: Rename ModelClient::on_model_update() => model_did_update()

This follows the typical client callback naming scheme used elsewhere
and doesn't collide with the "on_foo" Function hook convention.
This commit is contained in:
Andreas Kling 2020-08-13 20:06:14 +02:00
parent 4088beb8eb
commit 686ee2bf04
10 changed files with 30 additions and 17 deletions

View file

@ -35,8 +35,11 @@
namespace GUI {
class FilePicker final : public Dialog, private ModelClient {
C_OBJECT(FilePicker)
class FilePicker final
: public Dialog
, private ModelClient {
C_OBJECT(FilePicker);
public:
enum class Mode {
Open,
@ -69,7 +72,8 @@ private:
void set_path(const String&);
virtual void on_model_update(unsigned) override;
// ^GUI::ModelClient
virtual void model_did_update(unsigned) override;
FilePicker(Window* parent_window, Mode type = Mode::Open, Options = Options::None, const StringView& file_name = "Untitled", const StringView& path = Core::StandardPaths::home_directory());