Add menu option to allow screenshots

* Fix #7580
* Also refactor the code to move everything into MainWindow
This commit is contained in:
Jonathan White
2022-11-24 21:09:01 -05:00
parent f9f82e9705
commit 0a2e716525
8 changed files with 48 additions and 28 deletions

View File

@@ -52,6 +52,7 @@ public:
QList<DatabaseWidget*> getOpenDatabases();
void restoreConfigState();
void setAllowScreenCapture(bool state);
enum StackedWidgetIndex
{
@@ -192,6 +193,7 @@ private:
bool m_restartRequested = false;
bool m_contextMenuFocusLock = false;
bool m_showToolbarSeparator = false;
bool m_allowScreenCapture = false;
qint64 m_lastFocusOutTime = 0;
qint64 m_lastShowTime = 0;
QTimer m_updateCheckTimer;