Add enablers for Android port in QPlatformMenu

We need a couple of functions here for the Android support.

Change-Id: I50e27277d7e838e277d616dbd3af9be817fb7197
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
This commit is contained in:
Eskil Abrahamsen Blomfeldt 2013-02-04 16:51:29 +01:00 committed by The Qt Project
parent 5809471ac7
commit 2f2107c1ba
3 changed files with 5 additions and 0 deletions

View File

@ -78,6 +78,7 @@ public:
virtual void setIsSeparator(bool isSeparator) = 0;
virtual void setFont(const QFont &font) = 0;
virtual void setRole(MenuRole role) = 0;
virtual void setCheckable(bool checkable) = 0;
virtual void setChecked(bool isChecked) = 0;
virtual void setShortcut(const QKeySequence& shortcut) = 0;
virtual void setEnabled(bool enabled) = 0;
@ -99,6 +100,7 @@ public:
virtual quintptr tag()const = 0;
virtual void setText(const QString &text) = 0;
virtual void setIcon(const QIcon &icon) = 0;
virtual void setEnabled(bool enabled) = 0;
virtual void setVisible(bool visible) = 0;
virtual void setMinimumWidth(int width) { Q_UNUSED(width); }

View File

@ -75,6 +75,8 @@ public:
void syncModalState(bool modal);
virtual void setIcon(const QIcon &icon) { Q_UNUSED(icon) }
void setText(const QString &text);
void setMinimumWidth(int width);
void setFont(const QFont &font);

View File

@ -74,6 +74,7 @@ public:
void setFont(const QFont &font);
void setRole(MenuRole role);
void setShortcut(const QKeySequence& shortcut);
void setCheckable(bool checkable) { Q_UNUSED(checkable) }
void setChecked(bool isChecked);
void setEnabled(bool isEnabled);