Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLMC
Commits
cdc8b292
Commit
cdc8b292
authored
Jan 08, 2010
by
Ludovic Fauvet
Browse files
Documentation update: GraphicsMovieItem
parent
08385e99
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Gui/timeline/GraphicsMovieItem.h
View file @
cdc8b292
...
...
@@ -36,6 +36,9 @@ class GraphicsMovieItem : public AbstractGraphicsMediaItem
{
Q_OBJECT
public:
/**
* \brief See http://doc.trolltech.com/4.5/qgraphicsitem.html#type
*/
enum
{
Type
=
UserType
+
1
};
GraphicsMovieItem
(
Clip
*
clip
);
virtual
~
GraphicsMovieItem
();
...
...
@@ -50,7 +53,17 @@ public:
virtual
Clip
*
clip
()
const
;
protected:
/**
* \brief Paint the item's rectangle.
* \param painter Pointer to a QPainter.
* \param option Painting options.
*/
void
paintRect
(
QPainter
*
painter
,
const
QStyleOptionGraphicsItem
*
option
);
/**
* \brief Paint the item's title.
* \param painter Pointer to a QPainter.
* \param option Painting options.
*/
void
paintTitle
(
QPainter
*
painter
,
const
QStyleOptionGraphicsItem
*
option
);
virtual
void
hoverEnterEvent
(
QGraphicsSceneHoverEvent
*
event
);
virtual
void
hoverLeaveEvent
(
QGraphicsSceneHoverEvent
*
event
);
...
...
@@ -59,10 +72,19 @@ protected:
virtual
void
mouseReleaseEvent
(
QGraphicsSceneMouseEvent
*
event
);
private:
/**
* \brief Check if the position given as parameter could be taken as a resize request.
* \return Returns True if the point is in a resize zone.
*/
bool
resizeZone
(
const
QPointF
&
position
);
Clip
*
m_clip
;
signals:
/**
* \brief Emitted when the item detect a cut request.
* \param self A pointer to the sender.
* \param frame Frame's number where the cut takes place.
*/
void
split
(
GraphicsMovieItem
*
self
,
qint64
frame
);
};
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment