ProjectExplorer: Move Runnable/Connection model into class

Somewhat better encapsulation.

Removes the "false" sharing of Concept implementations, and takes
the opportunity to change the operator==() into a 'canReUseOutputPane'
function to be explicit about its only use.

This doesn't solve the change in output pane reuse behavior yet,
but provides the base to put the required logic into canReUseOutputPane,
as opposed to abusing the general equality concept.

Change-Id: Id9e4e6b8601c5fcf40a252fb423c2c4c2b74ddb6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2016-05-11 16:29:03 +02:00
parent 9b1e2cb48e
commit 4320aeea18
4 changed files with 50 additions and 61 deletions

View File

@@ -3633,14 +3633,6 @@ AnalyzerRunControl *createAnalyzerRunControl(RunConfiguration *runConfiguration,
return 0;
}
bool operator==(const AnalyzerConnection &c1, const AnalyzerConnection &c2)
{
return c1.connParams == c2.connParams
&& c1.analyzerHost == c2.analyzerHost
&& c1.analyzerSocket == c2.analyzerSocket
&& c1.analyzerPort == c2.analyzerPort;
}
namespace Internal {
static bool s_testRun = false;