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
b2c05d49
Commit
b2c05d49
authored
May 15, 2013
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed unused signal
parent
feb346f6
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
146 additions
and
174 deletions
+146
-174
UBBoardView.cpp
src/board/UBBoardView.cpp
+14
-25
UBBoardView.h
src/board/UBBoardView.h
+97
-102
UBAbstractDrawRuler.h
src/tools/UBAbstractDrawRuler.h
+0
-3
UBGraphicsCompass.cpp
src/tools/UBGraphicsCompass.cpp
+1
-3
UBGraphicsCompass.h
src/tools/UBGraphicsCompass.h
+0
-4
UBGraphicsProtractor.cpp
src/tools/UBGraphicsProtractor.cpp
+0
-1
UBGraphicsRuler.cpp
src/tools/UBGraphicsRuler.cpp
+0
-1
UBGraphicsTriangle.cpp
src/tools/UBGraphicsTriangle.cpp
+34
-35
No files found.
src/board/UBBoardView.cpp
View file @
b2c05d49
...
...
@@ -176,17 +176,6 @@ UBGraphicsScene* UBBoardView::scene ()
return
qobject_cast
<
UBGraphicsScene
*>
(
QGraphicsView
::
scene
());
}
void
UBBoardView
::
hideEvent
(
QHideEvent
*
event
)
{
Q_UNUSED
(
event
);
emit
hidden
();
}
void
UBBoardView
::
showEvent
(
QShowEvent
*
event
)
{
Q_UNUSED
(
event
);
emit
shown
();
}
void
UBBoardView
::
keyPressEvent
(
QKeyEvent
*
event
)
{
...
...
src/board/UBBoardView.h
View file @
b2c05d49
...
...
@@ -36,7 +36,7 @@ class UBBoardView : public QGraphicsView
{
Q_OBJECT
public
:
public
:
UBBoardView
(
UBBoardController
*
pController
,
QWidget
*
pParent
=
0
,
bool
isControl
=
false
,
bool
isDesktop
=
false
);
UBBoardView
(
UBBoardController
*
pController
,
int
pStartLayer
,
int
pEndLayer
,
QWidget
*
pParent
=
0
,
bool
isControl
=
false
,
bool
isDesktop
=
false
);
...
...
@@ -53,19 +53,18 @@ class UBBoardView : public QGraphicsView
void
setMultiselection
(
bool
enable
);
bool
isMultipleSelectionEnabled
()
{
return
mMultipleSelectionIsEnabled
;
}
// work around for handling tablet events on MAC OS with Qt 4.8.0 and above
// work around for handling tablet events on MAC OS with Qt 4.8.0 and above
#if defined(Q_WS_MACX)
bool
directTabletEvent
(
QEvent
*
event
);
QWidget
*
widgetForTabletEvent
(
QWidget
*
w
,
const
QPoint
&
pos
);
#endif
signals
:
signals
:
void
resized
(
QResizeEvent
*
event
);
void
hidden
();
void
shown
();
void
clickOnBoard
();
protected
:
protected
:
bool
itemIsLocked
(
QGraphicsItem
*
item
);
bool
isUBItem
(
QGraphicsItem
*
item
);
// we should to determine items who is not UB and use general scene behavior for them.
...
...
@@ -98,7 +97,6 @@ class UBBoardView : public QGraphicsView
QGraphicsItem
*
items
[],
const
QStyleOptionGraphicsItem
options
[]);
// virtual void dragEnterEvent(QDragEnterEvent * event);
virtual
void
dropEvent
(
QDropEvent
*
event
);
virtual
void
dragMoveEvent
(
QDragMoveEvent
*
event
);
...
...
@@ -106,10 +104,7 @@ class UBBoardView : public QGraphicsView
virtual
void
drawBackground
(
QPainter
*
painter
,
const
QRectF
&
rect
);
virtual
void
showEvent
(
QShowEvent
*
event
);
virtual
void
hideEvent
(
QHideEvent
*
event
);
private
:
private
:
void
init
();
...
...
@@ -171,11 +166,11 @@ class UBBoardView : public QGraphicsView
static
bool
hasSelectedParents
(
QGraphicsItem
*
item
);
private
slots
:
private
slots
:
void
settingChanged
(
QVariant
newValue
);
public
slots
:
public
slots
:
void
virtualKeyboardActivated
(
bool
b
);
void
longPressEvent
();
...
...
src/tools/UBAbstractDrawRuler.h
View file @
b2c05d49
...
...
@@ -44,9 +44,6 @@ public:
virtual
void
DrawLine
(
const
QPointF
&
position
,
qreal
width
);
virtual
void
EndLine
();
signals
:
void
hidden
();
protected
:
void
paint
();
...
...
src/tools/UBGraphicsCompass.cpp
View file @
b2c05d49
...
...
@@ -299,8 +299,6 @@ void UBGraphicsCompass::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
else
if
(
closeButtonRect
().
contains
(
event
->
pos
()))
{
hide
();
emit
hidden
();
event
->
accept
();
}
else
...
...
src/tools/UBGraphicsCompass.h
View file @
b2c05d49
...
...
@@ -51,10 +51,6 @@ class UBGraphicsCompass: public QObject, public QGraphicsRectItem, public UBItem
virtual
void
copyItemParameters
(
UBItem
*
copy
)
const
;
signals
:
void
hidden
();
protected
:
virtual
void
paint
(
QPainter
*
painter
,
const
QStyleOptionGraphicsItem
*
styleOption
,
QWidget
*
widget
);
virtual
QVariant
itemChange
(
GraphicsItemChange
change
,
const
QVariant
&
value
);
...
...
src/tools/UBGraphicsProtractor.cpp
View file @
b2c05d49
...
...
@@ -240,7 +240,6 @@ void UBGraphicsProtractor::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
case
Close
:
hide
();
emit
hidden
();
break
;
case
MoveMarker
:
...
...
src/tools/UBGraphicsRuler.cpp
View file @
b2c05d49
...
...
@@ -371,7 +371,6 @@ void UBGraphicsRuler::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
else
if
(
closeButtonRect
().
contains
(
event
->
pos
()))
{
hide
();
emit
hidden
();
event
->
accept
();
}
else
...
...
src/tools/UBGraphicsTriangle.cpp
View file @
b2c05d49
...
...
@@ -716,7 +716,6 @@ void UBGraphicsTriangle::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
else
if
(
closeButtonRect
().
contains
(
event
->
pos
()))
{
hide
();
emit
hidden
();
event
->
accept
();
}
else
if
(
hFlipRect
().
contains
(
event
->
pos
()))
...
...
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