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

Use Q_SIGNALS/Q_SLOTS

parent 94aa7c1c
......@@ -49,7 +49,7 @@ public:
static bool configure(GlobalGUIConfig*, TraceData*, QWidget*);
protected slots:
protected Q_SLOTS:
void objectActivated(const QString &);
void objectCheckChanged(bool);
void objectColorChanged(const QColor &);
......
......@@ -96,7 +96,7 @@ public:
void loadError(int line, const QString& msg) override;
void loadFinished(const QString& msg) override; // msg could be error
public slots:
public Q_SLOTS:
void load();
void load(const QUrl&);
void load(QString);
......
......@@ -383,7 +383,7 @@ public:
void setZoomRect(const QRectF& r);
signals:
Q_SIGNALS:
void zoomRectMoved(qreal dx, qreal dy);
void zoomRectMoveFinished();
......@@ -600,7 +600,7 @@ public:
static ZoomPosition zoomPos(QString);
static QString zoomPosString(ZoomPosition);
public slots:
public Q_SLOTS:
void zoomRectMoved(qreal, qreal);
void zoomRectMoveFinished();
......
......@@ -53,7 +53,7 @@ public:
QString tipString(TreeMapItem*) const override;
QColor groupColor(TraceFunction*) const;
private slots:
private Q_SLOTS:
void context(TreeMapItem*,const QPoint &);
void selectedSlot(TreeMapItem*, bool);
void activatedSlot(TreeMapItem*);
......
......@@ -39,7 +39,7 @@ public:
QString whatsThis() const override;
bool showCallers() const { return _showCallers; }
protected slots:
protected Q_SLOTS:
void context(const QPoint &);
void selectedSlot(QTreeWidgetItem*, QTreeWidgetItem*);
void activatedSlot(QTreeWidgetItem*, int);
......
......@@ -40,7 +40,7 @@ public:
QWidget* widget() override { return this; }
QString whatsThis() const override;
protected slots:
protected Q_SLOTS:
void context(const QPoint &);
void selectedSlot(QTreeWidgetItem*, QTreeWidgetItem*);
void activatedSlot(QTreeWidgetItem*, int);
......
......@@ -39,7 +39,7 @@ public:
QWidget* widget() override { return this; }
QString whatsThis() const override;
private slots:
private Q_SLOTS:
void context(const QPoint&);
void currentItemChanged(QTreeWidgetItem*, QTreeWidgetItem*);
void itemDoubleClicked(QTreeWidgetItem*, int);
......
......@@ -62,7 +62,7 @@ public:
void updateGroupingMenu(QMenu*);
public slots:
public Q_SLOTS:
void searchReturnPressed();
void searchChanged(const QString&);
void queryDelayed();
......@@ -121,7 +121,7 @@ public:
explicit AutoToolTipDelegate(QObject* parent = nullptr);
~AutoToolTipDelegate() override;
public slots:
public Q_SLOTS:
bool helpEvent( QHelpEvent* e, QAbstractItemView* view,
const QStyleOptionViewItem& option,
const QModelIndex& index ) override;
......
......@@ -46,7 +46,7 @@ public:
void restoreOptions(const QString& prefix, const QString& postfix) override;
void saveOptions(const QString& prefix, const QString& postfix) override;
protected slots:
protected Q_SLOTS:
void context(const QPoint &);
void selectedSlot(QTreeWidgetItem*, QTreeWidgetItem*);
void activatedSlot(QTreeWidgetItem*,int);
......
......@@ -57,7 +57,7 @@ public:
void saveOptions(const QString& prefix, const QString& postfix) override;
void restoreOptions(const QString& prefix, const QString& postfix) override;
public slots:
public Q_SLOTS:
void tabActivated(TabView*);
private:
......
......@@ -51,11 +51,11 @@ public:
void saveOptions(const QString& prefix, const QString& postfix) override;
void restoreOptions(const QString& prefix, const QString& postfix) override;
signals:
Q_SIGNALS:
void partsHideSelected();
void partsUnhideAll();
public slots:
public Q_SLOTS:
void selectionChanged();
void doubleClicked(TreeMapItem*);
void itemSelected();
......
......@@ -40,7 +40,7 @@ public:
void refresh();
private slots:
private Q_SLOTS:
void context(const QPoint &);
void selectionChangedSlot();
void headerClicked(int);
......
......@@ -42,7 +42,7 @@ public:
QString whatsThis() const override;
int arrowLevels() { return _arrowLevels; }
protected slots:
protected Q_SLOTS:
void context(const QPoint &);
void selectedSlot(QTreeWidgetItem*, QTreeWidgetItem*);
void activatedSlot(QTreeWidgetItem*,int);
......
......@@ -50,10 +50,10 @@ public:
EventType* eventType2() { return _eventType2; }
ProfileContext::Type groupType() { return _groupType; }
signals:
Q_SIGNALS:
void functionSelected(CostItem*);
public slots:
public Q_SLOTS:
void setFunction(TraceFunction*);
void setEventType(EventType*);
void setEventType2(EventType*);
......
......@@ -97,7 +97,7 @@ public:
bool hasVisibleRect() { return _hasVisibleRect; }
void checkVisibility();
signals:
Q_SIGNALS:
void visibleRectChanged(TabWidget*);
protected:
......@@ -147,11 +147,11 @@ public:
void saveOptions(const QString& prefix, const QString& postfix) override;
void restoreOptions(const QString& prefix, const QString& postfix) override;
public slots:
public Q_SLOTS:
void tabChanged(int);
void visibleRectChangedSlot(TabWidget*);
signals:
Q_SIGNALS:
void tabActivated(TabView*);
protected:
......
......@@ -47,7 +47,7 @@ class TraceItemViewUpdateTimer: public QTimer
public:
explicit TraceItemViewUpdateTimer(TraceItemView* view);
private slots:
private Q_SLOTS:
void timeoutTriggered();
private:
......
......@@ -644,10 +644,10 @@ public:
// used internally when items are destroyed
void deletingItem(TreeMapItem*);
protected slots:
protected Q_SLOTS:
void splitActivated(QAction*);
signals:
Q_SIGNALS:
void selectionChanged();
void selectionChanged(TreeMapItem*);
......
......@@ -42,7 +42,7 @@ public:
void accept() override;
void activate(QString s) override;
public slots:
public Q_SLOTS:
void resetClicked();
void colorListItemChanged(QTreeWidgetItem*, QTreeWidgetItem*);
void colorChanged(const QColor &);
......
......@@ -48,7 +48,7 @@ public:
void activate(QString);
QString currentPage();
public slots:
public Q_SLOTS:
void accept() override;
void listItemChanged(QString);
void clearError();
......
......@@ -84,7 +84,7 @@ public:
void loadError(int line, const QString& msg) override;
void loadFinished(const QString& msg) override; // msg could be error
public slots:
public Q_SLOTS:
void load();
void load(QStringList files, bool addToRecentFiles = true);
void add();
......
......@@ -52,11 +52,11 @@ public:
QColor color() const;
public slots:
public Q_SLOTS:
void setColor(const QColor &color);
signals:
Q_SIGNALS:
void colorChanged(const QColor &color);
protected:
void paintEvent(QPaintEvent *event) override;
......
......@@ -41,7 +41,7 @@ public:
void accept() override;
void activate(QString s) override;
public slots:
public Q_SLOTS:
void addClicked();
void deleteClicked();
void browseClicked();
......
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