Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
82453e51
Commit
82453e51
authored
Jul 16, 2013
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
frame button and transparency strokes fixed issue 50
parent
bc5a17e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
UBGraphicsItemDelegate.cpp
src/domain/UBGraphicsItemDelegate.cpp
+9
-1
UBGraphicsProxyWidget.cpp
src/domain/UBGraphicsProxyWidget.cpp
+3
-0
No files found.
src/domain/UBGraphicsItemDelegate.cpp
View file @
82453e51
...
...
@@ -120,14 +120,17 @@ void DelegateButton::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
void
DelegateButton
::
paint
(
QPainter
*
painter
,
const
QStyleOptionGraphicsItem
*
option
,
QWidget
*
widget
)
{
painter
->
save
();
painter
->
setCompositionMode
(
QPainter
::
CompositionMode_SourceOver
);
QGraphicsSvgItem
::
paint
(
painter
,
option
,
widget
);
painter
->
restore
();
if
(
mIsPressed
&&
mShowProgressIndicator
)
{
QPen
pen
;
pen
.
setBrush
(
Qt
::
white
);
pen
.
setWidth
(
3
);
painter
->
save
();
painter
->
setCompositionMode
(
QPainter
::
CompositionMode_SourceOver
);
painter
->
setPen
(
pen
);
int
spanAngle
=
qMin
(
mPressProgres
,
UBSettings
::
longClickInterval
)
*
360
/
UBSettings
::
longClickInterval
;
...
...
@@ -848,6 +851,11 @@ void UBGraphicsToolBarItem::paint(QPainter *painter, const QStyleOptionGraphicsI
setBrush
(
QBrush
(
UBSettings
::
paletteColor
));
// QPainter newPainter;
// newPaiter->setBrush(QBrush(Qt::red));
painter
->
fillPath
(
path
,
brush
());
}
...
...
src/domain/UBGraphicsProxyWidget.cpp
View file @
82453e51
...
...
@@ -49,8 +49,11 @@ UBGraphicsProxyWidget::~UBGraphicsProxyWidget()
void
UBGraphicsProxyWidget
::
paint
(
QPainter
*
painter
,
const
QStyleOptionGraphicsItem
*
option
,
QWidget
*
widget
)
{
painter
->
save
();
painter
->
setCompositionMode
(
QPainter
::
CompositionMode_SourceOver
);
QGraphicsProxyWidget
::
paint
(
painter
,
option
,
widget
);
Delegate
()
->
postpaint
(
painter
,
option
,
widget
);
painter
->
restore
();
}
QVariant
UBGraphicsProxyWidget
::
itemChange
(
GraphicsItemChange
change
,
const
QVariant
&
value
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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