Fix constness of QShortcut::context()

Change-Id: Ic819c9b70fb2d6732f3fdc1d151a9adda571211b
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
This commit is contained in:
Stephen Kelly 2012-01-08 22:20:43 +01:00 committed by Qt by Nokia
parent 9b2a776ce2
commit fa1a142126
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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;