Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-qt-ui
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cellframe
libdap-qt-ui
Commits
ada3c426
Commit
ada3c426
authored
4 years ago
by
konstantin.kukharenko
Browse files
Options
Downloads
Patches
Plain Diff
[*]new overlay
parent
c0c0f984
No related branches found
Branches containing commit
No related tags found
1 merge request
!29
[*]Reload effect
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
DapUiDialog.cpp
+1
-1
1 addition, 1 deletion
DapUiDialog.cpp
SideBar.cpp
+1
-1
1 addition, 1 deletion
SideBar.cpp
controls/ScreenOverlaying.cpp
+6
-2
6 additions, 2 deletions
controls/ScreenOverlaying.cpp
controls/ScreenOverlaying.h
+3
-1
3 additions, 1 deletion
controls/ScreenOverlaying.h
with
11 additions
and
5 deletions
DapUiDialog.cpp
+
1
−
1
View file @
ada3c426
...
...
@@ -30,7 +30,7 @@ along with any CellFrame SDK based project. If not, see <http://www.gnu.org/lic
*/
DapUiDialog
::
DapUiDialog
(
QWidget
*
a_parent
)
:
QFrame
(
a_parent
),
m_screenOverlaying
(
a_parent
)
m_screenOverlaying
()
{
qDebug
()
<<
"DapUiDialog created"
;
...
...
This diff is collapsed.
Click to expand it.
SideBar.cpp
+
1
−
1
View file @
ada3c426
...
...
@@ -8,7 +8,7 @@ SideBar::SideBar(QWidget *parent) :
m_stateShowed
(
new
QState
(
m_sm
)),
m_stateHidden
(
new
QState
(
m_sm
)),
m_ui
(
new
Ui
::
SideBar
),
m_screenOverlaying
(
new
ScreenOverlaying
(
parent
)),
m_screenOverlaying
(
/*
new ScreenOverlaying(parent)
*/
),
m_resizeFilter
(
new
ResizeFilter
(
this
))
{
qDebug
()
<<
"SideBar constructor"
;
...
...
This diff is collapsed.
Click to expand it.
controls/ScreenOverlaying.cpp
+
6
−
2
View file @
ada3c426
#include
"ScreenOverlaying.h"
#include
<QDebug>
ScreenOverlaying
::
ScreenOverlaying
(
QWidget
*
a_parent
)
ScreenOverlaying
::
ScreenOverlaying
(
QMainWindow
*
a_parent
)
:
QWidget
(
a_parent
),
blurRadius
(
0
),
opacity
(
0
)
{
setObjectName
(
"ScreenBlureOpocityEffect"
);
m_blurParent
=
a_parent
->
centralWidget
();
m_opacityParent
=
a_parent
;
this
->
setVisible
(
false
);
}
ScreenOverlaying
::
ScreenOverlaying
(
QWidget
*
blure_parent
,
QWidget
*
opacity_parent
)
...
...
This diff is collapsed.
Click to expand it.
controls/ScreenOverlaying.h
+
3
−
1
View file @
ada3c426
...
...
@@ -4,6 +4,8 @@
#include
<QWidget>
#include
<QGraphicsOpacityEffect>
#include
<QGraphicsBlurEffect>
#include
<QDebug>
#include
<QMainWindow>
/* css style
#ScreenBlureOpocityEffect
...
...
@@ -20,7 +22,7 @@ class ScreenOverlaying: public QWidget
Q_PROPERTY
(
int
blurRadius
WRITE
setBlurRadius
DESIGNABLE
true
)
Q_PROPERTY
(
qreal
opacity
WRITE
setOpacity
DESIGNABLE
true
)
public:
ScreenOverlaying
(
Q
Widget
*
a_parent
);
ScreenOverlaying
(
Q
MainWindow
*
a_parent
=
nullptr
);
/// Constructor with two widgets specified. 1st widget for creating blurring.
/// The second widget must be the parent of the first and the parent
...
...
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