Commit 55adfb22 authored by Thomas Eschenbacher's avatar Thomas Eschenbacher

added some missing Q_DECL_OVERRIDE keywords

parent f2b43958
......@@ -105,7 +105,7 @@ namespace Kwave
virtual bool isOK();
/** Destructor. */
virtual ~MainWidget();
virtual ~MainWidget() Q_DECL_OVERRIDE;
/** Returns the current zoom factor [samples/pixel] */
virtual double zoom() const Q_DECL_OVERRIDE;
......
......@@ -44,7 +44,7 @@ namespace Kwave
explicit Splash(const QString &PNGFile);
/** Destructor */
virtual ~Splash();
virtual ~Splash() Q_DECL_OVERRIDE;
/** wrapper for QSplashScreen::showMessage with only one parameter */
static void showMessage(const QString &message);
......
......@@ -83,7 +83,7 @@ namespace Kwave
/**
* Destructor.
*/
virtual ~TopWidget();
virtual ~TopWidget() Q_DECL_OVERRIDE;
/**
* Returns a list of currently opened files
......
......@@ -43,7 +43,7 @@ namespace Kwave
explicit CurveWidget(QWidget *parent);
/** Destructor */
virtual ~CurveWidget();
virtual ~CurveWidget() Q_DECL_OVERRIDE;
/** Returns a command string for the curve. */
QString getCommand();
......
......@@ -72,7 +72,7 @@ namespace Kwave
const QString last_ext = QString());
/** Destructor */
virtual ~FileDialog()
virtual ~FileDialog() Q_DECL_OVERRIDE
{
}
......
......@@ -49,7 +49,7 @@ namespace Kwave
FilterPlugin(QObject *parent, const QVariantList &args);
/** Destructor */
virtual ~FilterPlugin();
virtual ~FilterPlugin() Q_DECL_OVERRIDE;
/** Reads values from the parameter list */
virtual int interpreteParameters(QStringList & /* params */) = 0;
......
......@@ -44,7 +44,7 @@ namespace Kwave
explicit FrequencyResponseWidget(QWidget *parent);
/** Destructor */
virtual ~FrequencyResponseWidget();
virtual ~FrequencyResponseWidget() Q_DECL_OVERRIDE;
/**
* Initialize the widget dimensions.
......
......@@ -51,7 +51,7 @@ namespace Kwave
/**
* Destructor
*/
virtual ~ImageView();
virtual ~ImageView() Q_DECL_OVERRIDE;
/**
* Returns the position and size of the current image, packed
......
......@@ -53,7 +53,7 @@ namespace Kwave
const Kwave::Label &label);
/** Destructor */
virtual ~LabelItem();
virtual ~LabelItem() Q_DECL_OVERRIDE;
/**
* Returns flags describing the possible interactions with this object
......
......@@ -54,7 +54,7 @@ namespace Kwave
const QString &uid);
/** virtual destructor */
virtual ~MenuItem();
virtual ~MenuItem() Q_DECL_OVERRIDE;
/**
* Called to notify the item that it has been selected.
......
......@@ -51,7 +51,7 @@ namespace Kwave
const QString &uid);
/** Destructor */
virtual ~MenuList();
virtual ~MenuList() Q_DECL_OVERRIDE;
/**
* Always returns true, as the nodes of this type are no branches.
......
......@@ -49,7 +49,7 @@ namespace Kwave
explicit MenuRoot(QMenuBar &bar);
/** Destructor */
virtual ~MenuRoot();
virtual ~MenuRoot() Q_DECL_OVERRIDE;
/**
* overloaded version from MenuNode, which does a cleanup of
......
......@@ -56,7 +56,7 @@ namespace Kwave
const QString &uid);
/** Destructor */
virtual ~MenuSub();
virtual ~MenuSub() Q_DECL_OVERRIDE;
/**
* Always returns true, as the nodes of this type are branches.
......
......@@ -47,7 +47,7 @@ namespace Kwave
MultiStateWidget(QWidget *parent, int id);
/** Destructor */
virtual ~MultiStateWidget();
virtual ~MultiStateWidget() Q_DECL_OVERRIDE;
/**
* Sets the number that will passed as argument to the
......
......@@ -53,7 +53,7 @@ namespace Kwave
QWidget *parent = 0);
/** Destructor */
virtual ~OverViewWidget();
virtual ~OverViewWidget() Q_DECL_OVERRIDE;
/** minimum size of the widget, @see QWidget::minimumSize() */
virtual QSize minimumSize() const;
......@@ -181,7 +181,7 @@ namespace Kwave
explicit WorkerThread(Kwave::OverViewWidget *widget);
/** destructor */
virtual ~WorkerThread();
virtual ~WorkerThread() Q_DECL_OVERRIDE;
/** thread function that calls calculateBitmap() */
virtual void run() Q_DECL_OVERRIDE;
......
......@@ -50,7 +50,7 @@ namespace Kwave
ScaleWidget(QWidget *parent, int low, int high, const QString &unit);
/** Destructor */
virtual ~ScaleWidget();
virtual ~ScaleWidget() Q_DECL_OVERRIDE;
/**
* Sets the border values.
......
......@@ -50,7 +50,7 @@ namespace Kwave
sample_index_t pos);
/** Destructor */
virtual ~SelectionBorderItem();
virtual ~SelectionBorderItem() Q_DECL_OVERRIDE;
/**
* Returns flags describing the possible interactions with this object
......
......@@ -45,7 +45,7 @@ namespace Kwave
Kwave::SignalManager &signal_manager);
/** Destructor */
virtual ~SelectionItem();
virtual ~SelectionItem() Q_DECL_OVERRIDE;
/**
* Returns flags describing the possible interactions with this object
......
......@@ -55,7 +55,7 @@ namespace Kwave
const QList<unsigned int> *tracks);
/** Destructor */
virtual ~SelectionTracker();
virtual ~SelectionTracker() Q_DECL_OVERRIDE;
/**
* Returns all currently selected tracks
......@@ -217,7 +217,7 @@ namespace Kwave
explicit Undo(Kwave::SelectionTracker *selection);
/** Destructor */
virtual ~Undo();
virtual ~Undo() Q_DECL_OVERRIDE;
/**
* Returns a verbose short description of the action.
......
......@@ -81,7 +81,7 @@ namespace Kwave
int track = -1);
/** Destructor */
virtual ~SignalView();
virtual ~SignalView() Q_DECL_OVERRIDE;
/**
* refresh the content of the view.
......@@ -359,7 +359,7 @@ namespace Kwave
explicit PositionWidget(QWidget *parent);
/** Destructor */
virtual ~PositionWidget();
virtual ~PositionWidget() Q_DECL_OVERRIDE;
/**
* set a new label text and alignment
......
......@@ -91,7 +91,7 @@ namespace Kwave
QVBoxLayout *upper_dock, QVBoxLayout *lower_dock);
/** Destructor */
virtual ~SignalWidget();
virtual ~SignalWidget() Q_DECL_OVERRIDE;
/**
* sets new zoom factor and offset
......
......@@ -57,7 +57,7 @@ namespace Kwave
Kwave::Track *track);
/** Destructor */
virtual ~TrackView();
virtual ~TrackView() Q_DECL_OVERRIDE;
/** refreshes the bitmap that displays the signal */
virtual void refresh() Q_DECL_OVERRIDE;
......
......@@ -36,7 +36,7 @@ namespace Kwave
explicit TreeWidgetWrapper(QWidget *parent);
/** Destructor */
virtual ~TreeWidgetWrapper();
virtual ~TreeWidgetWrapper() Q_DECL_OVERRIDE;
/** catches the "lost focus" event */
virtual void focusOutEvent(QFocusEvent *event) Q_DECL_OVERRIDE;
......
......@@ -50,7 +50,7 @@ namespace Kwave
CodecPlugin(QObject *parent, const QVariantList &args, Codec &codec);
/** Destructor */
virtual ~CodecPlugin();
virtual ~CodecPlugin() Q_DECL_OVERRIDE;
/**
* Gets called when the plugin is first loaded. Registers new encoder
......
......@@ -148,7 +148,7 @@ namespace Kwave
explicit FileInfo(const Kwave::MetaDataList &meta_data_list);
/** Destructor */
virtual ~FileInfo();
virtual ~FileInfo() Q_DECL_OVERRIDE;
/** returns the identifier of the "type" of this meta data object */
static QString metaDataType() {
......
......@@ -58,7 +58,7 @@ namespace Kwave
unsigned int tracks);
/** Destructor */
virtual ~FileProgress() {}
virtual ~FileProgress() Q_DECL_OVERRIDE {}
/**
* Returns true if the dialog is unusable or the user
......
......@@ -45,7 +45,7 @@ namespace Kwave
MimeData();
/** Destructor */
virtual ~MimeData();
virtual ~MimeData() Q_DECL_OVERRIDE;
/**
* Encodes wave data received from a MultiTrackReader into a byte
......@@ -93,7 +93,7 @@ namespace Kwave
Buffer();
/** Destructor, closes the buffer */
virtual ~Buffer();
virtual ~Buffer() Q_DECL_OVERRIDE;
/** returns the number of bytes written */
virtual qint64 size() const Q_DECL_OVERRIDE { return m_size; }
......
......@@ -62,7 +62,7 @@ namespace Kwave
sample_index_t first, sample_index_t last);
/** Destructor */
virtual ~MultiTrackReader();
virtual ~MultiTrackReader() Q_DECL_OVERRIDE;
/**
* Returns the offset of the reader, as
......
......@@ -50,7 +50,7 @@ namespace Kwave
}
/** Destructor */
virtual ~MultiTrackSink()
virtual ~MultiTrackSink() Q_DECL_OVERRIDE
{
clear();
}
......
......@@ -60,7 +60,7 @@ namespace Kwave
}
/** Destructor */
virtual ~MultiTrackSource()
virtual ~MultiTrackSource() Q_DECL_OVERRIDE
{
clear();
}
......
......@@ -45,7 +45,7 @@ namespace Kwave
MultiWriter();
/** Destructor */
virtual ~MultiWriter();
virtual ~MultiWriter() Q_DECL_OVERRIDE;
/** Returns the last sample index of all streams */
virtual sample_index_t last() const;
......
......@@ -38,7 +38,7 @@ namespace Kwave
}
/** Destructor */
virtual ~PlayBackTypesMap() {}
virtual ~PlayBackTypesMap() Q_DECL_OVERRIDE {}
/** fill function for the map */
virtual void fill() Q_DECL_OVERRIDE;
......
......@@ -61,7 +61,7 @@ namespace Kwave
explicit PlaybackController(Kwave::SignalManager &signal_manager);
/** Destructor */
virtual ~PlaybackController();
virtual ~PlaybackController() Q_DECL_OVERRIDE;
public:
......
......@@ -88,7 +88,7 @@ namespace Kwave
/**
* Destructor.
*/
virtual ~Plugin();
virtual ~Plugin() Q_DECL_OVERRIDE;
/** Returns the name of the plugin. */
virtual QString name() const;
......
......@@ -43,7 +43,7 @@ namespace Kwave
Kwave::byte_order_t endianness);
/** Destructor */
virtual ~SampleEncoderLinear();
virtual ~SampleEncoderLinear() Q_DECL_OVERRIDE;
/**
* Encodes a buffer with samples into a buffer with raw data.
......
......@@ -87,7 +87,7 @@ namespace Kwave
explicit Map();
/** Destructor */
virtual ~Map();
virtual ~Map() Q_DECL_OVERRIDE;
/** fills the list */
virtual void fill() Q_DECL_OVERRIDE;
......
......@@ -50,7 +50,7 @@ namespace Kwave
SampleReader(Kwave::ReaderMode mode, Kwave::Stripe::List stripes);
/** Destructor */
virtual ~SampleReader();
virtual ~SampleReader() Q_DECL_OVERRIDE;
/** Resets the stream to it's start */
void reset();
......
......@@ -37,7 +37,7 @@ namespace Kwave
* Constructor
* @param parent a parent object, passed to QObject (optional)
*/
explicit SampleSink(QObject *parent = 0);
explicit SampleSink(QObject *parent = Q_NULLPTR);
/** Destructor */
virtual ~SampleSink();
......
......@@ -52,7 +52,7 @@ namespace Kwave
/**
* Destructor.
*/
virtual ~StreamWriter();
virtual ~StreamWriter() Q_DECL_OVERRIDE;
/**
* Flush the content of a buffer. Normally the buffer is the
......
......@@ -59,7 +59,7 @@ namespace Kwave
/**
* Destructor.
*/
virtual ~TrackWriter();
virtual ~TrackWriter() Q_DECL_OVERRIDE;
/**
* Flush the content of a buffer. Normally the buffer is the
......
......@@ -41,7 +41,7 @@ namespace Kwave
explicit WorkerThread(Kwave::Runnable *runnable, QVariant params);
/** Destructor, calls stop() if the thread is still running. */
virtual ~WorkerThread();
virtual ~WorkerThread() Q_DECL_OVERRIDE;
/** Starts the thread's execution. */
virtual void start();
......
......@@ -53,7 +53,7 @@ namespace Kwave
sample_index_t left = 0, sample_index_t right = 0);
/** Destructor */
virtual ~Writer();
virtual ~Writer() Q_DECL_OVERRIDE;
/** operator for inserting an array of samples */
virtual Writer &operator << (const Kwave::SampleArray &samples);
......
......@@ -50,7 +50,7 @@ namespace Kwave
ChannelMixer(unsigned int inputs, unsigned int outputs);
/** Destructor */
virtual ~ChannelMixer();
virtual ~ChannelMixer() Q_DECL_OVERRIDE;
/**
* Init function, you must call it once after creating and before
......
......@@ -40,7 +40,7 @@ namespace Kwave
CurveStreamAdapter(Kwave::Curve &curve, sample_index_t length);
/** Destructor */
virtual ~CurveStreamAdapter();
virtual ~CurveStreamAdapter() Q_DECL_OVERRIDE;
/** @see Kwave::KwaveSampleSource */
virtual void goOn() Q_DECL_OVERRIDE;
......
......@@ -39,7 +39,7 @@ namespace Kwave
Delay();
/** Destructor */
virtual ~Delay();
virtual ~Delay() Q_DECL_OVERRIDE;
/** does the calculation */
virtual void goOn() Q_DECL_OVERRIDE;
......
......@@ -42,7 +42,7 @@ namespace Kwave
Mul();
/** Destructor */
virtual ~Mul();
virtual ~Mul() Q_DECL_OVERRIDE;
/** does nothing, work is done automatically in multiply() */
virtual void goOn() Q_DECL_OVERRIDE;
......
......@@ -37,7 +37,7 @@ namespace Kwave
Osc();
/** Destructor */
virtual ~Osc();
virtual ~Osc() Q_DECL_OVERRIDE;
/** does the calculation */
virtual void goOn() Q_DECL_OVERRIDE;
......
......@@ -42,7 +42,7 @@ namespace Kwave
RateConverter();
/** Destructor */
virtual ~RateConverter();
virtual ~RateConverter() Q_DECL_OVERRIDE;
/** does nothing, processing is done in input() */
virtual void goOn() Q_DECL_OVERRIDE;
......
......@@ -38,7 +38,7 @@ namespace Kwave
*
* @param parent a parent object, passed to QObject (optional)
*/
explicit StreamObject(QObject *parent = 0);
explicit StreamObject(QObject *parent = Q_NULLPTR);
/** Destructor */
virtual ~StreamObject();
......@@ -58,7 +58,7 @@ namespace Kwave
*/
virtual Kwave::StreamObject * operator [] (unsigned int track)
{
return (track == 0) ? this : 0;
return (track == 0) ? this : Q_NULLPTR;
}
/**
......
......@@ -48,7 +48,7 @@ namespace Kwave
explicit UndoAddMetaDataAction(const Kwave::MetaDataList &meta_data);
/** Destructor */
virtual ~UndoAddMetaDataAction();
virtual ~UndoAddMetaDataAction() Q_DECL_OVERRIDE;
/**
* Returns a verbose short description of the action.
......
......@@ -52,7 +52,7 @@ namespace Kwave
sample_index_t offset, sample_index_t length);
/** Destructor */
virtual ~UndoDeleteAction();
virtual ~UndoDeleteAction() Q_DECL_OVERRIDE;
/** @see UndoAction::description() */
virtual QString description() Q_DECL_OVERRIDE;
......
......@@ -44,7 +44,7 @@ namespace Kwave
explicit UndoDeleteMetaDataAction(const Kwave::MetaDataList &meta_data);
/** Destructor */
virtual ~UndoDeleteMetaDataAction();
virtual ~UndoDeleteMetaDataAction() Q_DECL_OVERRIDE;
/**
* Returns a verbose short description of the action.
......
......@@ -48,7 +48,7 @@ namespace Kwave
UndoDeleteTrack(Kwave::Signal &signal, unsigned int track);
/** Destructor */
virtual ~UndoDeleteTrack();
virtual ~UndoDeleteTrack() Q_DECL_OVERRIDE;
/**
* Returns a verbose short description of the action.
......
......@@ -46,7 +46,7 @@ namespace Kwave
UndoInsertTrack(Kwave::Signal &signal, unsigned int track);
/** Destructor */
virtual ~UndoInsertTrack();
virtual ~UndoInsertTrack() Q_DECL_OVERRIDE;
/**
* Returns a verbose short description of the action.
......
......@@ -44,7 +44,7 @@ namespace Kwave
sample_index_t length);
/** Destructor */
virtual ~UndoModifyAction();
virtual ~UndoModifyAction() Q_DECL_OVERRIDE;
/** @see UndoAction::description() */
virtual QString description() Q_DECL_OVERRIDE;
......
......@@ -44,7 +44,7 @@ namespace Kwave
explicit UndoModifyMetaDataAction(const Kwave::MetaDataList &meta_data);
/** Destructor */
virtual ~UndoModifyMetaDataAction();
virtual ~UndoModifyMetaDataAction() Q_DECL_OVERRIDE;
/**
* Returns a verbose short description of the action.
......
......@@ -58,7 +58,7 @@ namespace Kwave
sample_index_t length);
/** virtual destructor */
virtual ~UndoSelection();
virtual ~UndoSelection() Q_DECL_OVERRIDE;
/** @see UndoAction::description() */
virtual QString description() Q_DECL_OVERRIDE;
......
......@@ -47,7 +47,7 @@ namespace Kwave
public:
explicit AboutContainer(QWidget *parent = 0);
virtual ~AboutContainer();
virtual ~AboutContainer() Q_DECL_OVERRIDE;
void addPerson(const QString &name, const QString &email,
const QString &url, const QString &task);
......@@ -79,7 +79,7 @@ namespace Kwave
const QString &url,
const QString &work);
virtual ~AboutContributor();
virtual ~AboutContributor() Q_DECL_OVERRIDE;
QSize sizeHint() const Q_DECL_OVERRIDE;
......
......@@ -40,7 +40,7 @@ namespace Kwave
AboutPlugin(QObject *parent, const QVariantList &args);
/** Destructor */
virtual ~AboutPlugin() {}
virtual ~AboutPlugin() Q_DECL_OVERRIDE {}
/** Returns the name of the plugin. */
virtual QString name() const Q_DECL_OVERRIDE { return _("about"); }
......
......@@ -41,7 +41,7 @@ namespace Kwave
explicit LogoWidget(QWidget *parent);
/** Destructor */
virtual ~LogoWidget();
virtual ~LogoWidget() Q_DECL_OVERRIDE;
public slots:
/** animates the next step of the logo */
......
......@@ -45,7 +45,7 @@ namespace Kwave
AmplifyFreePlugin(QObject *parent, const QVariantList &args);
/** Destructor */
virtual ~AmplifyFreePlugin();
virtual ~AmplifyFreePlugin() Q_DECL_OVERRIDE</