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
73ff6ac3
Commit
73ff6ac3
authored
May 20, 2014
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: use a processor helper for Qt5
parent
ba02909b
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
11 deletions
+12
-11
modules/gui/qt4/components/info_panels.cpp
modules/gui/qt4/components/info_panels.cpp
+1
-1
modules/gui/qt4/components/playlist/views.cpp
modules/gui/qt4/components/playlist/views.cpp
+1
-1
modules/gui/qt4/dialogs/plugins.cpp
modules/gui/qt4/dialogs/plugins.cpp
+1
-1
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+2
-2
modules/gui/qt4/main_interface_win32.cpp
modules/gui/qt4/main_interface_win32.cpp
+5
-5
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.cpp
+1
-1
modules/gui/qt4/qt4.hpp
modules/gui/qt4/qt4.hpp
+1
-0
No files found.
modules/gui/qt4/components/info_panels.cpp
View file @
73ff6ac3
...
...
@@ -469,7 +469,7 @@ InfoPanel::InfoPanel( QWidget *parent ) : QWidget( parent )
InfoTree
=
new
QTreeWidget
(
this
);
InfoTree
->
setColumnCount
(
1
);
InfoTree
->
header
()
->
hide
();
#if
QT_VERSION >= 0x050000
#if
HAS_QT5
InfoTree
->
header
()
->
setSectionResizeMode
(
QHeaderView
::
ResizeToContents
);
#else
InfoTree
->
header
()
->
setResizeMode
(
QHeaderView
::
ResizeToContents
);
...
...
modules/gui/qt4/components/playlist/views.cpp
View file @
73ff6ac3
...
...
@@ -433,7 +433,7 @@ PlTreeView::PlTreeView( QAbstractItemModel *, QWidget *parent ) : QTreeView( par
viewport
()
->
setAttribute
(
Qt
::
WA_Hover
);
header
()
->
setSortIndicator
(
-
1
,
Qt
::
AscendingOrder
);
header
()
->
setSortIndicatorShown
(
true
);
#if
QT_VERSION >= 0x050000
#if
HAS_QT5
header
()
->
setSectionsClickable
(
true
);
#else
header
()
->
setClickable
(
true
);
...
...
modules/gui/qt4/dialogs/plugins.cpp
View file @
73ff6ac3
...
...
@@ -109,7 +109,7 @@ PluginTab::PluginTab( intf_thread_t *p_intf_ )
layout
->
addWidget
(
treePlugins
,
0
,
0
,
1
,
-
1
);
/* Users cannot move the columns around but we need to sort */
#if
QT_VERSION >= 0x050000
#if
HAS_QT5
treePlugins
->
header
()
->
setSectionsMovable
(
false
);
#else
treePlugins
->
header
()
->
setMovable
(
false
);
...
...
modules/gui/qt4/main_interface.cpp
View file @
73ff6ac3
...
...
@@ -64,7 +64,7 @@
#include <vlc_vout_display.h>
/* vout_thread_t and VOUT_ events */
#if defined(_WIN32) &&
QT_VERSION >= 0x050000
#if defined(_WIN32) &&
HAS_QT5
#include <QWindow>
#include <qpa/qplatformnativeinterface.h>
#endif
...
...
@@ -1111,7 +1111,7 @@ void MainInterface::toggleUpdateSystrayMenu()
* but ignore the ones always on top
* and the ones which can't be activated */
HWND
winId
;
#if
QT_VERSION >= 0x050000
#if
HAS_QT5
QWindow
*
window
=
windowHandle
();
winId
=
static_cast
<
HWND
>
(
QGuiApplication
::
platformNativeInterface
()
->
nativeResourceForWindow
(
"handle"
,
window
));
#else
...
...
modules/gui/qt4/main_interface_win32.cpp
View file @
73ff6ac3
...
...
@@ -31,9 +31,9 @@
#include <QBitmap>
#include <vlc_windows_interfaces.h>
#if defined(_WIN32) &&
QT_VERSION >= 0x050000
#include <QWindow>
#include <qpa/qplatformnativeinterface.h>
#if defined(_WIN32) &&
HAS_QT5
#
include <QWindow>
#
include <qpa/qplatformnativeinterface.h>
#endif
...
...
@@ -80,7 +80,7 @@
HWND
MainInterface
::
WinId
()
{
#if
QT_VERSION >= 0x050000
#if
HAS_QT5
QWindow
*
window
=
windowHandle
();
HWND
id
=
static_cast
<
HWND
>
(
QGuiApplication
::
platformNativeInterface
()
->
nativeResourceForWindow
(
"handle"
,
window
));
...
...
@@ -90,7 +90,7 @@ HWND MainInterface::WinId()
#endif
}
#if defined(_WIN32) &&
QT_VERSION < 0x050000
#if defined(_WIN32) &&
!HAS_QT5
static
const
int
PremultipliedAlpha
=
QPixmap
::
PremultipliedAlpha
;
static
HBITMAP
qt_pixmapToWinHBITMAP
(
const
QPixmap
&
p
,
int
hbitmapFormat
=
0
)
{
...
...
modules/gui/qt4/qt4.cpp
View file @
73ff6ac3
...
...
@@ -51,7 +51,7 @@
#ifdef _WIN32
/* For static builds */
#include <QtPlugin>
#if
QT_VERSION >= 0x050000
#if
HAS_QT5
Q_IMPORT_PLUGIN
(
QWindowsIntegrationPlugin
)
Q_IMPORT_PLUGIN
(
AccessibleFactory
)
#else
...
...
modules/gui/qt4/qt4.hpp
View file @
73ff6ac3
...
...
@@ -41,6 +41,7 @@
#endif
#define HAS_QT47 ( QT_VERSION >= 0x040700 )
#define HAS_QT5 ( QT_VERSION >= 0x050000 )
enum
{
DialogEventTypeOffset
=
0
,
...
...
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