Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Cervisia
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
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
SDK
Cervisia
Commits
ec1a8982
Commit
ec1a8982
authored
Jul 08, 2005
by
André Wöbbeking
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Q3StyleSheet::escape() -> Qt::escape()
svn path=/branches/work/kde4/kdesdk/cervisia/; revision=432803
parent
43badc3f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
14 deletions
+15
-14
loginfo.cpp
loginfo.cpp
+6
-6
logplainview.cpp
logplainview.cpp
+7
-7
protocolview.cpp
protocolview.cpp
+2
-1
No files found.
loginfo.cpp
View file @
ec1a8982
...
...
@@ -19,7 +19,7 @@
#include "loginfo.h"
#include <q
3styleshee
t.h>
#include <q
textdocumen
t.h>
#include <kglobal.h>
#include <klocale.h>
...
...
@@ -72,17 +72,17 @@ QString TagInfo::typeToString() const
QString
LogInfo
::
createToolTipText
(
bool
showTime
)
const
{
QString
text
(
QString
::
fromLatin1
(
"<nobr><b>"
));
text
+=
Q
3StyleShee
t
::
escape
(
m_revision
);
text
+=
Qt
::
escape
(
m_revision
);
text
+=
QString
::
fromLatin1
(
"</b> "
);
text
+=
Q
3StyleShee
t
::
escape
(
m_author
);
text
+=
Qt
::
escape
(
m_author
);
text
+=
QString
::
fromLatin1
(
" <b>"
);
text
+=
Q
3StyleShee
t
::
escape
(
dateTimeToString
(
showTime
));
text
+=
Qt
::
escape
(
dateTimeToString
(
showTime
));
text
+=
QString
::
fromLatin1
(
"</b></nobr>"
);
if
(
!
m_comment
.
isEmpty
())
{
text
+=
QString
::
fromLatin1
(
"<pre>"
);
text
+=
Q
3StyleShee
t
::
escape
(
m_comment
);
text
+=
Qt
::
escape
(
m_comment
);
text
+=
QString
::
fromLatin1
(
"</pre>"
);
}
...
...
@@ -94,7 +94,7 @@ QString LogInfo::createToolTipText(bool showTime) const
{
if
(
it
!=
m_tags
.
begin
()
||
m_comment
.
isEmpty
())
text
+=
QString
::
fromLatin1
(
"<br>"
);
text
+=
Q
3StyleShee
t
::
escape
((
*
it
).
toString
());
text
+=
Qt
::
escape
((
*
it
).
toString
());
}
text
+=
QString
::
fromLatin1
(
"</i>"
);
}
...
...
logplainview.cpp
View file @
ec1a8982
...
...
@@ -21,7 +21,7 @@
#include <qregexp.h>
#include <qstringlist.h>
#include <q
3styleshee
t.h>
#include <q
textdocumen
t.h>
#include <kfind.h>
#include <kfinddialog.h>
#include <klocale.h>
...
...
@@ -53,17 +53,17 @@ void LogPlainView::addRevision(const LogInfo& logInfo)
// assemble revision information lines
QString
logEntry
;
logEntry
+=
"<b>"
+
i18n
(
"revision %1"
).
arg
(
Q
3StyleShee
t
::
escape
(
logInfo
.
m_revision
))
+
logEntry
+=
"<b>"
+
i18n
(
"revision %1"
).
arg
(
Qt
::
escape
(
logInfo
.
m_revision
))
+
"</b>"
;
logEntry
+=
" [<a href=
\"
revA#"
+
Q
3StyleShee
t
::
escape
(
logInfo
.
m_revision
)
+
"
\"
>"
+
logEntry
+=
" [<a href=
\"
revA#"
+
Qt
::
escape
(
logInfo
.
m_revision
)
+
"
\"
>"
+
i18n
(
"Select for revision A"
)
+
"</a>]"
;
logEntry
+=
" [<a href=
\"
revB#"
+
Q
3StyleShee
t
::
escape
(
logInfo
.
m_revision
)
+
"
\"
>"
+
logEntry
+=
" [<a href=
\"
revB#"
+
Qt
::
escape
(
logInfo
.
m_revision
)
+
"
\"
>"
+
i18n
(
"Select for revision B"
)
+
"</a>]<br>"
;
logEntry
+=
"<i>"
+
i18n
(
"date: %1; author: %2"
).
arg
(
Q
3StyleShee
t
::
escape
(
logInfo
.
dateTimeToString
()))
.
arg
(
Q
3StyleShee
t
::
escape
(
logInfo
.
m_author
))
+
i18n
(
"date: %1; author: %2"
).
arg
(
Qt
::
escape
(
logInfo
.
dateTimeToString
()))
.
arg
(
Qt
::
escape
(
logInfo
.
m_author
))
+
"</i>"
;
append
(
logEntry
);
...
...
@@ -89,7 +89,7 @@ void LogPlainView::addRevision(const LogInfo& logInfo)
for
(
LogInfo
::
TTagInfoSeq
::
const_iterator
it
=
logInfo
.
m_tags
.
begin
();
it
!=
logInfo
.
m_tags
.
end
();
++
it
)
{
append
(
"<i>"
+
Q
3StyleShee
t
::
escape
((
*
it
).
toString
())
+
"</i>"
);
append
(
"<i>"
+
Qt
::
escape
((
*
it
).
toString
())
+
"</i>"
);
}
// add an empty line when we had tags or branches
...
...
protocolview.cpp
View file @
ec1a8982
...
...
@@ -23,6 +23,7 @@
#include <qdir.h>
#include <q3popupmenu.h>
#include <qtextdocument.h>
#include <dcopref.h>
#include <kconfig.h>
#include <klocale.h>
...
...
@@ -159,7 +160,7 @@ void ProtocolView::appendLine(const QString &line)
{
// Escape output line, so that html tags in commit
// messages aren't interpreted
const
QString
escapedLine
=
Q
3StyleShee
t
::
escape
(
line
);
const
QString
escapedLine
=
Qt
::
escape
(
line
);
// When we don't get the output from an update job then
// just add it to the text edit.
...
...
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