From 420c4ecc5656352e4bff14813c9b2b10fa5635c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Mon, 8 Oct 2018 21:12:41 +0200 Subject: Qt: Add copy from another profile for UAT frames MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a new button to UAT frames to copy entries from another profile. Change-Id: I9decb5ed5d67e97388ee7b22a15cacae4d5a3621 Reviewed-on: https://code.wireshark.org/review/30084 Petri-Dish: Stig Bjørlykke Tested-by: Petri Dish Buildbot Reviewed-by: Stig Bjørlykke --- ui/qt/uat_frame.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ui/qt/uat_frame.h') diff --git a/ui/qt/uat_frame.h b/ui/qt/uat_frame.h index 81ae15d53c..02475ca10a 100644 --- a/ui/qt/uat_frame.h +++ b/ui/qt/uat_frame.h @@ -16,6 +16,8 @@ #include #include +class CopyFromProfileMenu; + namespace Ui { class UatFrame; } @@ -33,11 +35,15 @@ public: void acceptChanges(); void rejectChanges(); +protected: + void showEvent(QShowEvent *); + private: Ui::UatFrame *ui; UatModel *uat_model_; UatDelegate *uat_delegate_; + CopyFromProfileMenu *copy_from_menu_; struct epan_uat *uat_; void checkForErrorHint(const QModelIndex ¤t, const QModelIndex &previous); @@ -46,6 +52,7 @@ private: void applyChanges(); private slots: + void copyFromProfile(QAction *action); void modelDataChanged(const QModelIndex &topLeft); void modelRowsRemoved(); void modelRowsReset(); -- cgit v1.2.3