mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-19 03:45:30 +08:00
Ref T30, added font shortcuts to CShortcut and allow to pass context shortcut
This commit is contained in:
committed by
Mathew Sutcliffe
parent
7370b6f33b
commit
fcdf238512
@@ -25,7 +25,7 @@ namespace BlackGui
|
||||
{
|
||||
namespace Menus
|
||||
{
|
||||
//! Standard font (size, style) menus for fonts.
|
||||
//! Standard font (size, style) menus.
|
||||
//! Can be used as nested menu or via getActions added manually
|
||||
class CFontMenu : public IMenuDelegate
|
||||
{
|
||||
@@ -33,7 +33,7 @@ namespace BlackGui
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
CFontMenu(QWidget *widget, bool separator = true);
|
||||
CFontMenu(QWidget *widget, bool separator = true, Qt::ShortcutContext shortcutContext = Qt::WidgetShortcut);
|
||||
|
||||
//! Log.categories
|
||||
static const BlackMisc::CLogCategoryList &getLogCategories();
|
||||
@@ -44,6 +44,9 @@ namespace BlackGui
|
||||
//! Allow to use the actions directly
|
||||
QList<QAction *> getActions() const;
|
||||
|
||||
//! The shortcus owned by QWidget
|
||||
QList<QShortcut *> getShortcuts() const;
|
||||
|
||||
private:
|
||||
void changeFontDialog();
|
||||
void fontSizePlus();
|
||||
|
||||
Reference in New Issue
Block a user