Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
1c5601f3
Commit
1c5601f3
authored
Aug 08, 2012
by
Yimgo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forgot modifications in
786ae035
.
parent
786ae035
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
UBGraphicsWidgetItem.cpp
src/domain/UBGraphicsWidgetItem.cpp
+7
-2
UBGraphicsWidgetItem.h
src/domain/UBGraphicsWidgetItem.h
+1
-0
No files found.
src/domain/UBGraphicsWidgetItem.cpp
View file @
1c5601f3
...
...
@@ -120,6 +120,7 @@ QUrl UBGraphicsWidgetItem::mainHtml()
void
UBGraphicsWidgetItem
::
loadMainHtml
()
{
mInitialLoadDone
=
false
;
load
(
mMainHtmlUrl
);
}
...
...
@@ -1074,8 +1075,7 @@ QString UBGraphicsW3CWidgetItem::freezedWidgetPage()
static
QString
defaultcontent
;
if
(
defaultcontent
.
isNull
())
{
QString
etcPath
=
UBPlatformUtils
::
applicationResourcesDirectory
()
+
"/etc/"
;
QString
freezedWidgetDefaultContentFilePath
=
etcPath
+
"freezedWidgetWrapper.html"
;
QString
freezedWidgetDefaultContentFilePath
=
freezedWidgetFilePath
();
QFile
wrapperFile
(
freezedWidgetDefaultContentFilePath
);
if
(
!
wrapperFile
.
open
(
QIODevice
::
ReadOnly
|
QIODevice
::
Text
))
{
qDebug
()
<<
"can't open wrapper file "
+
freezedWidgetDefaultContentFilePath
;
...
...
@@ -1095,6 +1095,11 @@ QString UBGraphicsW3CWidgetItem::freezedWidgetPage()
return
defaultcontent
;
}
QString
UBGraphicsW3CWidgetItem
::
freezedWidgetFilePath
()
{
return
UBPlatformUtils
::
applicationResourcesDirectory
()
+
"/etc/"
+
"freezedWidgetWrapper.html"
;
}
bool
UBGraphicsW3CWidgetItem
::
hasNPAPIWrapper
(
const
QString
&
pMimeType
)
{
loadNPAPIWrappersTemplates
();
...
...
src/domain/UBGraphicsWidgetItem.h
View file @
1c5601f3
...
...
@@ -239,6 +239,7 @@ class UBGraphicsW3CWidgetItem : public UBGraphicsWidgetItem
QMap
<
QString
,
PreferenceValue
>
preferences
();
Metadata
metadatas
()
const
;
static
QString
freezedWidgetFilePath
();
static
QString
createNPAPIWrapper
(
const
QString
&
url
,
const
QString
&
pMimeType
=
QString
(),
const
QSize
&
sizeHint
=
QSize
(
300
,
150
),
const
QString
&
pName
=
QString
());
static
QString
createNPAPIWrapperInDir
(
const
QString
&
url
,
const
QDir
&
pDir
,
const
QString
&
pMimeType
=
QString
(),
const
QSize
&
sizeHint
=
QSize
(
300
,
150
),
const
QString
&
pName
=
QString
());
static
QString
createHtmlWrapperInDir
(
const
QString
&
html
,
const
QDir
&
pDir
,
const
QSize
&
sizeHint
,
const
QString
&
pName
);
...
...
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