Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
skylivex
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
astronomy
skylivex
Commits
17e1d439
Commit
17e1d439
authored
Feb 28, 2013
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Other changes to make osx work
parent
c054c55a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
7 deletions
+19
-7
mainwin.cpp
src/mainwin.cpp
+0
-7
mainwin.h
src/mainwin.h
+19
-0
No files found.
src/mainwin.cpp
View file @
17e1d439
...
@@ -55,13 +55,6 @@
...
@@ -55,13 +55,6 @@
* on OSX doesn't support HTML5 videos,
* on OSX doesn't support HTML5 videos,
* so, we change it faking the Linux one
* so, we change it faking the Linux one
*/
*/
class
QWebPageForMac
:
public
QWebPage
{
Q_OBJECT
public
:
QWebPageForMac
(
WebWin
*
&
win
);
QString
userAgentForUrl
(
const
QUrl
&
url
)
const
;
};
QWebPageForMac
::
QWebPageForMac
(
WebWin
*
&
win
)
:
QWebPage
(
win
)
QWebPageForMac
::
QWebPageForMac
(
WebWin
*
&
win
)
:
QWebPage
(
win
)
{
{
...
...
src/mainwin.h
View file @
17e1d439
...
@@ -44,6 +44,25 @@
...
@@ -44,6 +44,25 @@
#include "webwin.h"
#include "webwin.h"
#include "jsbridge.h"
#include "jsbridge.h"
#if defined(Q_OS_MAC)
#include <QWebPage>
/*
* For some reason youtube think that the default user agent
* on OSX doesn't support HTML5 videos,
* so, we change it faking the Linux one
*/
class
QWebPageForMac
:
public
QWebPage
{
Q_OBJECT
public
:
QWebPageForMac
(
WebWin
*
&
win
);
QString
userAgentForUrl
(
const
QUrl
&
url
)
const
;
};
#endif
/*
/*
* class MainWin
* class MainWin
* This is just a little webkit transparent window
* This is just a little webkit transparent window
...
...
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