Thu, 31 Mar 2022 23:10:57 +0200
Stripped down the RangedSlider. It is more compact and still does everything. Base colors (red and green) are fixed inside, also automatisc setting of outer limits. The tooltip shows the current ranges. Still some finetuning to be done.
24 | 1 | #ifndef _EDITHOP_H |
2 | #define _EDITHOP_H | |
3 | ||
4 | #include <QDialog> | |
5 | ||
6 | ||
7 | namespace Ui { | |
8 | class EditHop; | |
9 | } | |
10 | ||
11 | class EditHop : public QDialog | |
12 | { | |
13 | Q_OBJECT | |
14 | ||
15 | signals: | |
16 | void entry_changed(); | |
17 | ||
18 | public: | |
19 | explicit EditHop(int id, QWidget *parent = 0); | |
20 | ~EditHop(); | |
21 | ||
22 | private slots: | |
23 | void on_saveButton_clicked(); | |
24 | void on_quitButton_clicked(); | |
25 | void on_deleteButton_clicked(); | |
26 | void is_changed(); | |
27 | ||
28 | private: | |
29 | Ui::EditHop *ui; | |
30 | int recno; | |
31 | bool textIsChanged = false; | |
32 | ||
33 | void WindowTitle(); | |
34 | }; | |
35 | ||
36 | #endif |