Use Qt-namespace signal/slot keywords

parent a990cc46
......@@ -45,7 +45,7 @@ class VolumeAction : public KToggleAction
Q_OBJECT
public:
VolumeAction( QObject *receiver, const char *slot, KActionCollection* );
private slots:
private Q_SLOTS:
void mutedChanged( bool );
};
}
......
......@@ -47,7 +47,7 @@ class Base : public QWidget
{
Q_OBJECT
public slots:
public Q_SLOTS:
void drawFrame(const QMap<Phonon::AudioDataOutput::Channel, QVector<qint16> > &thescope);
protected:
......@@ -59,7 +59,7 @@ protected:
virtual void transform(QVector<float>&);
virtual void analyze(const QVector<float>&) = 0;
virtual void paused();
public slots:
public Q_SLOTS:
void demo();
protected:
FHT *m_fht;
......@@ -72,7 +72,7 @@ class Base2D : public Base
public:
const QPixmap *canvas() const { return &m_canvas; }
// private slots:
// private Q_SLOTS:
// void draw() { drawFrame(); bitBlt( this, 0, 0, canvas() ); }
void enableDemo(bool enable) { enable ? timer.start() : timer.stop(); }
......@@ -89,7 +89,7 @@ protected:
void resizeEvent( QResizeEvent* ) override;
protected slots:
protected Q_SLOTS:
virtual void init() {}
private:
......
......@@ -39,7 +39,7 @@ public:
void setupAnalyzer();
public slots:
public Q_SLOTS:
void enableDemo(bool enable);
void update();
......
......@@ -34,7 +34,7 @@ class DiscSelectionDialog : public QDialog
Q_OBJECT
public:
DiscSelectionDialog( QWidget* parent, const QList< Solid::Device >& deviceList );
private slots:
private Q_SLOTS:
void discItemSelected( QListWidgetItem *item );
void okClicked();
private:
......
......@@ -33,7 +33,7 @@ class LoadView : public QWidget, private Ui_LoadView
public:
explicit LoadView(QWidget *parent);
void setThumbnail(QWidget *object);
signals:
Q_SIGNALS:
void loadUrl(QUrl);
void openFilePressed();
void openDVDPressed();
......
......@@ -68,10 +68,10 @@ public:
void showVolume( bool );
bool volumeContains(const QPoint &mousePos );
signals:
Q_SIGNALS:
void fileChanged( QString );
public slots:
public Q_SLOTS:
bool open(const QUrl & );
void playDisc();
void openFileDialog();
......@@ -82,7 +82,7 @@ public slots:
void restoreDefaultVideoSettings();
void toggleLoadView();
private slots:
private Q_SLOTS:
void setFullScreen( bool full );
void engineMessage( const QString& );
void init();
......
......@@ -47,10 +47,10 @@ public:
static KAboutData *createAboutData();
public slots:
public Q_SLOTS:
bool openUrl( const QUrl& ) override;
private slots:
private Q_SLOTS:
void engineStateChanged( Phonon::State state );
void videoContextMenu( const QPoint & pos );
......
......@@ -40,7 +40,7 @@ public:
enum DialogCode { FILE = QDialog::Accepted + 2, VCD, DVD, RECENT_FILE };
private slots:
private Q_SLOTS:
void finished(QListWidgetItem *item );
private:
......
......@@ -35,7 +35,7 @@ public:
~PlayerApplication() override;
void newInstance(bool playDisc = false, const QList<QUrl> &uris = QList<QUrl>());
public slots:
public Q_SLOTS:
void slotActivateRequested(const QStringList &arguments, const QString &workingDirectory);
void slotOpenRequested(const QList<QUrl> &uris);
......
......@@ -35,12 +35,12 @@ public:
private:
void contextMenuEvent(QContextMenuEvent*) override;
KConfigGroup* configGroup;
public slots:
public Q_SLOTS:
void loadEntries();
void removeEntry();
void clearList();
void itemDoubleClicked(QListWidgetItem*);
signals:
Q_SIGNALS:
void itemDoubleClicked(QUrl);
};
......
......@@ -32,7 +32,7 @@ public:
void mousePressEvent( QMouseEvent * ) override;
void updateTime();
enum TimeFormats { SHOW_REMAINING, SHOW_COMPLETED };
public slots:
public Q_SLOTS:
void setCurrentTime( qint64 );
void setTotalTime( qint64 );
private:
......
......@@ -128,7 +128,7 @@ public:
qint64 currentTime() const;
int videoSetting( const QString& );
public slots:
public Q_SLOTS:
void pause();
void playPause();
void seek( qint64 );
......@@ -164,10 +164,10 @@ protected:
Phonon::State state( Phonon::State state ) const;
void setSubtitle( int channel );
void setAudioChannel( int channel );
private slots:
private Q_SLOTS:
void updateChannels();
void hideCursor();
signals:
Q_SIGNALS:
void stateUpdated( const Phonon::State, const Phonon::State );
void subChannelsChanged( QList< QAction* > );
void audioChannelsChanged( QList< QAction* > );
......
......@@ -62,11 +62,11 @@ public:
QStringList SupportedUriSchemes() const;
QStringList SupportedMimeTypes() const;
public slots:
public Q_SLOTS:
void Raise() const;
void Quit() const;
private slots:
private Q_SLOTS:
void emitFullscreenChange(bool fullscreen) const;
};
......
......@@ -71,10 +71,10 @@ public:
bool CanSeek() const;
bool CanControl() const;
signals:
Q_SIGNALS:
void Seeked(qlonglong Position) const;
public slots:
public Q_SLOTS:
void Next() const;
void Previous() const;
void Pause() const;
......@@ -85,7 +85,7 @@ public slots:
void SetPosition(const QDBusObjectPath& TrackId, qlonglong Position) const;
void OpenUri(QString Uri) const;
private slots:
private Q_SLOTS:
void tick(qint64 newPos);
void emitMetadataChange() const;
void currentSourceChanged() const;
......
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