Commit 7364d8ba authored by con's avatar con
Browse files

Remove unused method.

parent b373242a
......@@ -49,12 +49,6 @@
\enum Command::CommandAttribute
*/
/*!
\fn void Command::setCategory(const QString &name)
Sets the category to \a name.
*/
/*!
\fn virtual void Command::setDefaultKeySequence(const QKeySequence &key)
*/
......@@ -118,18 +112,6 @@ int CommandPrivate::stateFlags() const
return (m_type & CS_Mask);
}
void CommandPrivate::setCategory(const QString &name)
{
m_category = name;
}
QString CommandPrivate::category() const
{
if (m_category.isEmpty())
return tr("Other");
return m_category;
}
void CommandPrivate::setDefaultKeySequence(const QKeySequence &key)
{
m_defaultKey = key;
......
......@@ -63,8 +63,6 @@ public:
virtual void setDefaultText(const QString &text) = 0;
virtual QString defaultText() const = 0;
virtual void setCategory(const QString &name) = 0;
virtual int id() const = 0;
virtual CommandType type() const = 0;
......
......@@ -60,9 +60,6 @@ public:
virtual QString name() const = 0;
void setCategory(const QString &name);
QString category() const;
void setDefaultKeySequence(const QKeySequence &key);
QKeySequence defaultKeySequence() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment