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
6cfabf4a
Commit
6cfabf4a
authored
Apr 30, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Main Windows: Rename the interface to $MEDIANAME - VLC media player.
parent
58049342
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+14
-1
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/main_interface.hpp
+1
-0
No files found.
modules/gui/qt4/main_interface.cpp
View file @
6cfabf4a
...
@@ -105,7 +105,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
...
@@ -105,7 +105,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
visualSelectorEnabled
=
settings
->
value
(
"visual-selector"
,
false
).
toBool
();
visualSelectorEnabled
=
settings
->
value
(
"visual-selector"
,
false
).
toBool
();
/* UI */
/* UI */
set
WindowTitle
(
qtr
(
"VLC media player"
)
);
set
VLCWindowsTitle
(
);
handleMainUi
(
settings
);
handleMainUi
(
settings
);
QVLCMenu
::
createMenuBar
(
this
,
p_intf
,
playlistEmbeddedFlag
,
QVLCMenu
::
createMenuBar
(
this
,
p_intf
,
playlistEmbeddedFlag
,
advControlsEnabled
,
visualSelectorEnabled
);
advControlsEnabled
,
visualSelectorEnabled
);
...
@@ -181,6 +181,18 @@ MainInterface::~MainInterface()
...
@@ -181,6 +181,18 @@ MainInterface::~MainInterface()
p_intf
->
pf_control_window
=
NULL
;
p_intf
->
pf_control_window
=
NULL
;
}
}
void
MainInterface
::
setVLCWindowsTitle
(
QString
aTitle
)
{
if
(
aTitle
.
isEmpty
()
)
{
this
->
setWindowTitle
(
qtr
(
"VLC media player"
)
);
}
else
{
this
->
setWindowTitle
(
aTitle
+
" - "
+
qtr
(
"VLC media player"
)
);
}
}
void
MainInterface
::
handleMainUi
(
QSettings
*
settings
)
void
MainInterface
::
handleMainUi
(
QSettings
*
settings
)
{
{
QWidget
*
main
=
new
QWidget
(
this
);
QWidget
*
main
=
new
QWidget
(
this
);
...
@@ -658,6 +670,7 @@ void MainInterface::setDisplay( float pos, int time, int length )
...
@@ -658,6 +670,7 @@ void MainInterface::setDisplay( float pos, int time, int length )
void
MainInterface
::
setName
(
QString
name
)
void
MainInterface
::
setName
(
QString
name
)
{
{
nameLabel
->
setText
(
" "
+
name
+
" "
);
nameLabel
->
setText
(
" "
+
name
+
" "
);
setVLCWindowsTitle
(
name
);
}
}
void
MainInterface
::
setStatus
(
int
status
)
void
MainInterface
::
setStatus
(
int
status
)
...
...
modules/gui/qt4/main_interface.hpp
View file @
6cfabf4a
...
@@ -56,6 +56,7 @@ public:
...
@@ -56,6 +56,7 @@ public:
unsigned
int
*
pi_height
);
unsigned
int
*
pi_height
);
void
releaseVideo
(
void
*
);
void
releaseVideo
(
void
*
);
int
controlVideo
(
void
*
p_window
,
int
i_query
,
va_list
args
);
int
controlVideo
(
void
*
p_window
,
int
i_query
,
va_list
args
);
void
setVLCWindowsTitle
(
QString
title
=
""
);
protected:
protected:
void
resizeEvent
(
QResizeEvent
*
);
void
resizeEvent
(
QResizeEvent
*
);
void
dropEvent
(
QDropEvent
*
);
void
dropEvent
(
QDropEvent
*
);
...
...
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