forked from qt-creator/qt-creator
Debugger: Simplify DebuggerToolTipContext constructor
Change-Id: I3407a3f6e7d2ca7cdcd16256bc069933a42bfa8b Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -570,11 +570,6 @@ void DebuggerToolTipManagerPrivate::hideAllToolTips()
|
|||||||
on restoring.
|
on restoring.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
DebuggerToolTipContext::DebuggerToolTipContext()
|
|
||||||
: position(0), line(0), column(0), scopeFromLine(0), scopeToLine(0), isCppEditor(true)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool filesMatch(const FilePath &file1, const FilePath &file2)
|
static bool filesMatch(const FilePath &file1, const FilePath &file2)
|
||||||
{
|
{
|
||||||
return file1.canonicalPath() == file2.canonicalPath();
|
return file1.canonicalPath() == file2.canonicalPath();
|
||||||
|
|||||||
@@ -22,18 +22,18 @@ public:
|
|||||||
QString toolTip() const;
|
QString toolTip() const;
|
||||||
|
|
||||||
Utils::FilePath fileName;
|
Utils::FilePath fileName;
|
||||||
int position;
|
int position = 0;
|
||||||
int line;
|
int line = 0;
|
||||||
int column;
|
int column = 0;
|
||||||
int scopeFromLine;
|
int scopeFromLine = 0;
|
||||||
int scopeToLine;
|
int scopeToLine = 0;
|
||||||
QString function; //!< Optional, informational only.
|
QString function; //!< Optional, informational only.
|
||||||
QString engineType;
|
QString engineType;
|
||||||
|
|
||||||
QPoint mousePosition;
|
QPoint mousePosition;
|
||||||
QString expression;
|
QString expression;
|
||||||
QString iname;
|
QString iname;
|
||||||
bool isCppEditor;
|
bool isCppEditor = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
using DebuggerToolTipContexts = QList<DebuggerToolTipContext>;
|
using DebuggerToolTipContexts = QList<DebuggerToolTipContext>;
|
||||||
|
|||||||
Reference in New Issue
Block a user