Commit 98f8333c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use QT macro for signal/slots

svn path=/trunk/KDE/kdebase/nsplugins/; revision=500480
parent 9dd97754
......@@ -55,7 +55,7 @@ public:
return QPixmap();
}
private slots:
private Q_SLOTS:
void slotFaceWidgetSelectionChanged( Q3IconViewItem *item )
{ enableButtonOK( !item->pixmap()->isNull() ); }
......
......@@ -63,7 +63,7 @@ public:
*/
bool eventFilter(QObject *, QEvent *e);
private slots:
private Q_SLOTS:
void slotChangePassword();
//void configChanged() { emit changed(true); };
void slotFaceButtonClicked();
......
......@@ -29,7 +29,7 @@ class ActionsImpl : public QObject
public:
bool save();
public slots:
public Q_SLOTS:
void slotLoad();
void slotSaveAs();
void slotCut();
......
......@@ -39,7 +39,7 @@ public:
KBookmark bookmark() { return m_bk; }
void updateStatus(); //FIXME where was this called?
public slots:
public Q_SLOTS:
void slotTextChangedURL(const QString &);
void slotTextChangedTitle(const QString &);
void slotTextChangedComment(const QString &);
......
......@@ -36,12 +36,12 @@ public:
virtual ~BookmarkIterator();
virtual BookmarkIteratorHolder* holder() const = 0;
public slots:
public Q_SLOTS:
void nextOne();
void delayedEmitNextOne();
void slotCancelTest(BookmarkIterator *t);
signals:
Q_SIGNALS:
void deleteSelf(BookmarkIterator *);
protected:
......
......@@ -43,7 +43,7 @@ public:
virtual void setModel(QAbstractItemModel * view);
virtual void dragEnterEvent(QDragEnterEvent *event);
virtual void dragMoveEvent(QDragMoveEvent *event);
public slots:
public Q_SLOTS:
void aboutToMoveRows(const QModelIndex & oldParent, int first, int last, const QModelIndex & newParent, int position);
void rowsMoved(const QModelIndex & oldParent, int first, int last, const QModelIndex & newParent, int position);
protected:
......
......@@ -66,7 +66,7 @@ public:
// The pointer to the event is retrieved in dropMimeData()
void saveDropEventPointer(QDropEvent * event);
signals:
Q_SIGNALS:
//FIXME searchline should respond too
void aboutToMoveRows(const QModelIndex &, int, int, const QModelIndex &, int);
void rowsMoved(const QModelIndex &, int, int, const QModelIndex &, int);
......
......@@ -51,7 +51,7 @@ public:
~FavIconsItr();
virtual FavIconsItrHolder* holder() const { return FavIconsItrHolder::self(); }
public slots:
public Q_SLOTS:
void slotDone(bool succeeded);
protected:
......
......@@ -118,7 +118,7 @@ public:
*/
QAbstractItemView *view() const;
public slots:
public Q_SLOTS:
/**
* Updates search to only make visible the items that match \a s. If
* \a s is null then the line edit's text will be used.
......@@ -180,7 +180,7 @@ protected:
*/
virtual void contextMenuEvent( QContextMenuEvent*e );
protected slots:
protected Q_SLOTS:
/**
* When keys are pressed a new search string is created and a timer is
* activated. The most recent search is activated when this timer runs out
......@@ -252,7 +252,7 @@ private:
*/
QModelIndex nextRow(const QModelIndex & index);
private slots:
private Q_SLOTS:
void listViewDeleted();
void slotDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight);
void slotRowsInserted(const QModelIndex &parent, int first, int last);
......@@ -301,7 +301,7 @@ public:
*/
KViewSearchLine *searchLine() const;
protected slots:
protected Q_SLOTS:
/**
* Creates the widgets inside of the widget. This is called from the
* constructor via a single shot timer so that it it guaranteed to run
......@@ -310,7 +310,7 @@ protected slots:
*/
virtual void createWidgets();
private slots:
private Q_SLOTS:
void positionInToolBar();
private:
......
......@@ -57,7 +57,7 @@ public:
~TestLinkItr();
virtual TestLinkItrHolder* holder() const { return TestLinkItrHolder::self(); }
public slots:
public Q_SLOTS:
void slotJobResult(KIO::Job *job);
void slotJobData(KIO::Job *job, const QByteArray &data);
......
......@@ -53,7 +53,7 @@ public:
static CmdHistory *self();
protected slots:
protected Q_SLOTS:
void slotCommandExecuted(KCommand *k);
private:
......@@ -90,7 +90,7 @@ public:
static QString makeTimeStr(const QString &);
static QString makeTimeStr(int);
protected slots:
protected Q_SLOTS:
void slotBookmarksChanged(const QString &, const QString &);
private:
......@@ -151,10 +151,10 @@ public:
KBookmark::List selectedBookmarksExpanded() const;
KBookmark::List allBookmarks() const
{ return KBookmark::List();} //FIXME look up what it is suppposed to do, seems like only bookmarks but not folder are returned
public slots:
public Q_SLOTS:
void slotConfigureToolbars();
protected slots:
protected Q_SLOTS:
void slotClipboardDataChanged();
void slotNewToolbarConfig();
void selectionChanged();
......
......@@ -34,7 +34,7 @@ public:
FavIconWebGrabber(KParts::ReadOnlyPart *part, const KURL &url);
~FavIconWebGrabber() {}
protected slots:
protected Q_SLOTS:
void slotMimetype(KIO::Job *job, const QString &_type);
void slotFinished(KIO::Job *job);
......@@ -58,11 +58,11 @@ public:
virtual void notifyChange(bool isHost, QString hostOrURL,
QString iconName);
protected slots:
protected Q_SLOTS:
void setIconURL(const KURL &iconURL);
void slotCompleted();
signals:
Q_SIGNALS:
void done(bool succeeded);
private:
......
......@@ -42,7 +42,7 @@ protected:
bool eventFilter (QObject*, QEvent*);
virtual void mousePressEvent (QMouseEvent * e);
protected slots:
protected Q_SLOTS:
void dateEnteredEvent(QDate d=QDate());
};
......
......@@ -34,13 +34,13 @@ public:
void saveState( QDataStream *stream );
void restoreState( QDataStream *stream );
public slots:
public Q_SLOTS:
void startSearch();
void stopSearch();
//void newSearch();
void saveResults();
signals:
Q_SIGNALS:
void haveResults(bool);
void resultSelected(bool);
......
......@@ -37,7 +37,7 @@ private:
/*Return a QStringList of all subdirs of d*/
QStringList getAllSubdirs(QDir d);
public slots:
public Q_SLOTS:
void startSearch();
void stopSearch();
void newSearch();
......@@ -49,7 +49,7 @@ public slots:
void slotDeleteItem(const QString&);
void slotNewItems( const QString& );
signals:
Q_SIGNALS:
void haveResults(bool);
void resultSelected(bool);
......
......@@ -63,7 +63,7 @@ public:
virtual void disableIcons( const KURL::List & ){};
virtual const KFileItem * currentItem(){return 0;};
signals:
Q_SIGNALS:
// Konqueror connects directly to those signals
void started(); // started a search
void clear(); // delete all items
......@@ -73,7 +73,7 @@ signals:
void findClosed(); // close us
void deleteItem( KFileItem *item);
protected slots:
protected Q_SLOTS:
void slotStarted();
void slotDestroyMe();
void addFile(const KFileItem *item, const QString& matchingLine);
......
......@@ -49,16 +49,16 @@ public:
void setURL( const KURL & url );
public slots:
public Q_SLOTS:
void setFocus();
private slots:
private Q_SLOTS:
void getDirectory();
void fixLayout();
void slotSizeBoxChanged(int);
void slotEditRegExp();
signals:
Q_SIGNALS:
void startSearch();
protected:
......
......@@ -42,11 +42,11 @@ public:
QString reducedDir(const QString& fullDir);
public slots:
public Q_SLOTS:
void copySelection();
void slotContextMenu(KListView *,Q3ListViewItem *item,const QPoint&p);
private slots:
private Q_SLOTS:
void deleteFiles();
void fileProperties();
void openFolder();
......@@ -61,7 +61,7 @@ protected:
virtual Q3DragObject *dragObject();
signals:
Q_SIGNALS:
void resultSelected(bool);
private:
......
......@@ -46,10 +46,10 @@ class KQuery : public QObject
/* Check if file meets the find's requirements*/
inline void processQuery(KFileItem*);
public slots:
public Q_SLOTS:
/* List of files found using slocate */
void slotListEntries(QStringList);
protected slots:
protected Q_SLOTS:
/* List of files found using KIO */
void slotListEntries(KIO::Job *, const KIO::UDSEntryList &);
void slotResult(KIO::Job *);
......@@ -58,7 +58,7 @@ class KQuery : public QObject
void slotreceivedSdterr(KProcess*,char*,int);
void slotendProcessLocate(KProcess*);
signals:
Q_SIGNALS:
void addFile(const KFileItem *filename, const QString& matchingLine);
void result(int);
......
......@@ -38,7 +38,7 @@ public:
/** Make konqueror open a window for @p profile, @p url and @p mimetype */
static bool openProfile(const QString & profile, const QString & url, const QString & mimetype = QString());
protected slots:
protected Q_SLOTS:
void slotResult( KIO::Job * );
void delayedQuit();
......
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