Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLMC
Commits
7445ac83
Commit
7445ac83
authored
Feb 06, 2011
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GraphicsCursorItem: Specify a specific item type for this kind of item
parent
0980eb94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/Gui/timeline/GraphicsCursorItem.h
src/Gui/timeline/GraphicsCursorItem.h
+3
-0
No files found.
src/Gui/timeline/GraphicsCursorItem.h
View file @
7445ac83
...
...
@@ -37,6 +37,8 @@ class GraphicsCursorItem : public QObject, public QGraphicsItem
{
Q_OBJECT
enum
{
Type
=
UserType
+
5
};
#if QT_VERSION >= 0x40600
Q_INTERFACES
(
QGraphicsItem
)
#endif
...
...
@@ -46,6 +48,7 @@ public:
int
cursorPos
()
const
{
return
(
int
)
pos
().
x
();
}
virtual
QRectF
boundingRect
()
const
;
void
setHeight
(
int
height
);
virtual
int
type
()
const
{
return
Type
;
}
protected:
virtual
void
paint
(
QPainter
*
painter
,
const
QStyleOptionGraphicsItem
*
option
,
QWidget
*
widget
=
0
);
...
...
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