@@ -79,9 +79,9 @@ PreferencesDialog::PreferencesDialog(QWidget* parent)
79
79
80
80
connect (radioButtonStones_2D, &QRadioButton::toggled, this , &PreferencesDialog::select_stone_look);
81
81
connect (radioButtonStones_3D, &QRadioButton::toggled, this , &PreferencesDialog::select_stone_look);
82
- connect (radioButtonStone_picture, &QRadioButton::toggled, this , &PreferencesDialog::select_stone_look);
83
- connect (blackStonePicturePathEdit, &QLineEdit::textChanged, [=] () { update_b_stones (); });
84
- connect (whiteStonePicturePathEdit, &QLineEdit::textChanged, [=] () { update_w_stones (); });
82
+ connect (radioButtonStone_picture, &QRadioButton::toggled, this , &PreferencesDialog::select_stone_look);
83
+ connect (blackStonePicturePathEdit, &QLineEdit::textChanged, [=] () { update_b_stones (); });
84
+ connect (whiteStonePicturePathEdit, &QLineEdit::textChanged, [=] () { update_w_stones (); });
85
85
86
86
connect (whiteColorButton, &QToolButton::clicked, this , &PreferencesDialog::select_white_color);
87
87
connect (blackColorButton, &QToolButton::clicked, this , &PreferencesDialog::select_black_color);
@@ -297,6 +297,8 @@ void PreferencesDialog::select_black_color (bool)
297
297
298
298
void PreferencesDialog::update_stone_params ()
299
299
{
300
+ QString whiteStonePicturePath = whiteStonePicturePathEdit->text ();
301
+ QString blackStonePicturePath = blackStonePicturePathEdit->text ();
300
302
double br = 2.05 + (100 - blackRoundSlider->value ()) / 30.0 ;
301
303
double wr = 2.05 + (100 - whiteRoundSlider->value ()) / 30.0 ;
302
304
double bs = blackSpecSlider->value () / 100.0 ;
@@ -316,7 +318,7 @@ void PreferencesDialog::update_stone_params ()
316
318
look = 4 ;
317
319
blackGroupBox->setEnabled (look == 3 );
318
320
whiteGroupBox->setEnabled (look == 3 );
319
- m_ih->set_stone_params (wh, bh, ws, bs, wr, br, wf, bf, ambient, look, clamshell);
321
+ m_ih->set_stone_params (wh, bh, ws, bs, wr, br, wf, bf, ambient, look, clamshell, whiteStonePicturePath, blackStonePicturePath );
320
322
}
321
323
322
324
void PreferencesDialog::update_w_stones ()
0 commit comments