mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Print: connect all the options widgets to slots
By connecting to slots we always modify values at a previously set 'struct options' pointer. Also have the setup of slots and pre-set values in a separate setup(struct options *) function. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
01ef9f2175
commit
74f989bc46
2 changed files with 96 additions and 5 deletions
|
|
@ -16,6 +16,7 @@ Q_OBJECT
|
|||
|
||||
public:
|
||||
explicit PrintOptions(QWidget *parent = 0, struct options *printOpt = 0);
|
||||
void setup(struct options *printOpt);
|
||||
|
||||
private:
|
||||
Ui::PrintOptions *ui;
|
||||
|
|
@ -23,11 +24,19 @@ private:
|
|||
void initSliderWithLabel(QSlider *slider, QLabel *label, int value);
|
||||
QString formatSliderValueText(int value);
|
||||
struct options *printOptions;
|
||||
bool hasSetupSlots;
|
||||
|
||||
private slots:
|
||||
void sliderPHeightMoved(int value);
|
||||
void sliderOHeightMoved(int value);
|
||||
void sliderNHeightMoved(int value);
|
||||
void radioSixDivesClicked(bool check);
|
||||
void radioTwoDivesClicked(bool check);
|
||||
void radioTablePrintClicked(bool check);
|
||||
void printInColorClicked(bool check);
|
||||
void printSelectedClicked(bool check);
|
||||
void notesOnTopClicked(bool check);
|
||||
void profileOnTopClicked(bool check);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue