Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
f410c43b
Commit
f410c43b
authored
Jan 21, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: detect the screen size at startup since some screens are too small for some windows.
parent
148673ed
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.cpp
+4
-0
modules/gui/qt4/qt4.hpp
modules/gui/qt4/qt4.hpp
+2
-0
No files found.
modules/gui/qt4/qt4.cpp
View file @
f410c43b
...
@@ -355,6 +355,10 @@ static void *Thread( void *obj )
...
@@ -355,6 +355,10 @@ static void *Thread( void *obj )
/* Initialize timers and the Dialog Provider */
/* Initialize timers and the Dialog Provider */
DialogsProvider
::
getInstance
(
p_intf
);
DialogsProvider
::
getInstance
(
p_intf
);
/* Detect screensize for small screens like TV or EEEpc*/
p_intf
->
p_sys
->
i_screenHeight
=
app
->
QApplication
::
desktop
()
->
availableGeometry
().
height
();
#ifdef UPDATE_CHECK
#ifdef UPDATE_CHECK
/* Checking for VLC updates */
/* Checking for VLC updates */
if
(
config_GetInt
(
p_intf
,
"qt-updates-notif"
)
&&
if
(
config_GetInt
(
p_intf
,
"qt-updates-notif"
)
&&
...
...
modules/gui/qt4/qt4.hpp
View file @
f410c43b
...
@@ -68,6 +68,8 @@ struct intf_sys_t
...
@@ -68,6 +68,8 @@ struct intf_sys_t
bool
b_isDialogProvider
;
/* Qt mode or Skins mode */
bool
b_isDialogProvider
;
/* Qt mode or Skins mode */
int
i_screenHeight
;
/* Detection of Small screens */
playlist_t
*
p_playlist
;
/* Core Playlist discussion */
playlist_t
*
p_playlist
;
/* Core Playlist discussion */
const
char
*
psz_filepath
;
/* Last path used in dialogs */
const
char
*
psz_filepath
;
/* Last path used in dialogs */
...
...
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