Commit a3b06c1f authored by Laurent Montel's avatar Laurent Montel 😁 Committed by Pali Rohár

Use Q_SIGNALS/Q_SLOTS

parent 0f6a43df
......@@ -49,11 +49,11 @@ public:
*/
void setIdentity(Kopete::Identity *identity);
private slots:
private Q_SLOTS:
void slotProtocolListClicked();
void slotProtocolListDoubleClicked();
protected slots:
protected Q_SLOTS:
void back() Q_DECL_OVERRIDE;
void next() Q_DECL_OVERRIDE;
void accept() Q_DECL_OVERRIDE;
......
......@@ -39,7 +39,7 @@ public:
explicit ChatMembersListView(QWidget *parent = nullptr);
virtual ~ChatMembersListView();
public slots:
public Q_SLOTS:
void slotContextMenuRequested(const QPoint &pos);
private:
};
......
......@@ -79,7 +79,7 @@ public:
*/
QString formatName(const QString &sourceName, Qt::TextFormat format) const;
public slots:
public Q_SLOTS:
/**
* Initiates a copy action
* If there is text selected in the HTML view, that text is copied
......@@ -153,7 +153,7 @@ public slots:
*/
KDE_DEPRECATED void slotToggleGraphicOverride(bool enable);
signals:
Q_SIGNALS:
/**
* Emits before the context menu is about to show
*/
......@@ -164,7 +164,7 @@ signals:
*/
void tooltipEvent(const QString &textUnderMouse, QString &toolTip);
private slots:
private Q_SLOTS:
void slotOpenURLRequest(const QUrl &url, const KParts::OpenUrlArguments &, const KParts::BrowserArguments &);
void slotFileTransferIncomingDone(unsigned int id);
void slotScrollView();
......
......@@ -143,7 +143,7 @@ public:
void resetConfig(KConfigGroup &config);
void writeConfig(KConfigGroup &config);
public slots:
public Q_SLOTS:
/**
* Go up an entry in the message history.
*/
......@@ -166,7 +166,7 @@ public slots:
void checkToolbarEnabled();
signals:
Q_SIGNALS:
/**
* Emitted when a message is sent.
* @param message The message sent
......@@ -188,7 +188,7 @@ signals:
void toolbarToggled(bool enabled);
void richTextChanged();
private slots:
private Q_SLOTS:
/**
* Called when a contact is added to the chat session.
* Adds this contact to the nickname completion list.
......
......@@ -175,7 +175,7 @@ public:
/** Reimplemented from KopeteView **/
void registerTooltipHandler(QObject *target, const char *slot) Q_DECL_OVERRIDE;
public slots:
public Q_SLOTS:
/**
* Initiates a cut action on the edit area of the chat view
*/
......@@ -247,7 +247,7 @@ public slots:
/** Retrieves the tab state. */
KopeteTabState tabState() const;
signals:
Q_SIGNALS:
/**
* Emitted when a message is sent
* @param message The message sent
......@@ -297,7 +297,7 @@ signals:
void autoSpellCheckEnabled(ChatView *, bool);
private slots:
private Q_SLOTS:
void slotRemoteTypingTimeout();
/**
......
......@@ -56,21 +56,21 @@ public:
EmoticonSelector (QWidget *parent = nullptr);
// ~EmoticonSelector();
signals:
Q_SIGNALS:
/**
* gets emitted when an emoticon has been selected from the list
* the QString holds the emoticon as a string or is 0L if nothing was selected
**/
void itemSelected(const QString &);
public slots:
public Q_SLOTS:
void prepareList();
protected:
void hideEvent(QHideEvent *) Q_DECL_OVERRIDE;
void showEvent(QShowEvent *) Q_DECL_OVERRIDE;
protected slots:
protected Q_SLOTS:
void emoticonClicked(QListWidgetItem *);
void mouseOverItem(QListWidgetItem *);
void currentChanged();
......
......@@ -182,16 +182,16 @@ private:
bool m_UpdateChatLabel;
signals:
Q_SIGNALS:
void closing(KopeteChatWindow *);
void chatSessionChanged(Kopete::ChatSession *newSession);
public slots:
public Q_SLOTS:
void slotSmileyActivated(const QString &);
void setActiveView(QWidget *active);
void updateBackground(const QPixmap &pm);
private slots:
private Q_SLOTS:
// void slotPrepareSmileyMenu();
void testCanDecode(const QDragMoveEvent *, bool &);
void receivedDropEvent(QWidget *, QDropEvent *);
......
......@@ -80,7 +80,7 @@ public:
*/
QStringList getAvailableStyles() const;
public slots:
public Q_SLOTS:
/**
* Install a new style into user style directory
* Note that you must pass a path to a archive.
......@@ -123,14 +123,14 @@ public slots:
*/
ChatWindowStyle *getValidStyleFromPool(const QString &styleName);
signals:
Q_SIGNALS:
/**
* This signal is emitted when all styles finished to list.
* Used to inform and/or update GUI.
*/
void loadStylesFinished();
private slots:
private Q_SLOTS:
/**
* KDirLister found new files.
* @param dirList new files found.
......
......@@ -51,12 +51,12 @@ public:
return this;
}
public slots:
public Q_SLOTS:
virtual void sendMessage();
void appendMessage(Kopete::Message &message) Q_DECL_OVERRIDE;
void messageSentSuccessfully() Q_DECL_OVERRIDE;
signals:
Q_SIGNALS:
void shown();
void messageSent(Kopete::Message &message);
void closing(KopeteView *view);
......@@ -66,7 +66,7 @@ protected:
void closeEvent(QCloseEvent *e) Q_DECL_OVERRIDE;
void changeEvent(QEvent *e) Q_DECL_OVERRIDE;
private slots:
private Q_SLOTS:
void slotReplySend();
void slotUpdateReplySend();
void slotReadNext();
......
......@@ -34,7 +34,7 @@ public:
KopeteEmoticonAction(QObject *parent);
virtual ~KopeteEmoticonAction();
signals:
Q_SIGNALS:
void activated(const QString &item);
private:
......
......@@ -82,7 +82,7 @@ public Q_SLOTS:
void slotCheckSpellingChanged(bool b);
void slotDocumentSizeUpdated();
void slotEnableAutoResize(bool enable);
signals:
Q_SIGNALS:
void richTextSupportChanged();
void documentSizeUpdated(int difference);
......@@ -90,7 +90,7 @@ protected:
void insertFromMimeData(const QMimeData *source) Q_DECL_OVERRIDE;
bool event(QEvent *event) Q_DECL_OVERRIDE;
protected slots:
protected Q_SLOTS:
void updateTextFormat();
void updateCharFormat(const QTextCharFormat &);
void slotTextModeChanged(KRichTextEdit::Mode mode);
......
......@@ -26,7 +26,7 @@ class ChatWindowStyle_Test : public KUnitTest::Tester
public:
void allTests();
public slots:
public Q_SLOTS:
void testPaths();
void testHtml();
void testVariants();
......
......@@ -32,7 +32,7 @@ public:
~ChatWindowStyleRendering_Test();
void allTests();
public slots:
public Q_SLOTS:
void testHeaderRendering();
void testMessageRendering();
void testStatusRendering();
......
......@@ -27,7 +27,7 @@ class AccountTreeWidget : public QTreeWidget
public:
AccountTreeWidget(QWidget *parent = nullptr);
signals:
Q_SIGNALS:
void itemPositionChanged();
protected:
......
......@@ -51,7 +51,7 @@ public:
protected:
bool eventFilter(QObject *obj, QEvent *event) Q_DECL_OVERRIDE;
public slots:
public Q_SLOTS:
void save() Q_DECL_OVERRIDE;
void load() Q_DECL_OVERRIDE;
......@@ -81,7 +81,7 @@ private:
QAction *m_actionIdentityRemove;
QAction *m_actionIdentitySetDefault;
private slots:
private Q_SLOTS:
void slotModify();
void slotAddAccount();
......
......@@ -36,7 +36,7 @@ public:
void save() Q_DECL_OVERRIDE;
void load() Q_DECL_OVERRIDE;
private slots:
private Q_SLOTS:
void slotHighlightChanged();
void slotChangeFont();
void slotEditTooltips();
......
......@@ -48,7 +48,7 @@ public:
void readLayout(ContactList::LayoutItemConfig config);
ContactList::LayoutItemConfig config();
signals:
Q_SIGNALS:
void focussed(QWidget *);
void changed();
......
......@@ -31,10 +31,10 @@ public:
void load();
bool save();
signals:
Q_SIGNALS:
void changed();
private slots:
private Q_SLOTS:
void emitChanged();
void setLayout(const QString &layoutName);
void reloadLayoutList();
......
......@@ -50,7 +50,7 @@ public:
QString name() const;
int value() const;
signals:
Q_SIGNALS:
void changed();
protected:
......
......@@ -61,7 +61,7 @@ public:
// inline uint columnLimit() const { return m_limits[0]; }
// inline void setColumnLimit( uint c ) { m_limits[0] = c; }
signals:
Q_SIGNALS:
void changed();
void focussed(QWidget *);
......
......@@ -44,7 +44,7 @@ protected:
void dragMoveEvent(QDragMoveEvent *event) Q_DECL_OVERRIDE;
void dropEvent(QDropEvent *event) Q_DECL_OVERRIDE;
signals:
Q_SIGNALS:
void onDoubleClick(Token *token); //connects to TokenLayoutWidget::addToken( QString )
private:
......
......@@ -68,7 +68,7 @@ public:
return m_suffix;
}
public slots:
public Q_SLOTS:
void setAlignLeft(bool);
void setAlignCenter(bool);
void setAlignRight(bool);
......
......@@ -31,7 +31,7 @@ class TooltipEditDialog : public KDialog, private Ui::TooltipEditWidget
public:
TooltipEditDialog(QWidget *parent = nullptr);
private slots:
private Q_SLOTS:
void slotUnusedSelected(const QItemSelection &);
void slotUsedSelected(const QItemSelection &);
void slotUpButton();
......@@ -40,7 +40,7 @@ private slots:
void slotRemoveButton();
void slotOkClicked();
signals:
Q_SIGNALS:
void changed(bool);
private:
......
......@@ -32,9 +32,9 @@ public:
IdPushButton(unsigned int id, const QIcon &icon, const QString &text, QWidget *parent = nullptr);
private:
unsigned int _id;
private slots:
private Q_SLOTS:
void emitPressed();
signals:
Q_SIGNALS:
void pressed(unsigned int id);
};
......@@ -46,9 +46,9 @@ public:
IdComboBox(unsigned int id, bool rw, QWidget *parent = nullptr);
private:
unsigned int _id;
private slots:
private Q_SLOTS:
void emitCurrentIndexChanged(int index);
signals:
Q_SIGNALS:
void currentIndexChanged(unsigned int id, int index);
};
......@@ -60,9 +60,9 @@ public:
IdCheckBox(unsigned int id, const QString &text, QWidget *parent = nullptr);
private:
unsigned int _id;
private slots:
private Q_SLOTS:
void emitStateChanged(int state);
signals:
Q_SIGNALS:
void stateChanged(unsigned int id, int state);
};
......@@ -74,9 +74,9 @@ public:
IdSlider(unsigned int id, Qt::Orientation orientation, QWidget *parent = nullptr);
private:
unsigned int _id;
private slots:
private Q_SLOTS:
void emitValueChanged(int value);
signals:
Q_SIGNALS:
void valueChanged(unsigned int id, int value);
};
......
......@@ -44,7 +44,7 @@ public:
//virtual void save();
//virtual void load();
private slots:
private Q_SLOTS:
void slotSettingsChanged(bool);
void slotValueChanged(int);
void slotDeviceKComboBoxChanged(int);
......
......@@ -36,7 +36,7 @@ public:
void save() Q_DECL_OVERRIDE;
void load() Q_DECL_OVERRIDE;
private slots:
private Q_SLOTS:
void slotSettingsChanged(bool);
void slotValueChanged(int);
void slotTextChanged();
......
......@@ -27,7 +27,7 @@ class BehaviorConfig_General : public QWidget, public Ui::BehaviorConfig_General
public:
BehaviorConfig_General(QWidget *parent = nullptr);
private slots:
private Q_SLOTS:
void queueToggled(bool checked);
};
......
......@@ -53,7 +53,7 @@ public:
void save() Q_DECL_OVERRIDE;
void load() Q_DECL_OVERRIDE;
private slots:
private Q_SLOTS:
//----- Style TAB ---------------------
void slotInstallChatStyle();
int installChatStyle(const QUrl &styleToInstall);
......
......@@ -38,7 +38,7 @@ public:
KopetePluginConfig(QWidget *parent, const QVariantList &args);
~KopetePluginConfig();
public slots:
public Q_SLOTS:
void load() Q_DECL_OVERRIDE;
void save() Q_DECL_OVERRIDE;
......
......@@ -33,7 +33,7 @@ class StatusConfig : public KCModule
public:
StatusConfig(QWidget *parent, const QVariantList &args);
public slots:
public Q_SLOTS:
void save() Q_DECL_OVERRIDE;
void load() Q_DECL_OVERRIDE;
......
......@@ -27,7 +27,7 @@ public:
StatusConfig_Manager(QWidget *parent = nullptr);
~StatusConfig_Manager();
public slots:
public Q_SLOTS:
void load();
void save();
......@@ -35,10 +35,10 @@ public slots:
void addGroup();
void removeStatus();
signals:
Q_SIGNALS:
void changed();
private slots:
private Q_SLOTS:
void currentRowChanged(const QModelIndex &current, const QModelIndex &previous);
void editTitleEdited(const QString &text);
......
......@@ -93,7 +93,7 @@ public:
return m_tokens.value(tokenType);
}
signals:
Q_SIGNALS:
void activeLayoutChanged();
void layoutListChanged();
......
......@@ -38,7 +38,7 @@ public:
ContactListProxyModel(QObject