Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
00eaa270
Commit
00eaa270
authored
Aug 19, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Right-Click menus for the main interface. Not implemented yet.
parent
2067ae4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletion
+24
-1
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+22
-1
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/main_interface.hpp
+2
-0
No files found.
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
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