Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
00eaa270
Commit
00eaa270
authored
Aug 19, 2007
by
Jean-Baptiste Kempf
Browse files
Qt4 - Right-Click menus for the main interface. Not implemented yet.
parent
2067ae4c
Changes
2
Show whitespace changes
Inline
Side-by-side
modules/gui/qt4/main_interface.cpp
View file @
00eaa270
...
...
@@ -146,7 +146,12 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
statusBar
()
->
addWidget
(
nameLabel
,
8
);
statusBar
()
->
addPermanentWidget
(
speedLabel
,
0
);
statusBar
()
->
addPermanentWidget
(
timeLabel
,
2
);
speedLabel
->
setContextMenuPolicy
(
Qt
::
CustomContextMenu
);
timeLabel
->
setContextMenuPolicy
(
Qt
::
CustomContextMenu
);
CONNECT
(
speedLabel
,
customContextMenuRequested
(
QPoint
),
this
,
showSpeedMenu
(
QPoint
)
);
CONNECT
(
timeLabel
,
customContextMenuRequested
(
QPoint
),
this
,
showTimeMenu
(
QPoint
)
);
/* Systray */
sysTray
=
NULL
;
if
(
config_GetInt
(
p_intf
,
"qt-start-minimized"
)
)
...
...
@@ -420,6 +425,22 @@ void MainInterface::resizeEvent( QResizeEvent *e )
playlistWidget
->
updateGeometry
();
}
}
/****************************************************************************
* Small right-click menus
****************************************************************************/
void
MainInterface
::
showSpeedMenu
(
QPoint
pos
)
{
QMenu
menu
(
this
);
menu
.
addAction
(
"Not Implemented Yet"
);
menu
.
exec
(
QCursor
::
pos
()
);
}
void
MainInterface
::
showTimeMenu
(
QPoint
pos
)
{
QMenu
menu
(
this
);
menu
.
addAction
(
"Not Implemented Yet"
);
menu
.
exec
(
QCursor
::
pos
()
);
}
/*****************************************************************************
* Systray Icon and Systray Menu
...
...
modules/gui/qt4/main_interface.hpp
View file @
00eaa270
...
...
@@ -139,6 +139,8 @@ private slots:
void
updateSystrayMenu
(
int
);
void
updateSystrayTooltipName
(
QString
);
void
updateSystrayTooltipStatus
(
int
);
void
showSpeedMenu
(
QPoint
);
void
showTimeMenu
(
QPoint
);
};
...
...
Write
Preview
Supports
Markdown
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