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:
@@ -39,6 +39,13 @@
|
||||
namespace QmlJsDebugClient {
|
||||
|
||||
class QDebugMessageClientPrivate;
|
||||
struct QDebugContextInfo
|
||||
{
|
||||
int line;
|
||||
QString file;
|
||||
QString function;
|
||||
};
|
||||
|
||||
class QMLJSDEBUGCLIENT_EXPORT QDebugMessageClient : public QDeclarativeDebugClient
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -53,7 +60,8 @@ protected:
|
||||
|
||||
signals:
|
||||
void newStatus(QDeclarativeDebugClient::Status);
|
||||
void message(QtMsgType, const QString &);
|
||||
void message(QtMsgType, const QString &,
|
||||
const QmlJsDebugClient::QDebugContextInfo &);
|
||||
|
||||
private:
|
||||
class QDebugMessageClientPrivate *d;
|
||||
|
||||
Reference in New Issue
Block a user