3 #include <QContextMenuEvent>
20 QMenu *menu = createStandardContextMenu();
22 QString sel = textCursor().selectedText();
24 if (sel.length() > 50) {
25 sel = sel.left(48)+
"...";
29 menu->exec(event->globalPos());
36 QString sel = textCursor().selectedText();
38 if (sel.length() == 0) {
39 sel = this->toPlainText();
45 expt->executeCommand(sel);
QSharedPointer< QxrdExperiment > QxrdExperimentPtr
QWeakPointer< QxrdExperiment > QxrdExperimentWPtr