Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
faacf69a
Commit
faacf69a
authored
Feb 12, 2009
by
hjk
Browse files
Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline
parents
dd97e034
bf4a890e
Changes
4
Show whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/welcomemode.cpp
View file @
faacf69a
...
...
@@ -151,6 +151,8 @@ WelcomeMode::WelcomeMode() :
l
->
addWidget
(
m_d
->
m_webview
);
m_d
->
m_webview
->
setAcceptDrops
(
false
);
m_d
->
m_webview
->
settings
()
->
setAttribute
(
QWebSettings
::
PluginsEnabled
,
false
);
m_d
->
m_webview
->
settings
()
->
setAttribute
(
QWebSettings
::
JavaEnabled
,
false
);
#else
m_d
->
m_label
->
setWordWrap
(
true
);
...
...
src/plugins/help/helpplugin.cpp
View file @
faacf69a
...
...
@@ -570,8 +570,8 @@ void HelpPlugin::activateContext()
}
if
(
viewer
)
{
viewer
->
setHtml
(
tr
(
"<title>No Documentation</title><
br
><br>"
"<center><b>%1</b><br
><br
>No documentation available."
).
viewer
->
setHtml
(
tr
(
"<
html><head><
title>No Documentation</title><
/head><body
><br
/
>"
"<center><b>%1</b><br
/
>No documentation available.
</center></body></html>
"
).
arg
(
id
));
viewer
->
setSource
(
QUrl
());
//activateIndex();
...
...
@@ -589,8 +589,8 @@ void HelpPlugin::activateContext()
if
(
viewer
)
{
viewer
->
setSource
(
QUrl
());
viewer
->
setHtml
(
"<title>No Documentation</title><br><br><center>No"
" documentation available."
);
viewer
->
setHtml
(
"<
html><head><
title>No Documentation</title><
/head><body><
br
/
><br
/
><center>No"
" documentation available.
</center></body></html>
"
);
//activateIndex();
}
}
...
...
src/shared/help/helpviewer.cpp
View file @
faacf69a
...
...
@@ -216,6 +216,8 @@ bool HelpPage::acceptNavigationRequest(QWebFrame *,
HelpViewer
::
HelpViewer
(
QHelpEngine
*
engine
,
CentralWidget
*
parent
)
:
QWebView
(
parent
),
helpEngine
(
engine
),
parentWidget
(
parent
)
{
settings
()
->
setAttribute
(
QWebSettings
::
PluginsEnabled
,
false
);
settings
()
->
setAttribute
(
QWebSettings
::
JavaEnabled
,
false
);
setPage
(
new
HelpPage
(
parent
,
helpEngine
,
this
));
page
()
->
setNetworkAccessManager
(
new
HelpNetworkAccessManager
(
engine
,
this
));
...
...
tests/auto/cplusplus/semantic/tst_semantic.cpp
View file @
faacf69a
...
...
@@ -98,6 +98,7 @@ private slots:
void
typedef_1
();
void
typedef_2
();
void
typedef_3
();
void
const_1
();
};
void
tst_Semantic
::
function_declaration_1
()
...
...
@@ -319,5 +320,28 @@ void tst_Semantic::typedef_3()
_pointStruct
);
}
void
tst_Semantic
::
const_1
()
{
QSharedPointer
<
Document
>
doc
=
document
(
"
\n
"
"int foo(const void *s);
\n
"
);
QCOMPARE
(
doc
->
errorCount
,
0U
);
QCOMPARE
(
doc
->
globals
->
symbolCount
(),
1U
);
Declaration
*
decl
=
doc
->
globals
->
symbolAt
(
0
)
->
asDeclaration
();
QVERIFY
(
decl
);
QVERIFY
(
decl
->
type
()
->
isFunctionType
());
Function
*
funTy
=
decl
->
type
()
->
asFunctionType
();
QVERIFY
(
funTy
->
returnType
()
->
isIntegerType
());
QCOMPARE
(
funTy
->
argumentCount
(),
1U
);
Argument
*
arg
=
funTy
->
argumentAt
(
0
)
->
asArgument
();
QVERIFY
(
arg
);
QVERIFY
(
!
arg
->
type
().
isConst
());
QVERIFY
(
arg
->
type
()
->
isPointerType
());
QVERIFY
(
arg
->
type
()
->
asPointerType
()
->
elementType
().
isConst
());
QVERIFY
(
arg
->
type
()
->
asPointerType
()
->
elementType
()
->
isVoidType
());
}
QTEST_APPLESS_MAIN
(
tst_Semantic
)
#include "tst_semantic.moc"
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