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:
hjk
2014-12-08 10:57:05 +01:00
parent 89115df9ba
commit 50ad32a25b
14 changed files with 125 additions and 292 deletions

View File

@@ -46,7 +46,6 @@
#include <utils/proxyaction.h>
#include <utils/qtcassert.h>
#include <utils/tooltip/tipcontents.h>
#include <utils/tooltip/tooltip.h>
#include <QtConcurrentRun>
@@ -310,7 +309,7 @@ void FunctionDeclDefLink::apply(CppEditorWidget *editor, bool jumpToMatch)
newTargetFile->apply();
} else {
ToolTip::show(editor->toolTipPosition(linkSelection),
TextContent(tr("Target file was changed, could not apply changes")));
tr("Target file was changed, could not apply changes"));
}
}