| 268 | } |
| 269 | |
| 270 | void 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 | |
| 279 | QAction* Scratchpad::runAction() const |
| 280 | { |
no test coverage detected