Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
81ce6e54
Commit
81ce6e54
authored
9 years ago
by
Pospelov, Gennady
Browse files
Options
Downloads
Patches
Plain Diff
Style sheet fix in ClickableFrame
parent
05ca6482
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
GUI/coregui/Views/AccordionWidget/ClickableFrame.cpp
+5
-2
5 additions, 2 deletions
GUI/coregui/Views/AccordionWidget/ClickableFrame.cpp
GUI/coregui/Views/MaskWidgets/MaskEditorPropertyPanel.cpp
+5
-1
5 additions, 1 deletion
GUI/coregui/Views/MaskWidgets/MaskEditorPropertyPanel.cpp
with
10 additions
and
3 deletions
GUI/coregui/Views/AccordionWidget/ClickableFrame.cpp
+
5
−
2
View file @
81ce6e54
...
@@ -15,10 +15,13 @@
...
@@ -15,10 +15,13 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include
"ClickableFrame.h"
#include
"ClickableFrame.h"
#include
<QDebug>
#include
<QStyleOption>
ClickableFrame
::
ClickableFrame
(
QString
header
,
QWidget
*
parent
,
ClickableFrame
::
ClickableFrame
(
QString
header
,
QWidget
*
parent
,
Qt
::
WindowFlags
f
)
Qt
::
WindowFlags
f
)
:
header
(
header
),
QFrame
(
parent
,
f
)
:
QFrame
(
parent
,
f
)
,
header
(
header
)
{
{
this
->
setAttribute
(
Qt
::
WA_Hover
,
true
);
this
->
setAttribute
(
Qt
::
WA_Hover
,
true
);
this
->
clickable
=
true
;
this
->
clickable
=
true
;
...
@@ -26,7 +29,7 @@ ClickableFrame::ClickableFrame(QString header, QWidget *parent,
...
@@ -26,7 +29,7 @@ ClickableFrame::ClickableFrame(QString header, QWidget *parent,
QColor
background
=
this
->
palette
().
color
(
QPalette
::
ColorRole
::
Background
);
QColor
background
=
this
->
palette
().
color
(
QPalette
::
ColorRole
::
Background
);
QColor
lighter
=
background
.
lighter
(
110
);
QColor
lighter
=
background
.
lighter
(
110
);
this
->
normalStylesheet
=
""
;
this
->
normalStylesheet
=
""
;
this
->
hoverStylesheet
=
"background-color: "
+
lighter
.
name
()
+
";"
;
this
->
hoverStylesheet
=
"
QFrame {
background-color: "
+
lighter
.
name
()
+
";
}
"
;
this
->
initFrame
();
this
->
initFrame
();
}
}
...
...
This diff is collapsed.
Click to expand it.
GUI/coregui/Views/MaskWidgets/MaskEditorPropertyPanel.cpp
+
5
−
1
View file @
81ce6e54
...
@@ -57,6 +57,7 @@ MaskEditorPropertyPanel::MaskEditorPropertyPanel(QWidget *parent)
...
@@ -57,6 +57,7 @@ MaskEditorPropertyPanel::MaskEditorPropertyPanel(QWidget *parent)
setup_MaskStack
(
accordion
);
setup_MaskStack
(
accordion
);
setup_MaskProperties
(
accordion
);
setup_MaskProperties
(
accordion
);
setup_PlotProperties
(
accordion
);
setup_PlotProperties
(
accordion
);
// mainLayout->addWidget(m_plotPropertyEditor);
setLayout
(
mainLayout
);
setLayout
(
mainLayout
);
}
}
...
@@ -139,7 +140,7 @@ void MaskEditorPropertyPanel::setup_MaskStack(AccordionWidget *accordion)
...
@@ -139,7 +140,7 @@ void MaskEditorPropertyPanel::setup_MaskStack(AccordionWidget *accordion)
void
MaskEditorPropertyPanel
::
setup_MaskProperties
(
AccordionWidget
*
accordion
)
void
MaskEditorPropertyPanel
::
setup_MaskProperties
(
AccordionWidget
*
accordion
)
{
{
ContentPane
*
cp
=
accordion
->
getContentPane
(
accordion
->
addContentPane
(
"Mask properties"
));
ContentPane
*
cp
=
accordion
->
getContentPane
(
accordion
->
addContentPane
(
"Mask properties"
));
cp
->
setMaximumHeight
(
3
00
);
cp
->
setMaximumHeight
(
4
00
);
cp
->
setHeaderTooltip
(
"Property editor for currently selected mask."
);
cp
->
setHeaderTooltip
(
"Property editor for currently selected mask."
);
cp
->
setContainerFrameStyle
(
QFrame
::
Plain
);
cp
->
setContainerFrameStyle
(
QFrame
::
Plain
);
QFrame
*
contentFrame
=
cp
->
getContentFrame
();
QFrame
*
contentFrame
=
cp
->
getContentFrame
();
...
@@ -158,8 +159,11 @@ void MaskEditorPropertyPanel::setup_PlotProperties(AccordionWidget *accordion)
...
@@ -158,8 +159,11 @@ void MaskEditorPropertyPanel::setup_PlotProperties(AccordionWidget *accordion)
cp
->
setContainerFrameStyle
(
QFrame
::
Plain
);
cp
->
setContainerFrameStyle
(
QFrame
::
Plain
);
QFrame
*
contentFrame
=
cp
->
getContentFrame
();
QFrame
*
contentFrame
=
cp
->
getContentFrame
();
//contentFrame->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
QVBoxLayout
*
layout
=
new
QVBoxLayout
();
QVBoxLayout
*
layout
=
new
QVBoxLayout
();
layout
->
setContentsMargins
(
0
,
0
,
0
,
0
);
layout
->
setContentsMargins
(
0
,
0
,
0
,
0
);
m_plotPropertyEditor
->
setSizePolicy
(
QSizePolicy
::
Expanding
,
QSizePolicy
::
Expanding
);
layout
->
addWidget
(
m_plotPropertyEditor
);
layout
->
addWidget
(
m_plotPropertyEditor
);
contentFrame
->
setLayout
(
layout
);
contentFrame
->
setLayout
(
layout
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment