From 19c8bf98885074617f9cc0a0b2f60ebf47ddf714 Mon Sep 17 00:00:00 2001 From: Mike Skec Date: Fri, 1 Jan 2021 19:26:15 +1100 Subject: Added UI density option. 'Compact' is the default - saves screen space a bit. The old layout is available in the 'Classic' option --- src/mainwindow.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mainwindow.hpp') diff --git a/src/mainwindow.hpp b/src/mainwindow.hpp index f816281..1ac550b 100644 --- a/src/mainwindow.hpp +++ b/src/mainwindow.hpp @@ -19,6 +19,8 @@ QT_END_NAMESPACE class BrowserTab; +enum class UIDensity : int; + class MainWindow : public QMainWindow { Q_OBJECT @@ -38,6 +40,8 @@ public: void updateWindowTitle(); + void setUiDensity(UIDensity density, bool previewing); + void mousePressEvent(QMouseEvent *event) override; private slots: -- cgit v1.2.3