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
PIM
KNotes
Commits
95cb4964
Commit
95cb4964
authored
Nov 15, 2016
by
Laurent Montel
Browse files
Fix some clazy error
parent
4a20345f
Changes
6
Hide whitespace changes
Inline
Side-by-side
noteshared/src/network/notesnetworkreceiver.cpp
View file @
95cb4964
...
...
@@ -88,8 +88,7 @@ NotesNetworkReceiver::NotesNetworkReceiver(QTcpSocket *s)
// Add the remote IP or hostname and the date to the title, to help the
// user guess who wrote it.
d
->
m_titleAddon
=
QStringLiteral
(
" [%1, %2]"
)
.
arg
(
d
->
m_sock
->
peerAddress
().
toString
())
.
arg
(
date
);
.
arg
(
d
->
m_sock
->
peerAddress
().
toString
(),
date
);
// Setup the communications
connect
(
d
->
m_sock
,
&
QTcpSocket
::
readyRead
,
this
,
&
NotesNetworkReceiver
::
slotDataAvailable
);
...
...
noteshared/src/noteutils.cpp
View file @
95cb4964
...
...
@@ -124,7 +124,7 @@ QString NoteUtils::createToolTip(const Akonadi::Item &item)
"</div>"
\
"</td>"
\
"</tr>"
).
arg
(
bckColorName
).
arg
(
txtColorName
).
arg
(
realName
.
toHtmlEscaped
()
).
arg
(
textDirection
);
).
arg
(
bckColorName
,
txtColorName
,
realName
.
toHtmlEscaped
()
,
textDirection
);
const
QString
htmlCodeForStandardRow
=
QStringLiteral
(
"<tr>"
\
"<td bgcolor=
\"
%1
\"
align=
\"
left
\"
valign=
\"
top
\"
>"
\
...
...
@@ -136,7 +136,7 @@ QString NoteUtils::createToolTip(const Akonadi::Item &item)
QString
content
=
description
;
if
(
!
content
.
trimmed
().
isEmpty
())
{
tip
+=
htmlCodeForStandardRow
.
arg
(
bckColorName
).
arg
(
txtColorName
).
arg
(
isRichText
?
content
:
content
.
replace
(
QLatin1Char
(
'\n'
),
QStringLiteral
(
"<br>"
)));
tip
+=
htmlCodeForStandardRow
.
arg
(
bckColorName
,
txtColorName
,
isRichText
?
content
:
content
.
replace
(
QLatin1Char
(
'\n'
),
QStringLiteral
(
"<br>"
)));
}
tip
+=
QLatin1String
(
"</table"
\
...
...
noteshared/src/widget/notelistwidget.h
View file @
95cb4964
...
...
@@ -28,6 +28,7 @@ namespace NoteShared
class
NoteListWidgetPrivate
;
class
NOTESHARED_EXPORT
NoteListWidget
:
public
QListWidget
{
Q_OBJECT
public:
explicit
NoteListWidget
(
QWidget
*
parent
=
Q_NULLPTR
);
~
NoteListWidget
();
...
...
src/configdialog/knotecollectionconfigwidget.h
View file @
95cb4964
...
...
@@ -37,6 +37,7 @@ class QPushButton;
class
KNoteCollectionDisplayProxyModel
:
public
QIdentityProxyModel
{
Q_OBJECT
public:
explicit
KNoteCollectionDisplayProxyModel
(
QObject
*
parent
=
Q_NULLPTR
);
...
...
src/kontactplugin/knotes_plugin.h
View file @
95cb4964
...
...
@@ -29,6 +29,7 @@
class
KNotesUniqueAppHandler
:
public
KontactInterface
::
UniqueAppHandler
{
Q_OBJECT
public:
explicit
KNotesUniqueAppHandler
(
KontactInterface
::
Plugin
*
plugin
)
:
KontactInterface
::
UniqueAppHandler
(
plugin
)
{}
...
...
src/kontactplugin/knoteslistwidgetsearchline.h
View file @
95cb4964
...
...
@@ -23,6 +23,7 @@
class
KNotesListWidgetSearchLine
:
public
KListWidgetSearchLine
{
Q_OBJECT
public:
explicit
KNotesListWidgetSearchLine
(
QWidget
*
parent
=
Q_NULLPTR
);
~
KNotesListWidgetSearchLine
();
...
...
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