forked from qt-creator/qt-creator
Core: Use some data members in NavigationWidgetFactory
Adjust user code, remove unused bits. Change-Id: I351deb27679c9251518a4d1bf7f78a12bacae2fb Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -89,12 +89,60 @@
|
||||
|
||||
using namespace Core;
|
||||
|
||||
/*!
|
||||
Creates a \l{Core::NavigationViewFactory}.
|
||||
*/
|
||||
INavigationWidgetFactory::INavigationWidgetFactory()
|
||||
: m_priority(0)
|
||||
{
|
||||
}
|
||||
|
||||
/*!
|
||||
Sets the display name for the factory.
|
||||
|
||||
\sa displayName()
|
||||
*/
|
||||
void INavigationWidgetFactory::setDisplayName(const QString &displayName)
|
||||
{
|
||||
m_displayName = displayName;
|
||||
}
|
||||
|
||||
/*!
|
||||
Sets the priority for the factory.
|
||||
|
||||
\sa priority()
|
||||
*/
|
||||
void INavigationWidgetFactory::setPriority(int priority)
|
||||
{
|
||||
m_priority = priority;
|
||||
}
|
||||
|
||||
/*!
|
||||
Sets the id for the factory.
|
||||
|
||||
\sa id()
|
||||
*/
|
||||
void INavigationWidgetFactory::setId(Id id)
|
||||
{
|
||||
m_id = id;
|
||||
}
|
||||
|
||||
/*!
|
||||
Sets the keyboard activation sequence for the factory.
|
||||
|
||||
\sa activationSequence()
|
||||
*/
|
||||
void INavigationWidgetFactory::setActivationSequence(const QKeySequence &keys)
|
||||
{
|
||||
m_activationSequence = keys;
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns the keyboard shortcut to activate an instance of a navigation widget.
|
||||
*/
|
||||
QKeySequence INavigationWidgetFactory::activationSequence() const
|
||||
{
|
||||
return QKeySequence();
|
||||
return m_activationSequence;
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user