X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=gui%2Fprofiletablemodel.h;h=da17550393ba83395b7a68539e25e1460b1c2c97;hb=HEAD;hp=fe7979a3f393b9f7331e6af2dfa317d93c52c5aa;hpb=9115776479fc67fe12cc3f7ccb8da2fd684d2232;p=apitrace diff --git a/gui/profiletablemodel.h b/gui/profiletablemodel.h index fe7979a..da17550 100644 --- a/gui/profiletablemodel.h +++ b/gui/profiletablemodel.h @@ -6,8 +6,8 @@ struct ProfileTableRow { - ProfileTableRow() - : program(0), + ProfileTableRow(unsigned no) + : program(no), uses(0), gpuTime(0), cpuTime(0), @@ -37,8 +37,13 @@ public: ProfileTableModel(QObject *parent = NULL); void setProfile(trace::Profile* profile); - void setTimeSelection(int64_t start, int64_t end); + void selectNone(); + void selectProgram(unsigned program); + void selectTime(int64_t start, int64_t end); + + int getRowIndex(unsigned program) const; + unsigned getProgram(const QModelIndex & index) const; const trace::Profile::Call* getJumpCall(const QModelIndex & index) const; virtual int rowCount(const QModelIndex & parent) const;