mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
Ladybird: Add reset zoom level button to toolbar
This is a port of the Browser feature.
This commit is contained in:
parent
b7f9b316ed
commit
bdbea0baeb
4 changed files with 36 additions and 6 deletions
|
@ -16,6 +16,7 @@
|
|||
#include <QLabel>
|
||||
#include <QLineEdit>
|
||||
#include <QToolBar>
|
||||
#include <QToolButton>
|
||||
#include <QWidget>
|
||||
|
||||
class BrowserWindow;
|
||||
|
@ -35,6 +36,8 @@ public:
|
|||
|
||||
void debug_request(DeprecatedString const& request, DeprecatedString const& argument);
|
||||
|
||||
void update_reset_zoom_button();
|
||||
|
||||
public slots:
|
||||
void focus_location_editor();
|
||||
void location_edit_return_pressed();
|
||||
|
@ -56,6 +59,8 @@ private:
|
|||
|
||||
QBoxLayout* m_layout;
|
||||
QToolBar* m_toolbar { nullptr };
|
||||
QToolButton* m_reset_zoom_button { nullptr };
|
||||
QAction* m_reset_zoom_button_action { nullptr };
|
||||
LocationEdit* m_location_edit { nullptr };
|
||||
WebContentView* m_view { nullptr };
|
||||
BrowserWindow* m_window { nullptr };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue