aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/uat_frame.h
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2018-10-08 21:12:41 +0200
committerStig Bjørlykke <stig@bjorlykke.org>2018-10-08 21:07:58 +0000
commit420c4ecc5656352e4bff14813c9b2b10fa5635c8 (patch)
treeeec64205679b78173e068cf06ec2508e9153efcb /ui/qt/uat_frame.h
parent75c370fe546ddb616764511bcadf4bb1ee57ebd9 (diff)
Qt: Add copy from another profile for UAT frames
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 <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/qt/uat_frame.h')
-rw-r--r--ui/qt/uat_frame.h7
1 files changed, 7 insertions, 0 deletions
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 <ui/qt/models/uat_model.h>
#include <ui/qt/models/uat_delegate.h>
+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 &current, 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();