| 56 | } |
| 57 | |
| 58 | QKeySequence sendMessageKeySequence() |
| 59 | { |
| 60 | auto command = Core::ActionManager::command(Constants::QODE_ASSIST_CHAT_SEND_MESSAGE); |
| 61 | if (!command) |
| 62 | return {}; |
| 63 | |
| 64 | QKeySequence sequence = command->keySequence(); |
| 65 | if (sequence.isEmpty()) { |
| 66 | const QList<QKeySequence> defaults = command->defaultKeySequences(); |
| 67 | if (!defaults.isEmpty()) |
| 68 | sequence = defaults.constFirst(); |
| 69 | } |
| 70 | return sequence; |
| 71 | } |
| 72 | } // namespace |
| 73 | |
| 74 | ChatRootView::ChatRootView(QQuickItem *parent) |
no test coverage detected