MCPcopy Create free account
hub / github.com/KDE/kdevelop / setCommand

Method setCommand

plugins/scratchpad/scratchpad.cpp:270–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270void Scratchpad::setCommand(const QModelIndex& index, const QString& command)
271{
272 qCDebug(PLUGIN_SCRATCHPAD) << "set command" << index.data();
273 m_model->setData(index, command, RunCommandRole);
274 scratchCommands().writeEntry(index.data().toString(), command);
275
276 mimeCommands().writeEntry(QFileInfo(index.data().toString()).suffix(), command);
277}
278
279QAction* Scratchpad::runAction() const
280{

Callers 2

ScratchpadViewMethod · 0.45
runSelectedScratchMethod · 0.45

Calls 7

scratchCommandsFunction · 0.85
mimeCommandsFunction · 0.85
writeEntryMethod · 0.80
QFileInfoClass · 0.70
dataMethod · 0.45
setDataMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected