QmlProfiler: Move some methods from statistics view into model

This allows us to tighten up the public interface of the model.

Change-Id: Iaa0363993de7cd94c3468d2c939198e65746e829
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Ulf Hermann
2018-03-23 10:29:02 +01:00
parent 085dfac560
commit 1155601da5
4 changed files with 81 additions and 68 deletions

View File

@@ -117,8 +117,6 @@ public:
void copyTableToClipboard() const;
void copyRowToClipboard() const;
static QString nameForType(RangeType typeNumber);
int selectedTypeId() const;
void setShowExtendedStatistics(bool);
@@ -132,9 +130,9 @@ public:
void restrictToFeatures(quint64 features);
bool isRestrictedToRange() const;
double durationPercent(int typeId) const;
const QmlEventType &getType(int typeId) const;
QString summary(const QVector<int> &typeIds) const;
QStringList details(int typeId) const;
signals:
void gotoSourceLocation(const QString &fileName, int lineNumber, int columnNumber);