forked from qt-creator/qt-creator
analyzer: reorganize local/remote starts
Change-Id: I6273ea7ea50fd2bddad3a627e4616fe93e8398b9 Reviewed-on: http://codereview.qt.nokia.com/921 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -999,6 +999,15 @@ void CallgrindToolPrivate::createTextMarks()
|
||||
}
|
||||
}
|
||||
|
||||
bool CallgrindTool::canRunLocally() const
|
||||
{
|
||||
#ifdef Q_OS_WINDOWS
|
||||
return false;
|
||||
#else
|
||||
return true;
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Valgrind
|
||||
|
||||
|
||||
@@ -62,6 +62,7 @@ public:
|
||||
QWidget *createControlWidget();
|
||||
|
||||
bool canRunRemotely() const { return true; }
|
||||
bool canRunLocally() const;
|
||||
|
||||
private:
|
||||
CallgrindToolPrivate *d;
|
||||
|
||||
@@ -564,5 +564,14 @@ bool MemcheckTool::canRunRemotely() const
|
||||
return true;
|
||||
}
|
||||
|
||||
bool MemcheckTool::canRunLocally() const
|
||||
{
|
||||
#ifdef Q_OS_WINDOWS
|
||||
return false;
|
||||
#else
|
||||
return true;
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Valgrind
|
||||
|
||||
@@ -113,6 +113,7 @@ private slots:
|
||||
private:
|
||||
void ensureWidgets();
|
||||
bool canRunRemotely() const;
|
||||
bool canRunLocally() const;
|
||||
void initializeDockWidgets();
|
||||
void initialize() {}
|
||||
void extensionsInitialized();
|
||||
|
||||
Reference in New Issue
Block a user