Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
fae2cb49
Commit
fae2cb49
authored
Mar 18, 2009
by
Friedemann Kleint
Committed by
unknown
Mar 18, 2009
Browse files
Fixed: Compile without WebKit
RevBy: con
parent
42c4b9dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/help/helpfindsupport.cpp
View file @
fae2cb49
...
...
@@ -87,7 +87,11 @@ HelpViewerFindSupport::HelpViewerFindSupport(HelpViewer *viewer)
QString
HelpViewerFindSupport
::
currentFindString
()
const
{
QTC_ASSERT
(
m_viewer
,
return
QString
());
#if !defined(QT_NO_WEBKIT)
return
m_viewer
->
selectedText
();
#else
return
QString
();
#endif
}
bool
HelpViewerFindSupport
::
findIncremental
(
const
QString
&
txt
,
QTextDocument
::
FindFlags
findFlags
)
...
...
@@ -116,9 +120,9 @@ bool HelpViewerFindSupport::find(const QString &txt, QTextDocument::FindFlags fi
return
m_viewer
->
findText
(
txt
,
options
);
#else
QTextCursor
cursor
=
viewer
->
textCursor
();
QTextDocument
*
doc
=
viewer
->
document
();
QTextBrowser
*
browser
=
qobject_cast
<
QTextBrowser
*>
(
viewer
);
QTextCursor
cursor
=
m_
viewer
->
textCursor
();
QTextDocument
*
doc
=
m_
viewer
->
document
();
QTextBrowser
*
browser
=
qobject_cast
<
QTextBrowser
*>
(
m_
viewer
);
if
(
!
browser
||
!
doc
||
cursor
.
isNull
())
return
false
;
...
...
@@ -137,7 +141,7 @@ bool HelpViewerFindSupport::find(const QString &txt, QTextDocument::FindFlags fi
}
}
if
(
!
found
.
isNull
())
{
viewer
->
setTextCursor
(
found
);
m_
viewer
->
setTextCursor
(
found
);
}
return
true
;
#endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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