Commit 09091827 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix warning

parent 5a092d88
......@@ -46,10 +46,8 @@ public:
void setAlarm(const QDateTime &dateTime);
QDateTime alarm() const;
private Q_SLOTS:
void slotButtonChanged(int);
private:
void slotButtonChanged(int);
NoteAlarmDialogPrivate *const d;
};
}
......
......@@ -28,7 +28,7 @@ class NOTESHARED_EXPORT NoteAlarmAttribute : public Akonadi::Attribute
{
public:
NoteAlarmAttribute();
~NoteAlarmAttribute();
~NoteAlarmAttribute() override;
QByteArray type() const override;
......
......@@ -32,7 +32,7 @@ class NOTESHARED_EXPORT NoteDisplayAttribute : public Akonadi::Attribute
{
public:
NoteDisplayAttribute();
~NoteDisplayAttribute();
~NoteDisplayAttribute() override;
QByteArray type() const override;
......
......@@ -31,7 +31,7 @@ class NOTESHARED_EXPORT NoteLockAttribute : public Akonadi::Attribute
{
public:
NoteLockAttribute();
~NoteLockAttribute();
~NoteLockAttribute() override;
QByteArray type() const override;
......
......@@ -27,7 +27,7 @@ class NOTESHARED_EXPORT ShowFolderNotesAttribute : public Akonadi::Attribute
{
public:
ShowFolderNotesAttribute();
~ShowFolderNotesAttribute();
~ShowFolderNotesAttribute() override;
ShowFolderNotesAttribute *clone() const override;
QByteArray type() const override;
......
......@@ -30,7 +30,7 @@ public:
void load() override;
void save() override;
private Q_SLOTS:
private:
void slotHelpLinkClicked(const QString &);
};
}
......
......@@ -56,12 +56,11 @@ public:
*/
quint16 port() const;
private Q_SLOTS:
private:
void slotTextChanged(const QString &);
void serviceSelected(const QModelIndex &);
void slotServiceDoubleClicked(const QModelIndex &idx);
private:
void readConfig();
KHistoryComboBox *m_hostCombo = nullptr;
QTreeView *m_servicesView = nullptr;
......
......@@ -162,5 +162,5 @@ void NotesNetworkReceiver::slotConnectionClosed()
void NotesNetworkReceiver::slotError(QAbstractSocket::SocketError error)
{
qCWarning(NOTESHARED_LOG) << "error type :" << (int)error << " error string : " << d->m_sock->errorString();
qCWarning(NOTESHARED_LOG) << "error type :" << static_cast<int>(error) << " error string : " << d->m_sock->errorString();
}
......@@ -43,9 +43,6 @@ using namespace NoteShared;
NotesNetworkSender::NotesNetworkSender(QTcpSocket *socket)
: QObject()
, m_socket(socket)
, m_note()
, m_title()
, m_sender()
{
// QObject:: prefix needed, otherwise the KStreamSocket::connect()
// method is called!!!
......
......@@ -20,7 +20,6 @@
#include <AkonadiCore/agentmanager.h>
#include <AkonadiCore/agentinstancecreatejob.h>
#pragma message("port QT5")
#include "maildirsettings.h"
......
......@@ -30,10 +30,8 @@ public:
void updateNumberOfNotes(int number);
private Q_SLOTS:
void slotGeneralPaletteChanged();
private:
void slotGeneralPaletteChanged();
QIcon mIcon;
QColor mTextColor;
};
......
......@@ -293,6 +293,7 @@ void KNotesApp::slotRowInserted(const QModelIndex &parent, int start, int end)
void KNotesApp::createNote(const Akonadi::Item &item)
{
if (item.hasPayload<KMime::Message::Ptr>()) {
qDebug() <<" void KNotesApp::createNote(const Akonadi::Item &item)"<<item.id();
KNote *note = new KNote(m_noteGUI, item, mDebugAkonadiSearch);
mNotes.insert(item.id(), note);
connect(note, &KNote::sigShowNextNote,
......
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