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:
hjk
2014-06-24 11:15:32 +02:00
parent 142f48e340
commit a355013eb1
22 changed files with 111 additions and 299 deletions

View File

@@ -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;
}
/*!