| 149 | } |
| 150 | |
| 151 | static QString |
| 152 | mouseShortcutToString(const Qt::KeyboardModifiers & modifiers, |
| 153 | Qt::MouseButton button) |
| 154 | { |
| 155 | QString ret = makeKeySequence(modifiers, (Qt::Key)0).toString(QKeySequence::NativeText); |
| 156 | |
| 157 | switch (button) { |
| 158 | case Qt::LeftButton: |
| 159 | ret.append( QCoreApplication::translate("ShortCutEditor", "LeftButton") ); |
| 160 | break; |
| 161 | case Qt::MiddleButton: |
| 162 | ret.append( QCoreApplication::translate("ShortCutEditor", "MiddleButton") ); |
| 163 | break; |
| 164 | case Qt::RightButton: |
| 165 | ret.append( QCoreApplication::translate("ShortCutEditor", "RightButton") ); |
| 166 | break; |
| 167 | default: |
| 168 | break; |
| 169 | } |
| 170 | |
| 171 | return ret; |
| 172 | } |
| 173 | |
| 174 | typedef std::list<GuiShortCutGroup> GuiAppShorcuts; |
| 175 |
no test coverage detected