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 #include <glib.h>
15 
16 #include <QMenu>
17 #include <QPushButton>
18 #include <QDialogButtonBox>
19 #include <QMetaObject>
20 
21 class CopyFromProfileButton : public QPushButton
22 {
23  Q_OBJECT
24 
25 public:
26  CopyFromProfileButton(QWidget * parent = Q_NULLPTR, QString profileFile = QString(), QString toolTip = QString());
27 
28  void setFilename(QString filename);
29 
30 signals:
31  void copyProfile(QString filename);
32 
33 private:
34  QString filename_;
35  QMenu * buttonMenu_;
36 
37  QAction * systemDefault(QString filename);
38 
39 private slots:
40  void menuActionTriggered(QAction *);
41 };
42 
43 #endif // COPY_FROM_PROFILE_BUTTON_H
Definition: copy_from_profile_button.h:22