| 47 | } |
| 48 | |
| 49 | void CommandPalette::setEditorCommandPalette( const std::vector<std::string>& commandList, |
| 50 | const UI::KeyBindings& keybindings ) { |
| 51 | mCommandPaletteEditor = build( commandList, keybindings ); |
| 52 | mEditorModel = CommandPaletteModel::create( 3, mCommandPaletteEditor ); |
| 53 | if ( !mCurModel ) |
| 54 | mCurModel = mEditorModel; |
| 55 | } |
| 56 | |
| 57 | const std::shared_ptr<CommandPaletteModel>& CommandPalette::getCurModel() const { |
| 58 | return mCurModel; |
no outgoing calls
no test coverage detected