qt: Add fullscreen status icons support and option

This commit is contained in:
Cacodemon345
2022-02-16 01:09:11 +06:00
parent ba7befbbca
commit c577aa85f2
12 changed files with 106 additions and 10 deletions

View File

@@ -110,6 +110,8 @@ private slots:
void on_actionEnable_Discord_integration_triggered(bool checked);
void on_actionShow_status_icons_in_fullscreen_triggered();
protected:
void keyPressEvent(QKeyEvent* event) override;
void keyReleaseEvent(QKeyEvent* event) override;
@@ -124,7 +126,7 @@ private:
Ui::MainWindow *ui;
std::unique_ptr<MachineStatus> status;
std::shared_ptr<MediaMenu> mm;
/* If main window should send keyboard input */
bool send_keyboard_input = true;
bool shownonce = false;