Refactoring
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
#include <QString>
|
||||
#include <QKeySequence>
|
||||
|
||||
#include "core/scoped_ptr.h"
|
||||
#include "includes/scoped_ptr.h"
|
||||
#include "globalshortcuts/globalshortcutsmanager.h"
|
||||
#include "settingspage.h"
|
||||
|
||||
@@ -42,11 +42,9 @@ class GlobalShortcutsSettingsPage : public SettingsPage {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit GlobalShortcutsSettingsPage(SettingsDialog *dialog, QWidget *parent = nullptr);
|
||||
explicit GlobalShortcutsSettingsPage(SettingsDialog *dialog, GlobalShortcutsManager *global_shortcuts_manager, QWidget *parent = nullptr);
|
||||
~GlobalShortcutsSettingsPage() override;
|
||||
|
||||
static const char *kSettingsGroup;
|
||||
|
||||
void Load() override;
|
||||
void Save() override;
|
||||
|
||||
@@ -74,6 +72,8 @@ class GlobalShortcutsSettingsPage : public SettingsPage {
|
||||
private:
|
||||
Ui_GlobalShortcutsSettingsPage *ui_;
|
||||
|
||||
GlobalShortcutsManager *global_shortcuts_manager_;
|
||||
|
||||
bool initialized_;
|
||||
ScopedPtr<GlobalShortcutGrabber> grabber_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user