2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2008-12-02 14:09:21 +01:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
#include <coreplugin/dialogs/ioptionspage.h>
|
|
|
|
|
|
|
|
|
|
namespace Core {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
|
|
class GeneralSettings : public IOptionsPage
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
GeneralSettings();
|
|
|
|
|
|
2020-12-10 00:59:50 +01:00
|
|
|
static bool showShortcutsInContextMenu();
|
2019-09-09 16:50:16 +02:00
|
|
|
void setShowShortcutsInContextMenu(bool show);
|
|
|
|
|
|
2023-04-21 14:45:54 +02:00
|
|
|
static void applyToolbarStyleFromSettings();
|
|
|
|
|
|
2016-02-02 09:10:54 +02:00
|
|
|
private:
|
2020-02-10 09:52:21 +01:00
|
|
|
friend class GeneralSettingsWidget;
|
2019-09-09 16:50:16 +02:00
|
|
|
bool m_defaultShowShortcutsInContextMenu;
|
2008-12-02 12:01:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace Core
|