Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit ce953202 authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent caf4ed24
......@@ -54,7 +54,7 @@ public:
explicit FilterLogDialog(QWidget *parent);
~FilterLogDialog();
private Q_SLOTS:
private:
void slotTextChanged();
void slotLogEntryAdded(const QString &logEntry);
void slotLogShrinked();
......@@ -65,10 +65,10 @@ private Q_SLOTS:
void slotUser1();
void slotUser2();
private:
void readConfig();
void writeConfig();
private:
KPIMTextEdit::PlainTextEditorWidget *mTextEdit = nullptr;
QCheckBox *mLogActiveBox = nullptr;
QGroupBox *mLogDetailsBox = nullptr;
......
......@@ -90,8 +90,8 @@ MailFilterAgent::MailFilterAgent(const QString &id)
collectionMonitor->setMimeTypeMonitored(KMime::Message::mimeType());
connect(collectionMonitor, &Akonadi::Monitor::collectionAdded, this, &MailFilterAgent::mailCollectionAdded);
connect(collectionMonitor, SIGNAL(collectionChanged(Akonadi::Collection)),
this, SLOT(mailCollectionChanged(Akonadi::Collection)));
connect(collectionMonitor, QOverload<const Akonadi::Collection &>::of(&Akonadi::Monitor::collectionChanged),
this, &MailFilterAgent::mailCollectionChanged);
connect(collectionMonitor, &Akonadi::Monitor::collectionRemoved, this, &MailFilterAgent::mailCollectionRemoved);
connect(Akonadi::AgentManager::self(), &Akonadi::AgentManager::instanceRemoved, this, &MailFilterAgent::slotInstanceRemoved);
......
......@@ -48,13 +48,11 @@ public:
static void formatPropertySet(KTNEFPropertySet *, QTreeWidget *);
static bool saveProperty(QTreeWidget *, KTNEFPropertySet *, QWidget *);
private Q_SLOTS:
void slotSave();
protected:
Ui::AttachPropertyWidgetBase mUI;
private:
void slotSave();
void readConfig();
void writeConfig();
KTNEFAttach *mAttach = nullptr;
......
......@@ -42,10 +42,8 @@ protected:
void resizeEvent(QResizeEvent *e) override;
void startDrag(Qt::DropActions dropAction) override;
private Q_SLOTS:
void adjustColumnWidth();
private:
void adjustColumnWidth();
QList<KTNEFAttach *> mAttachments;
};
......
......@@ -39,7 +39,7 @@ MessagePropertyDialog::MessagePropertyDialog(QWidget *parent, KTNEFMessage *msg)
setWindowTitle(i18n("Message Properties"));
mListView = new QTreeWidget(this);
mainLayout->addWidget(mListView);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
okButton->setDefault(true);
okButton->setShortcut(Qt::CTRL | Qt::Key_Return);
......
......@@ -32,10 +32,9 @@ class MessagePropertyDialog : public QDialog
public:
explicit MessagePropertyDialog(QWidget *parent, KTNEFMessage *msg);
~MessagePropertyDialog();
private Q_SLOTS:
void slotSaveProperty();
private:
void slotSaveProperty();
void readConfig();
void writeConfig();
KTNEFMessage *mMessage = nullptr;
......
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