diff options
author | Gerald Combs <gerald@wireshark.org> | 2016-09-01 13:51:13 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2016-09-02 23:53:37 +0000 |
commit | 5846524f0ba9389e3f4f03546db21782c2d22183 (patch) | |
tree | 0a557804da07c086f5d4cd6422765d3814e06b5a /ui/qt/traffic_table_dialog.h | |
parent | df3bf9ca796dc2474c55c87f0ff8cb4eab63d2f6 (diff) |
Qt: Conversation time column updates.
Add a checkbox which lets you toggle between absolute and relative start
times. Use the local time for now. Fixes bug 11618.
Adjust our time precision based on the capture file's time precision.
Fixes bug 12803.
Update the User's Guide accordingly.
Bug: 11618
Bug: 12803
Change-Id: I0049d6db6e4d0b6967bf35e6d056a61bfb4de10f
Reviewed-on: https://code.wireshark.org/review/17448
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/traffic_table_dialog.h')
-rw-r--r-- | ui/qt/traffic_table_dialog.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ui/qt/traffic_table_dialog.h b/ui/qt/traffic_table_dialog.h index 5abe5b2a24..9d46c77906 100644 --- a/ui/qt/traffic_table_dialog.h +++ b/ui/qt/traffic_table_dialog.h @@ -103,6 +103,8 @@ signals: class TrafficTableDialog : public WiresharkDialog { Q_OBJECT + Q_PROPERTY(bool absolute_start_time READ absoluteStartTime) + Q_PROPERTY(bool nanosecond_timestamps READ nanosecondTimestamps) public: /** Create a new conversation window. @@ -115,6 +117,16 @@ public: explicit TrafficTableDialog(QWidget &parent, CaptureFile &cf, const char *filter = NULL, const QString &table_name = tr("Unknown")); ~TrafficTableDialog(); + /** Use absolute start times. + * @return true if the "Absolute start time" checkbox is checked, false otherwise. + */ + bool absoluteStartTime(); + + /** Use nanosecond timestamps. + * @return true if the current capture file uses nanosecond timestamps, false otherwise. + */ + bool nanosecondTimestamps() { return nanosecond_timestamps_; } + public slots: signals: @@ -143,6 +155,7 @@ protected: QTabWidget *trafficTableTabWidget() const; QCheckBox *displayFilterCheckBox() const; QCheckBox *nameResolutionCheckBox() const; + QCheckBox *absoluteTimeCheckBox() const; QPushButton *enabledTypesPushButton() const; protected slots: @@ -151,6 +164,7 @@ protected slots: private: QString window_name_; + bool nanosecond_timestamps_; QList<QVariant> curTreeRowData(int row) const; |