Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Frédéric Larue
CommonGUI
Commits
fea44fa6
Commit
fea44fa6
authored
Feb 09, 2019
by
Frédéric Larue
Browse files
Minor appearance modifications.
parent
e4ea01c9
Changes
3
Hide whitespace changes
Inline
Side-by-side
GLViewer/GLViewer.cpp
View file @
fea44fa6
...
...
@@ -295,7 +295,7 @@ bool GLViewer::addDisplayable( GenericUIData *m )
if
(
!
m
->
GetDisplayOptions
()
)
{
UIParamSet
*
params
=
new
UIParamSet
(
m
->
GetBaseName
()
+
" display options"
,
NULL
);
UIParamSet
*
params
=
new
UIParamSet
(
m
->
GetBaseName
(),
NULL
);
displayable
->
declareParameters
(
*
params
);
if
(
displayable
->
isAnimated
()
)
...
...
GUI_main/UIMainWindow.cpp
View file @
fea44fa6
...
...
@@ -604,7 +604,7 @@ void UIMainWindow::modifyItem( QTreeWidgetItem* entryInTable, int column )
getCurrentProject
()
->
Rename
(
item
,
newName
);
entryInTable
->
setText
(
0
,
item
->
GetFileName
()
);
if
(
item
->
GetDisplayOptions
()
)
item
->
GetDisplayOptions
()
->
setTitle
(
item
->
GetBaseName
()
+
" display options:"
);
item
->
GetDisplayOptions
()
->
setTitle
(
item
->
GetBaseName
()
);
}
}
...
...
UIParam/UIParamColorRGB.cpp
View file @
fea44fa6
...
...
@@ -41,6 +41,8 @@ UIParamColorRGB::UIParamColorRGB( const QString& id,
m_colorChooser
=
new
QPushButton
();
m_colorChooser
->
setContentsMargins
(
0
,
0
,
0
,
0
);
m_colorChooser
->
setMaximumSize
(
24
,
23
);
l
->
addWidget
(
m_colorChooser
,
0
,
3
);
ColorChannelChanged
();
...
...
@@ -86,8 +88,8 @@ void UIParamColorRGB::ColorChannelChanged()
{
QColor
currentColor
(
m_SpinChannels
[
0
]
->
value
(),
m_SpinChannels
[
1
]
->
value
(),
m_SpinChannels
[
2
]
->
value
());
static
const
unsigned
int
iconWidth
=
2
4
;
static
const
unsigned
int
iconHeight
=
1
6
;
static
const
unsigned
int
iconWidth
=
2
0
;
static
const
unsigned
int
iconHeight
=
1
9
;
QPixmap
p
(
iconWidth
,
iconHeight
);
p
.
fill
(
currentColor
);
...
...
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