Commit 014b7123 authored by Laurent Montel's avatar Laurent Montel 😁

Use explicit. Q_DECL_OVERRIDE

parent 6fab218d
......@@ -23,7 +23,7 @@ class DlgGeneral : public QWidget
virtual ~DlgGeneral();
protected:
virtual void showEvent( QShowEvent * );
void showEvent( QShowEvent * ) Q_DECL_OVERRIDE;
Ui_DlgGeneralBase * m_dlg;
};
......
......@@ -103,6 +103,6 @@ class EditAnnotToolDialog : public QDialog
void slotDataChanged();
};
Q_DECLARE_METATYPE( EditAnnotToolDialog::ToolType );
Q_DECLARE_METATYPE( EditAnnotToolDialog::ToolType )
#endif
......@@ -38,8 +38,8 @@ class NonFreeUnrarFlavour : public UnrarFlavour
public:
NonFreeUnrarFlavour();
virtual QStringList processListing( const QStringList &data );
virtual QString name() const;
QStringList processListing( const QStringList &data ) Q_DECL_OVERRIDE;
QString name() const Q_DECL_OVERRIDE;
};
class FreeUnrarFlavour : public UnrarFlavour
......@@ -47,8 +47,8 @@ class FreeUnrarFlavour : public UnrarFlavour
public:
FreeUnrarFlavour();
virtual QStringList processListing( const QStringList &data );
virtual QString name() const;
QStringList processListing( const QStringList &data ) Q_DECL_OVERRIDE;
QString name() const Q_DECL_OVERRIDE;
};
#endif
......
......@@ -33,7 +33,7 @@ namespace Epub {
enum Multimedia { MovieResource = 4, AudioResource = 5 };
protected:
virtual QVariant loadResource(int type, const QUrl &name);
QVariant loadResource(int type, const QUrl &name) Q_DECL_OVERRIDE;
private:
void checkCSS(QString &css);
......
......@@ -53,7 +53,7 @@ struct strip { /* tiff strip descriptor */
class pagenode { /* compressed page descriptor */
public:
pagenode();
~pagenode() { };
~pagenode() { }
int nstrips; /* number of strips */
int rowsperstrip; /* number of rows per strip */
int stripnum; /* current strip while expanding */
......
......@@ -32,7 +32,7 @@ class FaxGenerator : public Okular::Generator
bool print( QPrinter& printer ) Q_DECL_OVERRIDE;
protected:
bool doCloseDocument();
bool doCloseDocument() Q_DECL_OVERRIDE;
QImage image( Okular::PixmapRequest * request ) Q_DECL_OVERRIDE;
private:
......
......@@ -21,7 +21,7 @@ class FictionBookGenerator : public Okular::TextDocumentGenerator
FictionBookGenerator( QObject *parent, const QVariantList &args );
// [INHERITED] reparse configuration
void addPages( KConfigDialog* dlg );
void addPages( KConfigDialog* dlg ) Q_DECL_OVERRIDE;
};
#endif
......@@ -20,9 +20,9 @@ class KOOOGenerator : public Okular::TextDocumentGenerator
KOOOGenerator( QObject *parent, const QVariantList &args );
// [INHERITED] reparse configuration
void addPages( KConfigDialog* dlg );
void addPages( KConfigDialog* dlg ) Q_DECL_OVERRIDE;
virtual void walletDataForFile( const QString &fileName, QString *walletName, QString *walletFolder, QString *walletKey ) const;
void walletDataForFile( const QString &fileName, QString *walletName, QString *walletFolder, QString *walletKey ) const Q_DECL_OVERRIDE;
};
#endif
......@@ -29,23 +29,23 @@ class PluckerGenerator : public Okular::Generator
virtual ~PluckerGenerator();
// [INHERITED] load a document and fill up the pagesVector
bool loadDocument( const QString & fileName, QVector<Okular::Page*> & pagesVector );
bool loadDocument( const QString & fileName, QVector<Okular::Page*> & pagesVector ) Q_DECL_OVERRIDE;
// [INHERITED] document information
Okular::DocumentInfo generateDocumentInfo( const QSet<Okular::DocumentInfo::Key> &keys ) const;
Okular::DocumentInfo generateDocumentInfo( const QSet<Okular::DocumentInfo::Key> &keys ) const Q_DECL_OVERRIDE;
// [INHERITED] perform actions on document / pages
QImage image( Okular::PixmapRequest *request );
QImage image( Okular::PixmapRequest *request ) Q_DECL_OVERRIDE;
// [INHERITED] text exporting
Okular::ExportFormat::List exportFormats() const;
bool exportTo( const QString &fileName, const Okular::ExportFormat &format );
Okular::ExportFormat::List exportFormats() const Q_DECL_OVERRIDE;
bool exportTo( const QString &fileName, const Okular::ExportFormat &format ) Q_DECL_OVERRIDE;
// [INHERITED] print document using already configured kprinter
bool print( QPrinter& printer );
bool print( QPrinter& printer ) Q_DECL_OVERRIDE;
protected:
bool doCloseDocument();
bool doCloseDocument() Q_DECL_OVERRIDE;
private:
QList<QTextDocument*> mPages;
......
......@@ -26,10 +26,10 @@ class PopplerAnnotationProxy : public Okular::AnnotationProxy
PopplerAnnotationProxy( Poppler::Document *doc, QMutex *userMutex );
~PopplerAnnotationProxy();
bool supports( Capability capability ) const;
void notifyAddition( Okular::Annotation *annotation, int page );
void notifyModification( const Okular::Annotation *annotation, int page, bool appearanceChanged );
void notifyRemoval( Okular::Annotation *annotation, int page );
bool supports( Capability capability ) const Q_DECL_OVERRIDE;
void notifyAddition( Okular::Annotation *annotation, int page ) Q_DECL_OVERRIDE;
void notifyModification( const Okular::Annotation *annotation, int page, bool appearanceChanged ) Q_DECL_OVERRIDE;
void notifyRemoval( Okular::Annotation *annotation, int page ) Q_DECL_OVERRIDE;
private:
Poppler::Document *ppl_doc;
QMutex *mutex;
......
......@@ -78,27 +78,27 @@ class PDFGenerator : public Okular::Generator, public Okular::ConfigInterface, p
bool print( QPrinter& printer ) Q_DECL_OVERRIDE;
// [INHERITED] reply to some metadata requests
QVariant metaData( const QString & key, const QVariant & option ) const;
QVariant metaData( const QString & key, const QVariant & option ) const Q_DECL_OVERRIDE;
// [INHERITED] reparse configuration
bool reparseConfig();
void addPages( KConfigDialog * );
bool reparseConfig() Q_DECL_OVERRIDE;
void addPages( KConfigDialog * ) Q_DECL_OVERRIDE;
// [INHERITED] text exporting
Okular::ExportFormat::List exportFormats() const;
bool exportTo( const QString &fileName, const Okular::ExportFormat &format );
Okular::ExportFormat::List exportFormats() const Q_DECL_OVERRIDE;
bool exportTo( const QString &fileName, const Okular::ExportFormat &format ) Q_DECL_OVERRIDE;
// [INHERITED] print interface
QWidget* printConfigurationWidget() const;
QWidget* printConfigurationWidget() const Q_DECL_OVERRIDE;
// [INHERITED] save interface
bool supportsOption( SaveOption ) const;
bool save( const QString &fileName, SaveOptions options, QString *errorText );
Okular::AnnotationProxy* annotationProxy() const;
bool supportsOption( SaveOption ) const Q_DECL_OVERRIDE;
bool save( const QString &fileName, SaveOptions options, QString *errorText ) Q_DECL_OVERRIDE;
Okular::AnnotationProxy* annotationProxy() const Q_DECL_OVERRIDE;
protected:
bool doCloseDocument();
Okular::TextPage* textPage( Okular::Page *page );
bool doCloseDocument() Q_DECL_OVERRIDE;
Okular::TextPage* textPage( Okular::Page *page ) Q_DECL_OVERRIDE;
protected slots:
void requestFontData(const Okular::FontInfo &font, QByteArray *data);
......
......@@ -24,25 +24,25 @@ class GSGenerator : public Okular::Generator, public Okular::ConfigInterface
public:
/** virtual methods to reimplement **/
// load a document and fill up the pagesVector
bool loadDocument( const QString & fileName, QVector< Okular::Page * > & pagesVector );
bool loadDocument( const QString & fileName, QVector< Okular::Page * > & pagesVector ) Q_DECL_OVERRIDE;
// Document description and Table of contents
Okular::DocumentInfo generateDocumentInfo( const QSet<Okular::DocumentInfo::Key> &keys ) const;
const Okular::DocumentSynopsis * generateDocumentSynopsis() { return 0L; }
Okular::DocumentInfo generateDocumentInfo( const QSet<Okular::DocumentInfo::Key> &keys ) const Q_DECL_OVERRIDE;
const Okular::DocumentSynopsis * generateDocumentSynopsis() Q_DECL_OVERRIDE { return 0L; }
const Okular::DocumentFonts * generateDocumentFonts() { return 0L; }
// page contents generation
bool canGeneratePixmap() const;
void generatePixmap( Okular::PixmapRequest * request );
bool canGeneratePixmap() const Q_DECL_OVERRIDE;
void generatePixmap( Okular::PixmapRequest * request ) Q_DECL_OVERRIDE;
QVariant metaData(const QString &key, const QVariant &option) const;
QVariant metaData(const QString &key, const QVariant &option) const Q_DECL_OVERRIDE;
// print document using already configured kprinter
bool print( QPrinter& /*printer*/ );
bool print( QPrinter& /*printer*/ ) Q_DECL_OVERRIDE;
QString fileName() const;
bool reparseConfig();
void addPages( KConfigDialog* dlg );
bool reparseConfig() Q_DECL_OVERRIDE;
void addPages( KConfigDialog* dlg ) Q_DECL_OVERRIDE;
/** constructor **/
GSGenerator( QObject *parent, const QVariantList &args );
......@@ -52,7 +52,7 @@ class GSGenerator : public Okular::Generator, public Okular::ConfigInterface
void slotImageGenerated(QImage *img, Okular::PixmapRequest *request);
protected:
bool doCloseDocument();
bool doCloseDocument() Q_DECL_OVERRIDE;
private:
bool loadPages( QVector< Okular::Page * > & pagesVector );
......
......@@ -31,8 +31,8 @@ class TIFFGenerator : public Okular::Generator
bool print( QPrinter& printer ) Q_DECL_OVERRIDE;
protected:
bool doCloseDocument();
QImage image( Okular::PixmapRequest * request );
bool doCloseDocument() Q_DECL_OVERRIDE;
QImage image( Okular::PixmapRequest * request ) Q_DECL_OVERRIDE;
private:
class Private;
......
......@@ -116,11 +116,11 @@ public:
bool startElement( const QString & nameSpace,
const QString & localName,
const QString & qname,
const QXmlAttributes & atts );
const QXmlAttributes & atts ) Q_DECL_OVERRIDE;
bool endElement( const QString & nameSpace,
const QString & localName,
const QString & qname );
bool startDocument();
const QString & qname ) Q_DECL_OVERRIDE;
bool startDocument() Q_DECL_OVERRIDE;
protected:
XpsPage *m_page;
......@@ -306,20 +306,20 @@ class XpsGenerator : public Okular::Generator
XpsGenerator( QObject *parent, const QVariantList &args );
virtual ~XpsGenerator();
bool loadDocument( const QString & fileName, QVector<Okular::Page*> & pagesVector );
bool loadDocument( const QString & fileName, QVector<Okular::Page*> & pagesVector ) Q_DECL_OVERRIDE;
Okular::DocumentInfo generateDocumentInfo( const QSet<Okular::DocumentInfo::Key> &keys ) const;
const Okular::DocumentSynopsis * generateDocumentSynopsis();
Okular::DocumentInfo generateDocumentInfo( const QSet<Okular::DocumentInfo::Key> &keys ) const Q_DECL_OVERRIDE;
const Okular::DocumentSynopsis * generateDocumentSynopsis() Q_DECL_OVERRIDE;
Okular::ExportFormat::List exportFormats() const;
bool exportTo( const QString &fileName, const Okular::ExportFormat &format );
Okular::ExportFormat::List exportFormats() const Q_DECL_OVERRIDE;
bool exportTo( const QString &fileName, const Okular::ExportFormat &format ) Q_DECL_OVERRIDE;
bool print( QPrinter &printer );
bool print( QPrinter &printer ) Q_DECL_OVERRIDE;
protected:
bool doCloseDocument();
QImage image( Okular::PixmapRequest *page );
Okular::TextPage* textPage( Okular::Page * page );
bool doCloseDocument() Q_DECL_OVERRIDE;
QImage image( Okular::PixmapRequest *page ) Q_DECL_OVERRIDE;
Okular::TextPage* textPage( Okular::Page * page ) Q_DECL_OVERRIDE;
private:
XpsFile *m_xpsFile;
......
......@@ -116,23 +116,23 @@ class OKULARPART_EXPORT Part : public KParts::ReadWritePart, public Okular::Docu
~Part();
// inherited from DocumentObserver
void notifySetup( const QVector< Okular::Page * > &pages, int setupFlags );
void notifyViewportChanged( bool smoothMove );
void notifyPageChanged( int page, int flags );
void notifySetup( const QVector< Okular::Page * > &pages, int setupFlags ) Q_DECL_OVERRIDE;
void notifyViewportChanged( bool smoothMove ) Q_DECL_OVERRIDE;
void notifyPageChanged( int page, int flags ) Q_DECL_OVERRIDE;
bool openDocument(const QUrl &url, uint page);
void startPresentation();
QStringList supportedMimeTypes() const;
bool openDocument(const QUrl &url, uint page) Q_DECL_OVERRIDE;
void startPresentation() Q_DECL_OVERRIDE;
QStringList supportedMimeTypes() const Q_DECL_OVERRIDE;
QUrl realUrl() const;
void showSourceLocation(const QString& fileName, int line, int column, bool showGraphically = true);
void clearLastShownSourceLocation();
bool isWatchFileModeEnabled() const;
void setWatchFileModeEnabled(bool enable);
bool areSourceLocationsShownGraphically() const;
void setShowSourceLocationsGraphically(bool show);
bool openNewFilesInTabs() const;
void showSourceLocation(const QString& fileName, int line, int column, bool showGraphically = true) Q_DECL_OVERRIDE;
void clearLastShownSourceLocation() Q_DECL_OVERRIDE;
bool isWatchFileModeEnabled() const Q_DECL_OVERRIDE;
void setWatchFileModeEnabled(bool enable) Q_DECL_OVERRIDE;
bool areSourceLocationsShownGraphically() const Q_DECL_OVERRIDE;
void setShowSourceLocationsGraphically(bool show) Q_DECL_OVERRIDE;
bool openNewFilesInTabs() const Q_DECL_OVERRIDE;
public slots: // dbus
Q_SCRIPTABLE Q_NOREPLY void goToPage(uint page);
......
......@@ -27,7 +27,7 @@ class PageFilterProxyModel : public QSortFilterProxyModel
*
* @param parent The parent object.
*/
PageFilterProxyModel( QObject *parent = Q_NULLPTR );
explicit PageFilterProxyModel( QObject *parent = Q_NULLPTR );
/**
* Reimplemented from QSortFilterProxy.
......@@ -65,18 +65,18 @@ class PageGroupProxyModel : public QAbstractProxyModel
*
* @param parent The parent object.
*/
PageGroupProxyModel( QObject *parent = Q_NULLPTR );
explicit PageGroupProxyModel( QObject *parent = Q_NULLPTR );
virtual int columnCount( const QModelIndex &parentIndex ) const;
virtual int rowCount( const QModelIndex &parentIndex ) const;
int columnCount( const QModelIndex &parentIndex ) const Q_DECL_OVERRIDE;
int rowCount( const QModelIndex &parentIndex ) const Q_DECL_OVERRIDE;
virtual QModelIndex index( int row, int column, const QModelIndex &parentIndex = QModelIndex() ) const;
virtual QModelIndex parent( const QModelIndex &index ) const;
QModelIndex index( int row, int column, const QModelIndex &parentIndex = QModelIndex() ) const Q_DECL_OVERRIDE;
QModelIndex parent( const QModelIndex &index ) const Q_DECL_OVERRIDE;
virtual QModelIndex mapFromSource( const QModelIndex &sourceIndex ) const;
virtual QModelIndex mapToSource( const QModelIndex &proxyIndex ) const;
QModelIndex mapFromSource( const QModelIndex &sourceIndex ) const Q_DECL_OVERRIDE;
QModelIndex mapToSource( const QModelIndex &proxyIndex ) const Q_DECL_OVERRIDE;
virtual void setSourceModel( QAbstractItemModel *model );
void setSourceModel( QAbstractItemModel *model ) Q_DECL_OVERRIDE;
public Q_SLOTS:
/**
......@@ -107,25 +107,25 @@ class AuthorGroupProxyModel : public QAbstractProxyModel
*
* @param parent The parent object.
*/
AuthorGroupProxyModel( QObject *parent = Q_NULLPTR );
explicit AuthorGroupProxyModel( QObject *parent = Q_NULLPTR );
~AuthorGroupProxyModel();
virtual int columnCount( const QModelIndex &parentIndex ) const;
virtual int rowCount( const QModelIndex &parentIndex ) const;
int columnCount( const QModelIndex &parentIndex ) const Q_DECL_OVERRIDE;
int rowCount( const QModelIndex &parentIndex ) const Q_DECL_OVERRIDE;
virtual QModelIndex index( int row, int column, const QModelIndex &parentIndex = QModelIndex() ) const;
virtual QModelIndex parent( const QModelIndex &index ) const;
QModelIndex index( int row, int column, const QModelIndex &parentIndex = QModelIndex() ) const Q_DECL_OVERRIDE;
QModelIndex parent( const QModelIndex &index ) const Q_DECL_OVERRIDE;
virtual QModelIndex mapFromSource( const QModelIndex &sourceIndex ) const;
virtual QModelIndex mapToSource( const QModelIndex &proxyIndex ) const;
QModelIndex mapFromSource( const QModelIndex &sourceIndex ) const Q_DECL_OVERRIDE;
QModelIndex mapToSource( const QModelIndex &proxyIndex ) const Q_DECL_OVERRIDE;
virtual void setSourceModel( QAbstractItemModel *model );
void setSourceModel( QAbstractItemModel *model ) Q_DECL_OVERRIDE;
virtual QItemSelection mapSelectionToSource(const QItemSelection &selection) const;
virtual QItemSelection mapSelectionFromSource(const QItemSelection &selection) const;
QVariant data(const QModelIndex &proxyIndex, int role = Qt::DisplayRole) const;
QMap<int, QVariant> itemData(const QModelIndex &index) const;
Qt::ItemFlags flags(const QModelIndex &index) const;
QItemSelection mapSelectionToSource(const QItemSelection &selection) const Q_DECL_OVERRIDE;
QItemSelection mapSelectionFromSource(const QItemSelection &selection) const Q_DECL_OVERRIDE;
QVariant data(const QModelIndex &proxyIndex, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
QMap<int, QVariant> itemData(const QModelIndex &index) const Q_DECL_OVERRIDE;
Qt::ItemFlags flags(const QModelIndex &index) const Q_DECL_OVERRIDE;
public Q_SLOTS:
/**
......
......@@ -92,7 +92,7 @@ class SmoothPathEngine
void paint( QPainter * painter, double xScale, double yScale, const QRect & /*clipRect*/ ) Q_DECL_OVERRIDE;
// These are two alternative ways to get the resulting path. Don't call them both!
QList< Okular::Annotation* > end();
QList< Okular::Annotation* > end() Q_DECL_OVERRIDE;
SmoothPath endSmoothPath();
private:
......
......@@ -104,12 +104,12 @@ class TextAnnotationWidget
Q_OBJECT
public:
TextAnnotationWidget( Okular::Annotation * ann );
explicit TextAnnotationWidget( Okular::Annotation * ann );
virtual void applyChanges();
void applyChanges() Q_DECL_OVERRIDE;
protected:
virtual QWidget * createStyleWidget();
QWidget * createStyleWidget() Q_DECL_OVERRIDE;
private:
Okular::TextAnnotation * m_textAnn;
......@@ -124,12 +124,12 @@ class StampAnnotationWidget
Q_OBJECT
public:
StampAnnotationWidget( Okular::Annotation * ann );
explicit StampAnnotationWidget( Okular::Annotation * ann );
virtual void applyChanges();
void applyChanges() Q_DECL_OVERRIDE;
protected:
virtual QWidget * createStyleWidget();
QWidget * createStyleWidget() Q_DECL_OVERRIDE;
private:
Okular::StampAnnotation * m_stampAnn;
......@@ -142,9 +142,9 @@ class LineAnnotationWidget
Q_OBJECT
public:
LineAnnotationWidget( Okular::Annotation * ann );
explicit LineAnnotationWidget( Okular::Annotation * ann );
virtual void applyChanges();
void applyChanges() Q_DECL_OVERRIDE;
protected:
virtual QWidget * createStyleWidget();
......@@ -165,12 +165,12 @@ class HighlightAnnotationWidget
Q_OBJECT
public:
HighlightAnnotationWidget( Okular::Annotation * ann );
explicit HighlightAnnotationWidget( Okular::Annotation * ann );
virtual void applyChanges();
void applyChanges() Q_DECL_OVERRIDE;
protected:
virtual QWidget * createStyleWidget();
QWidget * createStyleWidget() Q_DECL_OVERRIDE;
private:
Okular::HighlightAnnotation * m_hlAnn;
......@@ -183,12 +183,12 @@ class GeomAnnotationWidget
Q_OBJECT
public:
GeomAnnotationWidget( Okular::Annotation * ann );
explicit GeomAnnotationWidget( Okular::Annotation * ann );
virtual void applyChanges();
void applyChanges() Q_DECL_OVERRIDE;
protected:
virtual QWidget * createStyleWidget();
QWidget * createStyleWidget() Q_DECL_OVERRIDE;
private:
Okular::GeomAnnotation * m_geomAnn;
......@@ -204,13 +204,13 @@ class FileAttachmentAnnotationWidget
Q_OBJECT
public:
FileAttachmentAnnotationWidget( Okular::Annotation * ann );
explicit FileAttachmentAnnotationWidget( Okular::Annotation * ann );
virtual void applyChanges();
void applyChanges() Q_DECL_OVERRIDE;
protected:
virtual QWidget * createStyleWidget();
virtual QWidget * createExtraWidget();
QWidget * createStyleWidget() Q_DECL_OVERRIDE;
QWidget * createExtraWidget() Q_DECL_OVERRIDE;
private:
Okular::FileAttachmentAnnotation * m_attachAnn;
......@@ -223,12 +223,12 @@ class CaretAnnotationWidget
Q_OBJECT
public:
CaretAnnotationWidget( Okular::Annotation * ann );
explicit CaretAnnotationWidget( Okular::Annotation * ann );
virtual void applyChanges();
void applyChanges() Q_DECL_OVERRIDE;
protected:
virtual QWidget * createStyleWidget();
QWidget * createStyleWidget() Q_DECL_OVERRIDE;
private:
Okular::CaretAnnotation * m_caretAnn;
......@@ -241,12 +241,12 @@ class InkAnnotationWidget
Q_OBJECT
public:
InkAnnotationWidget( Okular::Annotation * ann );
explicit InkAnnotationWidget( Okular::Annotation * ann );
virtual void applyChanges();
void applyChanges() Q_DECL_OVERRIDE;
protected:
virtual QWidget * createStyleWidget();
QWidget * createStyleWidget() Q_DECL_OVERRIDE;
private:
Okular::InkAnnotation * m_inkAnn;
......
......@@ -35,7 +35,7 @@ class BookmarkList : public QWidget, public Okular::DocumentObserver
~BookmarkList();
// inherited from DocumentObserver
void notifySetup( const QVector< Okular::Page * > & pages, int setupFlags );
void notifySetup( const QVector< Okular::Page * > & pages, int setupFlags ) Q_DECL_OVERRIDE;
private slots:
void slotFilterBookmarks( bool );
......
......@@ -33,13 +33,13 @@ class PagesEdit : public KLineEdit
public:
PagesEdit( MiniBar * parent );
void setText( const QString & );
void setText( const QString & ) Q_DECL_OVERRIDE;
protected:
void focusInEvent( QFocusEvent * e );
void focusOutEvent( QFocusEvent * e );
void mousePressEvent( QMouseEvent * e );
void wheelEvent( QWheelEvent * e );
void focusInEvent( QFocusEvent * e ) Q_DECL_OVERRIDE;
void focusOutEvent( QFocusEvent * e ) Q_DECL_OVERRIDE;
void mousePressEvent( QMouseEvent * e ) Q_DECL_OVERRIDE;
void wheelEvent( QWheelEvent * e ) Q_DECL_OVERRIDE;
private slots:
void updatePalette();
......@@ -64,7 +64,7 @@ class PageLabelEdit : public PagesEdit
Q_OBJECT
public:
PageLabelEdit( MiniBar * parent );
void setText( const QString & newText );
void setText( const QString & newText ) Q_DECL_OVERRIDE;
void setPageLabels( const QVector< Okular::Page * > & pageVector );
signals:
......@@ -94,8 +94,8 @@ class MiniBarLogic : public QObject, public Okular::DocumentObserver
int currentPage() const;
// [INHERITED] from DocumentObserver
void notifySetup( const QVector< Okular::Page * > & pages, int setupFlags );
void notifyCurrentPageChanged( int previous, int current );
void notifySetup( const QVector< Okular::Page * > & pages, int setupFlags ) Q_DECL_OVERRIDE;
void notifyCurrentPageChanged( int previous, int current ) Q_DECL_OVERRIDE;
private:
QSet<MiniBar *> m_miniBars;
......@@ -114,7 +114,7 @@ class MiniBar : public QWidget
MiniBar( QWidget *parent, MiniBarLogic * miniBarLogic );
~MiniBar();
void changeEvent( QEvent * event ) ;
void changeEvent( QEvent * event ) Q_DECL_OVERRIDE;
signals:
void gotoPage();
......@@ -154,7 +154,7 @@ class ProgressWidget : public QWidget, public Okular::DocumentObserver
~ProgressWidget();
// [INHERITED] from DocumentObserver
void notifyCurrentPageChanged( int previous, int current );
void notifyCurrentPageChanged( int previous, int current ) Q_DECL_OVERRIDE;
void slotGotoNormalizedPage( float index );
......
......@@ -150,7 +150,7 @@ class ToolBarButton : public QToolButton
void buttonDoubleClicked( int buttonID );
protected:
void mouseDoubleClickEvent( QMouseEvent * event );
void mouseDoubleClickEvent( QMouseEvent * event ) Q_DECL_OVERRIDE;
private:
int m_id;
......
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