Wireshark  4.3.0
The Wireshark network protocol analyzer
copy_from_profile_button.h
Go to the documentation of this file.
1 
10 #ifndef COPY_FROM_PROFILE_BUTTON_H
11 #define COPY_FROM_PROFILE_BUTTON_H
12 
13 #include <config.h>
14 
15 #include <QMenu>
16 #include <QPushButton>
17 #include <QDialogButtonBox>
18 #include <QMetaObject>
19 
20 class CopyFromProfileButton : public QPushButton
21 {
22  Q_OBJECT
23 
24 public:
25  CopyFromProfileButton(QWidget * parent = Q_NULLPTR, QString profileFile = QString(), QString toolTip = QString());
26 
27  void setFilename(QString filename);
28 
29 signals:
30  void copyProfile(QString filename);
31 
32 private:
33  QString filename_;
34  QMenu * buttonMenu_;
35 
36  QAction * systemDefault(QString filename);
37 
38 private slots:
39  void menuActionTriggered(QAction *);
40 };
41 
42 #endif // COPY_FROM_PROFILE_BUTTON_H
Definition: copy_from_profile_button.h:21