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
75a23aa7
Commit
75a23aa7
authored
Feb 18, 2016
by
Craig Watson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Shrunk compass size by 25%
parent
e9398f55
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
UBGraphicsCompass.cpp
src/tools/UBGraphicsCompass.cpp
+2
-2
UBGraphicsCompass.h
src/tools/UBGraphicsCompass.h
+13
-13
No files found.
src/tools/UBGraphicsCompass.cpp
View file @
75a23aa7
...
...
@@ -37,7 +37,7 @@
#include "core/memcheck.h"
const
QRect
UBGraphicsCompass
::
sDefaultRect
=
QRect
(
0
,
-
20
,
300
,
48
);
const
QRect
UBGraphicsCompass
::
sDefaultRect
=
QRect
(
0
,
-
20
,
300
,
36
);
const
QColor
UBGraphicsCompass
::
sLightBackgroundMiddleFillColor
=
QColor
(
0x72
,
0x72
,
0x72
,
sFillTransparency
);
const
QColor
UBGraphicsCompass
::
sLightBackgroundEdgeFillColor
=
QColor
(
0xc3
,
0xc3
,
0xc3
,
sFillTransparency
);
const
QColor
UBGraphicsCompass
::
sLightBackgroundDrawColor
=
QColor
(
0x33
,
0x33
,
0x33
,
sDrawTransparency
);
...
...
@@ -46,7 +46,7 @@ const QColor UBGraphicsCompass::sDarkBackgroundEdgeFillColor = QColor(0xdd, 0xdd
const
QColor
UBGraphicsCompass
::
sDarkBackgroundDrawColor
=
QColor
(
0xff
,
0xff
,
0xff
,
sDrawTransparency
);
const
int
UBGraphicsCompass
::
sMinRadius
=
UBGraphicsCompass
::
sNeedleLength
+
UBGraphicsCompass
::
sNeedleBaseLength
+
32
+
UBGraphicsCompass
::
sDefaultRect
.
height
()
+
32
+
UBGraphicsCompass
::
sPencilBaseLength
+
24
+
UBGraphicsCompass
::
sDefaultRect
.
height
()
+
24
+
UBGraphicsCompass
::
sPencilBaseLength
+
UBGraphicsCompass
::
sPencilLength
;
UBGraphicsCompass
::
UBGraphicsCompass
()
...
...
src/tools/UBGraphicsCompass.h
View file @
75a23aa7
...
...
@@ -124,25 +124,25 @@ class UBGraphicsCompass: public QObject, public QGraphicsRectItem, public UBItem
int
mPixelsPerMillimeter
;
// Constants
static
const
int
sNeedleLength
=
24
;
static
const
int
sNeedleWidth
=
4
;
static
const
int
sNeedleLength
=
18
;
static
const
int
sNeedleWidth
=
3
;
static
const
int
sNeedleBaseLength
=
1
6
;
static
const
int
sNeedleBaseWidth
=
1
6
;
static
const
int
sNeedleBaseLength
=
1
2
;
static
const
int
sNeedleBaseWidth
=
1
2
;
static
const
int
sNeedleArmLeftWidth
=
24
;
static
const
int
sNeedleArmRigthWidth
=
32
;
static
const
int
sNeedleArmLeftWidth
=
18
;
static
const
int
sNeedleArmRigthWidth
=
24
;
static
const
int
sPencilLength
=
1
6
;
static
const
int
sPencilWidth
=
4
;
static
const
int
sPencilLength
=
1
2
;
static
const
int
sPencilWidth
=
3
;
static
const
int
sPencilBaseLength
=
24
;
static
const
int
sPencilBaseWidth
=
1
6
;
static
const
int
sPencilBaseLength
=
18
;
static
const
int
sPencilBaseWidth
=
1
2
;
static
const
int
sPencilArmLeftWidth
=
32
;
static
const
int
sPencilArmRightWidth
=
24
;
static
const
int
sPencilArmLeftWidth
=
24
;
static
const
int
sPencilArmRightWidth
=
18
;
static
const
int
sCornerRadius
=
4
;
static
const
int
sCornerRadius
=
3
;
static
const
QRect
sDefaultRect
;
static
const
int
sMinRadius
;
...
...
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