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