Commit b50aff3e authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Q_NULLPTR -> nullptr

parent 5c929b25
......@@ -16,7 +16,7 @@ class EditDrawingToolDialogTest : public QObject
{
Q_OBJECT
public:
explicit EditDrawingToolDialogTest(QObject *parent = Q_NULLPTR);
explicit EditDrawingToolDialogTest(QObject *parent = nullptr);
~EditDrawingToolDialogTest();
private Q_SLOTS:
......
......@@ -20,7 +20,7 @@ class DlgAccessibility : public QWidget
Q_OBJECT
public:
explicit DlgAccessibility( QWidget * parent = Q_NULLPTR );
explicit DlgAccessibility( QWidget * parent = nullptr );
~DlgAccessibility();
private Q_SLOTS:
......
......@@ -18,7 +18,7 @@ class DlgAnnotations : public QWidget
Q_OBJECT
public:
explicit DlgAnnotations( QWidget * parent = Q_NULLPTR );
explicit DlgAnnotations( QWidget * parent = nullptr );
};
#endif
......@@ -17,7 +17,7 @@ class DlgDebug : public QWidget
Q_OBJECT
public:
explicit DlgDebug( QWidget * parent = Q_NULLPTR );
explicit DlgDebug( QWidget * parent = nullptr );
};
#endif
......@@ -20,7 +20,7 @@ class DlgEditor : public QWidget
Q_OBJECT
public:
explicit DlgEditor( QWidget * parent = Q_NULLPTR );
explicit DlgEditor( QWidget * parent = nullptr );
virtual ~DlgEditor();
private Q_SLOTS:
......
......@@ -20,7 +20,7 @@ class DlgPerformance : public QWidget
Q_OBJECT
public:
explicit DlgPerformance( QWidget * parent = Q_NULLPTR );
explicit DlgPerformance( QWidget * parent = nullptr );
virtual ~DlgPerformance();
protected Q_SLOTS:
......
......@@ -19,7 +19,7 @@ class DlgPresentation : public QWidget
Q_OBJECT
public:
explicit DlgPresentation( QWidget * parent = Q_NULLPTR );
explicit DlgPresentation( QWidget * parent = nullptr );
virtual ~DlgPresentation();
protected Q_SLOTS:
......
......@@ -43,7 +43,7 @@ class EditAnnotToolDialog : public QDialog
ToolStamp
};
EditAnnotToolDialog( QWidget *parent = Q_NULLPTR, const QDomElement &initialState = QDomElement() );
EditAnnotToolDialog( QWidget *parent = nullptr, const QDomElement &initialState = QDomElement() );
~EditAnnotToolDialog();
QString name() const;
QDomDocument toolXml() const;
......
......@@ -22,7 +22,7 @@ class EditDrawingToolDialog : public QDialog
{
Q_OBJECT
public:
explicit EditDrawingToolDialog( const QDomElement &initialState = QDomElement(), QWidget *parent = Q_NULLPTR );
explicit EditDrawingToolDialog( const QDomElement &initialState = QDomElement(), QWidget *parent = nullptr );
~EditDrawingToolDialog();
QDomDocument toolXml() const;
......
......@@ -24,7 +24,7 @@ class WidgetAnnotTools : public WidgetConfigurationToolsBase
{
Q_OBJECT
public:
explicit WidgetAnnotTools( QWidget * parent = Q_NULLPTR );
explicit WidgetAnnotTools( QWidget * parent = nullptr );
~WidgetAnnotTools();
QStringList tools() const Q_DECL_OVERRIDE;
......
......@@ -21,7 +21,7 @@ class WidgetConfigurationToolsBase : public QWidget
Q_PROPERTY( QStringList tools READ tools WRITE setTools NOTIFY changed USER true )
public:
explicit WidgetConfigurationToolsBase( QWidget * parent = Q_NULLPTR );
explicit WidgetConfigurationToolsBase( QWidget * parent = nullptr );
~WidgetConfigurationToolsBase();
virtual QStringList tools() const = 0;
......
......@@ -17,7 +17,7 @@ class WidgetDrawingTools : public WidgetConfigurationToolsBase
{
Q_OBJECT
public:
explicit WidgetDrawingTools( QWidget * parent = Q_NULLPTR );
explicit WidgetDrawingTools( QWidget * parent = nullptr );
~WidgetDrawingTools();
QStringList tools() const Q_DECL_OVERRIDE;
......
......@@ -214,7 +214,7 @@ class OKULARCORE_EXPORT Generator : public QObject
/**
* Creates a new generator.
*/
Generator(QObject* parent = Q_NULLPTR, const QVariantList& args = QVariantList());
Generator(QObject* parent = nullptr, const QVariantList& args = QVariantList());
/**
* Destroys the generator.
......
......@@ -84,7 +84,7 @@ class OKULARCORE_EXPORT TextDocumentSettingsWidget : public QWidget
Q_OBJECT
public:
TextDocumentSettingsWidget( QWidget *parent = Q_NULLPTR );
TextDocumentSettingsWidget( QWidget *parent = nullptr );
virtual ~TextDocumentSettingsWidget();
void addRow( const QString& labelText, QWidget *widget );
......
......@@ -29,7 +29,7 @@ class AnnotationModel : public QAbstractItemModel
PageRole
};
explicit AnnotationModel( Okular::Document *document, QObject *parent = Q_NULLPTR );
explicit AnnotationModel( Okular::Document *document, QObject *parent = nullptr );
virtual ~AnnotationModel();
// reimplementations from QAbstractItemModel
......
......@@ -34,7 +34,7 @@ class AnnotationPopup : public QObject
MultiAnnotationMode ///< The menu shows entries to manipulate multiple annotations.
};
AnnotationPopup( Okular::Document *document, MenuMode mode, QWidget *parent = Q_NULLPTR );
AnnotationPopup( Okular::Document *document, MenuMode mode, QWidget *parent = nullptr );
void addAnnotation( Okular::Annotation* annotation, int pageNumber );
......
......@@ -27,7 +27,7 @@ class PageFilterProxyModel : public QSortFilterProxyModel
*
* @param parent The parent object.
*/
explicit PageFilterProxyModel( QObject *parent = Q_NULLPTR );
explicit PageFilterProxyModel( QObject *parent = nullptr );
/**
* Reimplemented from QSortFilterProxy.
......@@ -65,7 +65,7 @@ class PageGroupProxyModel : public QAbstractProxyModel
*
* @param parent The parent object.
*/
explicit PageGroupProxyModel( QObject *parent = Q_NULLPTR );
explicit PageGroupProxyModel( QObject *parent = nullptr );
int columnCount( const QModelIndex &parentIndex ) const Q_DECL_OVERRIDE;
int rowCount( const QModelIndex &parentIndex ) const Q_DECL_OVERRIDE;
......@@ -107,7 +107,7 @@ class AuthorGroupProxyModel : public QAbstractProxyModel
*
* @param parent The parent object.
*/
explicit AuthorGroupProxyModel( QObject *parent = Q_NULLPTR );
explicit AuthorGroupProxyModel( QObject *parent = nullptr );
~AuthorGroupProxyModel();
int columnCount( const QModelIndex &parentIndex ) const Q_DECL_OVERRIDE;
......
......@@ -30,7 +30,7 @@ class PixmapPreviewSelector
Q_OBJECT
public:
explicit PixmapPreviewSelector( QWidget * parent = Q_NULLPTR );
explicit PixmapPreviewSelector( QWidget * parent = nullptr );
virtual ~PixmapPreviewSelector();
void setIcon( const QString& icon );
......
......@@ -31,7 +31,7 @@ class BookmarkList : public QWidget, public Okular::DocumentObserver
Q_OBJECT
public:
explicit BookmarkList( Okular::Document *document, QWidget *parent = Q_NULLPTR );
explicit BookmarkList( Okular::Document *document, QWidget *parent = nullptr );
~BookmarkList();
// inherited from DocumentObserver
......
......@@ -32,7 +32,7 @@ public:
* @param printer file to print preview
* @param parent pointer to the parent widget for the dialog
*/
explicit FilePrinterPreview( const QString &filename, QWidget *parent = Q_NULLPTR );
explicit FilePrinterPreview( const QString &filename, QWidget *parent = nullptr );
virtual ~FilePrinterPreview();
QSize sizeHint() const Q_DECL_OVERRIDE;
......
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