diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2017-01-05 14:13:31 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2017-01-05 18:26:47 +0000 |
commit | 725c2346b1789c0cd383af339bcb7fb53e4fe69b (patch) | |
tree | efe92ff333e12569c714a1e8821e82afb0e324ff /src/gui/kernel/qplatformmenu.h | |
parent | 2ac50ac15621e303adbf6c35cbc2456f7ae5dd2f (diff) |
Provide default implementation of QPlatformMenuBar::createMenu()
Instead of falling back to createPlatformMenu() in client code.
Change-Id: Ia257449200f5c71f5e164072adce13d1137b1d87
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/gui/kernel/qplatformmenu.h')
-rw-r--r-- | src/gui/kernel/qplatformmenu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qplatformmenu.h b/src/gui/kernel/qplatformmenu.h index f08f0ef494..f8561445b1 100644 --- a/src/gui/kernel/qplatformmenu.h +++ b/src/gui/kernel/qplatformmenu.h @@ -150,7 +150,7 @@ public: virtual void handleReparent(QWindow *newParentWindow) = 0; virtual QPlatformMenu *menuForTag(quintptr tag) const = 0; - virtual QPlatformMenu *createMenu() const { return nullptr; } + virtual QPlatformMenu *createMenu() const; }; QT_END_NAMESPACE |