Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
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
23class CopyFromProfileButton : public QPushButton
24{
25 Q_OBJECT
26
27public:
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
49private:
51 QString filename_;
52
54 QMenu * buttonMenu_;
55
61 QAction * systemDefault(QString filename);
62
63private slots:
68 void menuActionTriggered(QAction *action);
69};
70
71#endif // COPY_FROM_PROFILE_BUTTON_H
A button that presents a menu to copy settings from existing profiles.
Definition copy_from_profile_button.h:24
void copyProfile(QString filename)
Signal emitted when a profile has been selected for copying.
void setFilename(QString filename)
Sets the target configuration filename for copying.
Definition copy_from_profile_button.cpp:35