| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
copy_from_profile_button.h
Go to the documentation of this file.
1
9
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
23 class CopyFromProfileButton : public QPushButton
24{
25 Q_OBJECT
26
27 public:
34 CopyFromProfileButton(QWidget * parent = Q_NULLPTR, QString profileFile = QString(), QString toolTip = QString());
35
40 void setFilename(QString filename);
41
42signals:
47 void copyProfile(QString filename);
48
49 private:
51 QString filename_;
52
54 QMenu * buttonMenu_;
55
61 QAction * systemDefault(QString filename);
62
63 private slots:
68 void menuActionTriggered(QAction *action);
69};
70
71#endif // COPY_FROM_PROFILE_BUTTON_H
CopyFromProfileButton::copyProfile
void copyProfile(QString filename)
Signal emitted when a profile has been selected for copying.
CopyFromProfileButton::CopyFromProfileButton
CopyFromProfileButton(QWidget *parent=Q_NULLPTR, QString profileFile=QString(), QString toolTip=QString())
Constructs a new CopyFromProfileButton.
Definition copy_from_profile_button.cpp:20
CopyFromProfileButton::setFilename
void setFilename(QString filename)
Sets the target configuration filename for copying.
Definition copy_from_profile_button.cpp:35