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.
|
||||
*/
|
||||
|
||||
DebuggerToolTipContext::DebuggerToolTipContext()
|
||||
: position(0), line(0), column(0), scopeFromLine(0), scopeToLine(0), isCppEditor(true)
|
||||
{
|
||||
}
|
||||
|
||||
static bool filesMatch(const FilePath &file1, const FilePath &file2)
|
||||
{
|
||||
return file1.canonicalPath() == file2.canonicalPath();
|
||||
|
||||
@@ -22,18 +22,18 @@ public:
|
||||
QString toolTip() const;
|
||||
|
||||
Utils::FilePath fileName;
|
||||
int position;
|
||||
int line;
|
||||
int column;
|
||||
int scopeFromLine;
|
||||
int scopeToLine;
|
||||
int position = 0;
|
||||
int line = 0;
|
||||
int column = 0;
|
||||
int scopeFromLine = 0;
|
||||
int scopeToLine = 0;
|
||||
QString function; //!< Optional, informational only.
|
||||
QString engineType;
|
||||
|
||||
QPoint mousePosition;
|
||||
QString expression;
|
||||
QString iname;
|
||||
bool isCppEditor;
|
||||
bool isCppEditor = true;
|
||||
};
|
||||
|
||||
using DebuggerToolTipContexts = QList<DebuggerToolTipContext>;
|
||||
|
||||
Reference in New Issue
Block a user