forked from qt-creator/qt-creator
Utils: Start simplification of tooltip handling
There's a bit too much unneeded flexibility in there, requiring extra boiler-plate code on the user side. Change-Id: I34d03838fb1cd3182fcbb93bf65158ebfc7e2bce Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -61,7 +61,6 @@
|
||||
|
||||
#include <extensionsystem/pluginmanager.h>
|
||||
|
||||
#include <utils/tooltip/tipcontents.h>
|
||||
#include <utils/tooltip/tooltip.h>
|
||||
|
||||
//static const int FILE_LEVEL = 1;
|
||||
@@ -298,7 +297,7 @@ SideDiffEditorWidget::SideDiffEditorWidget(QWidget *parent)
|
||||
int block = document()->findBlock(position).blockNumber();
|
||||
auto it = m_fileInfo.constFind(block);
|
||||
if (it != m_fileInfo.constEnd())
|
||||
ToolTip::show(point, TextContent(it.value().fileName), this);
|
||||
ToolTip::show(point, it.value().fileName, this);
|
||||
else
|
||||
ToolTip::hide();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user