Fix constness of QShortcut::context()
Change-Id: Ic819c9b70fb2d6732f3fdc1d151a9adda571211b Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
This commit is contained in:
parent
9b2a776ce2
commit
fa1a142126
@ -521,9 +521,9 @@ void QShortcut::setContext(Qt::ShortcutContext context)
|
||||
d->redoGrab(qApp->d_func()->shortcutMap);
|
||||
}
|
||||
|
||||
Qt::ShortcutContext QShortcut::context()
|
||||
Qt::ShortcutContext QShortcut::context() const
|
||||
{
|
||||
Q_D(QShortcut);
|
||||
Q_D(const QShortcut);
|
||||
return d->sc_context;
|
||||
}
|
||||
|
||||
|
@ -77,7 +77,7 @@ public:
|
||||
bool isEnabled() const;
|
||||
|
||||
void setContext(Qt::ShortcutContext context);
|
||||
Qt::ShortcutContext context();
|
||||
Qt::ShortcutContext context() const;
|
||||
|
||||
void setWhatsThis(const QString &text);
|
||||
QString whatsThis() const;
|
||||
|
Loading…
Reference in New Issue
Block a user