diff options
Diffstat (limited to 'src/commands/group.cpp')
| -rw-r--r-- | src/commands/group.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/commands/group.cpp b/src/commands/group.cpp new file mode 100644 index 0000000..fd9cd76 --- /dev/null +++ b/src/commands/group.cpp @@ -0,0 +1,23 @@ +/*************************************************************************** + copyright : (C) 2005-2006 by Robby Stephenson + email : robby@periapsis.org + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of version 2 of the GNU General Public License as * + * published by the Free Software Foundation; * + * * + ***************************************************************************/ + +#include "group.h" + +using Tellico::Command::Group; + +QString Group::name() const { + if(m_commands.count() == 1) { + return m_commands.getFirst()->name(); + } + return KMacroCommand::name(); +} |
