forked from qt-creator/qt-creator
ScriptConsole: Show File and Line Info
Show File and Line Info for items that have the info. Clicking on the item opens the file and sets the cursor position on the line. The context menu also provides option to copy contents and option to clear the view. Change-Id: I161de392ba35e37d323b049371619b01c617c798 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
@@ -164,6 +164,10 @@ void QtMessageLogEditor::keyPressEvent(QKeyEvent *e)
|
||||
|
||||
void QtMessageLogEditor::contextMenuEvent(QContextMenuEvent *event)
|
||||
{
|
||||
//TODO:: on right click the editor closes
|
||||
//FIXIT
|
||||
return QTextEdit::contextMenuEvent(event);
|
||||
|
||||
QTextCursor cursor = textCursor();
|
||||
bool editable = cursor.position() > m_startOfEditableArea;
|
||||
QMenu *menu = new QMenu();
|
||||
|
||||
Reference in New Issue
Block a user