Commit 95cb4964 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix some clazy error

parent 4a20345f
......@@ -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);
......
......@@ -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" \
......
......@@ -28,6 +28,7 @@ namespace NoteShared
class NoteListWidgetPrivate;
class NOTESHARED_EXPORT NoteListWidget : public QListWidget
{
Q_OBJECT
public:
explicit NoteListWidget(QWidget *parent = Q_NULLPTR);
~NoteListWidget();
......
......@@ -37,6 +37,7 @@ class QPushButton;
class KNoteCollectionDisplayProxyModel : public QIdentityProxyModel
{
Q_OBJECT
public:
explicit KNoteCollectionDisplayProxyModel(QObject *parent = Q_NULLPTR);
......
......@@ -29,6 +29,7 @@
class KNotesUniqueAppHandler : public KontactInterface::UniqueAppHandler
{
Q_OBJECT
public:
explicit KNotesUniqueAppHandler(KontactInterface::Plugin *plugin)
: KontactInterface::UniqueAppHandler(plugin) {}
......
......@@ -23,6 +23,7 @@
class KNotesListWidgetSearchLine : public KListWidgetSearchLine
{
Q_OBJECT
public:
explicit KNotesListWidgetSearchLine(QWidget *parent = Q_NULLPTR);
~KNotesListWidgetSearchLine();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment