Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
C-Fu
OpenGL
Commits
15cd551f
Commit
15cd551f
authored
Jan 24, 2017
by
C-Fu
Browse files
forgot light - background connection
parent
16c9d355
Changes
1
Hide whitespace changes
Inline
Side-by-side
QtMeshViewer/Source/SettingsWindow.cpp
View file @
15cd551f
...
...
@@ -33,13 +33,13 @@ SettingsWindow::SettingsWindow(QWidget * parent)
// light
connect
(
ui
->
light_R_LE
,
&
QLineEdit
::
textChanged
,
[
this
](
const
QString
&
value
){
ui
->
light_R_S
->
setValue
(
value
.
toInt
());});
connect
(
ui
->
light_R_S
,
&
QSlider
::
valueChanged
,
[
this
](
const
int
&
value
){
ui
->
light_R_LE
->
setText
(
QString
::
number
(
value
));});
connect
(
ui
->
light_R_S
,
&
QSlider
::
valueChanged
,
[
this
](
const
int
&
value
){
ui
->
light_R_LE
->
setText
(
QString
::
number
(
value
));
if
(
ui
->
checkAutoColor
->
isCecked
())
ui
->
lightOn_R_S
->
setValue
((
int
)(
value
/
50
));
});
connect
(
ui
->
light_G_LE
,
&
QLineEdit
::
textChanged
,
[
this
](
const
QString
&
value
){
ui
->
light_G_S
->
setValue
(
value
.
toInt
());});
connect
(
ui
->
light_G_S
,
&
QSlider
::
valueChanged
,
[
this
](
const
int
&
value
){
ui
->
light_G_LE
->
setText
(
QString
::
number
(
value
));});
connect
(
ui
->
light_G_S
,
&
QSlider
::
valueChanged
,
[
this
](
const
int
&
value
){
ui
->
light_G_LE
->
setText
(
QString
::
number
(
value
));
if
(
ui
->
checkAutoColor
->
isCecked
())
ui
->
lightOn_G_S
->
setValue
((
int
)(
value
/
50
));
});
connect
(
ui
->
light_B_LE
,
&
QLineEdit
::
textChanged
,
[
this
](
const
QString
&
value
){
ui
->
light_B_S
->
setValue
(
value
.
toInt
());});
connect
(
ui
->
light_B_S
,
&
QSlider
::
valueChanged
,
[
this
](
const
int
&
value
){
ui
->
light_B_LE
->
setText
(
QString
::
number
(
value
));});
connect
(
ui
->
light_B_S
,
&
QSlider
::
valueChanged
,
[
this
](
const
int
&
value
){
ui
->
light_B_LE
->
setText
(
QString
::
number
(
value
));
if
(
ui
->
checkAutoColor
->
isCecked
())
ui
->
lightOn_B_S
->
setValue
((
int
)(
value
/
50
));
});
connect
(
ui
->
checkAutoColor
,
&
QCheckBox
::
toggled
,
this
,
&
SettingsWindow
::
autoColorToggled
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment