ladybird/Userland/Applications/PDFViewer
sin-ack ca2c81251a Everywhere: Replace Model::update() with Model::invalidate()
Most of the models were just calling did_update anyway, which is
pointless since it can be unified to the base Model class. Instead, code
calling update() will now call invalidate(), which functions identically
and is more obvious in what it does.

Additionally, a default implementation is provided, which removes the
need to add empty implementations of update() for each model subclass.

Co-Authored-By: Ali Mohammad Pur <ali.mpfard@gmail.com>
2021-08-06 19:14:31 +02:00
..
CMakeLists.txt Everywhere: Add component declarations 2021-06-17 11:03:51 +02:00
main.cpp Userland: Add GUI::Window::add_menu() and use it everywhere 2021-07-21 21:24:26 +02:00
NumericInput.cpp PDFViewer: Add a toolbar 2021-05-25 00:24:09 +04:30
NumericInput.h PDFViewer: Add a toolbar 2021-05-25 00:24:09 +04:30
OutlineModel.cpp Everywhere: Replace Model::update() with Model::invalidate() 2021-08-06 19:14:31 +02:00
OutlineModel.h Everywhere: Replace Model::update() with Model::invalidate() 2021-08-06 19:14:31 +02:00
PDFViewer.cpp LibGfx: Use "try_" prefix for static factory functions 2021-07-21 18:02:15 +02:00
PDFViewer.h PDFViewer: Update the page number when scrolling between pages 2021-06-22 06:26:44 +04:30
PDFViewerWidget.cpp Userland: Add GUI::Window::add_menu() and use it everywhere 2021-07-21 21:24:26 +02:00
PDFViewerWidget.h Userland: Add GUI::Window::add_menu() and use it everywhere 2021-07-21 21:24:26 +02:00
SidebarWidget.cpp PDFViewer: Add a tab bar with outlines and thumbnails 2021-05-25 00:24:09 +04:30
SidebarWidget.h PDFViewer: Add a tab bar with outlines and thumbnails 2021-05-25 00:24:09 +04:30