Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
CustomDoubleSpinBox.h
Go to the documentation of this file.
1
7
8#ifndef CUSTOMDOUBLESPINBOX_H
9#define CUSTOMDOUBLESPINBOX_H
10
11#include <QDoubleSpinBox>
12#include <QMenu>
13#include <QDialog>
14#include <QFormLayout>
15#include <QDialogButtonBox>
16#include <QVBoxLayout>
17#include <QLabel>
18#include <QContextMenuEvent>
19
27class CustomDoubleSpinBox : public QDoubleSpinBox
28{
29 Q_OBJECT
30
31public:
32
35 explicit CustomDoubleSpinBox(QWidget *parent = nullptr);
36
37protected:
43 void contextMenuEvent(QContextMenuEvent *event) override;
44
45private slots:
51 void openConfigDialog();
52
53private:
54
56 void updateReadOnlyStyle();
57};
58
59#endif // CUSTOMDOUBLESPINBOX_H
A QDoubleSpinBox subclass that provides a context menu for configuring range and step.
Definition CustomDoubleSpinBox.h:28
void contextMenuEvent(QContextMenuEvent *event) override
Handles context menu events (right-click)
Definition CustomDoubleSpinBox.cpp:16