summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2015-08-18 13:12:07 (GMT)
committerMontel Laurent <montel@kde.org>2015-08-18 13:12:07 (GMT)
commit6fab218de945c0493cf1337f5322bfa419d13ead (patch)
treea7a178b52f57419412e3d09f8e1ed15b835a0a07
parent2f95249a58091a8011c21061ca9a173f3fcf5746 (diff)
Use Q_NULLPTR
-rw-r--r--conf/dlgaccessibility.h2
-rw-r--r--conf/dlgannotations.h2
-rw-r--r--conf/dlgdebug.h2
-rw-r--r--conf/dlgeditor.h2
-rw-r--r--conf/dlgperformance.h2
-rw-r--r--conf/dlgpresentation.h2
-rw-r--r--conf/widgetannottools.h4
-rw-r--r--core/generator.h2
-rw-r--r--core/textdocumentsettings.h2
-rw-r--r--part.cpp2
-rw-r--r--ui/annotationmodel.h2
-rw-r--r--ui/annotationpopup.h2
-rw-r--r--ui/annotationproxymodels.h6
-rw-r--r--ui/annotationwidgets.h2
-rw-r--r--ui/annotwindow.cpp2
-rw-r--r--ui/bookmarklist.h2
-rw-r--r--ui/fileprinterpreview.h2
-rw-r--r--ui/findbar.h2
-rw-r--r--ui/formwidgets.h18
-rw-r--r--ui/ktreeviewsearchline.h4
-rw-r--r--ui/magnifierview.h2
-rw-r--r--ui/pageitemdelegate.h2
-rw-r--r--ui/presentationsearchbar.cpp2
-rw-r--r--ui/presentationsearchbar.h2
-rw-r--r--ui/presentationwidget.cpp2
-rw-r--r--ui/propertiesdialog.h2
-rw-r--r--ui/side_reviews.cpp2
-rw-r--r--ui/sidebar.cpp4
-rw-r--r--ui/sidebar.h2
-rw-r--r--ui/snapshottaker.h2
-rw-r--r--ui/tocmodel.h2
-rw-r--r--ui/toolaction.h2
-rw-r--r--ui/tts.h2
-rw-r--r--ui/videowidget.h2
34 files changed, 47 insertions, 47 deletions
diff --git a/conf/dlgaccessibility.h b/conf/dlgaccessibility.h
index 158022d..602bb69 100644
--- a/conf/dlgaccessibility.h
+++ b/conf/dlgaccessibility.h
@@ -20,7 +20,7 @@ class DlgAccessibility : public QWidget
Q_OBJECT
public:
- explicit DlgAccessibility( QWidget * parent = 0 );
+ explicit DlgAccessibility( QWidget * parent = Q_NULLPTR );
~DlgAccessibility();
private slots:
diff --git a/conf/dlgannotations.h b/conf/dlgannotations.h
index 193bcbf..d0f691f 100644
--- a/conf/dlgannotations.h
+++ b/conf/dlgannotations.h
@@ -16,7 +16,7 @@
class DlgAnnotations : public QWidget
{
public:
- explicit DlgAnnotations( QWidget * parent = 0 );
+ explicit DlgAnnotations( QWidget * parent = Q_NULLPTR );
};
#endif
diff --git a/conf/dlgdebug.h b/conf/dlgdebug.h
index 76c5831..edc433d 100644
--- a/conf/dlgdebug.h
+++ b/conf/dlgdebug.h
@@ -15,7 +15,7 @@
class DlgDebug : public QWidget
{
public:
- explicit DlgDebug( QWidget * parent = 0 );
+ explicit DlgDebug( QWidget * parent = Q_NULLPTR );
};
#endif
diff --git a/conf/dlgeditor.h b/conf/dlgeditor.h
index 21046b8..d73c978 100644
--- a/conf/dlgeditor.h
+++ b/conf/dlgeditor.h
@@ -20,7 +20,7 @@ class DlgEditor : public QWidget
Q_OBJECT
public:
- explicit DlgEditor( QWidget * parent = 0 );
+ explicit DlgEditor( QWidget * parent = Q_NULLPTR );
virtual ~DlgEditor();
private slots:
diff --git a/conf/dlgperformance.h b/conf/dlgperformance.h
index 0340344..27dfc3a 100644
--- a/conf/dlgperformance.h
+++ b/conf/dlgperformance.h
@@ -19,7 +19,7 @@ class DlgPerformance : public QWidget
Q_OBJECT
public:
- explicit DlgPerformance( QWidget * parent = 0 );
+ explicit DlgPerformance( QWidget * parent = Q_NULLPTR );
virtual ~DlgPerformance();
protected slots:
diff --git a/conf/dlgpresentation.h b/conf/dlgpresentation.h
index 5c68873..01fdf8f 100644
--- a/conf/dlgpresentation.h
+++ b/conf/dlgpresentation.h
@@ -19,7 +19,7 @@ class DlgPresentation : public QWidget
Q_OBJECT
public:
- explicit DlgPresentation( QWidget * parent = 0 );
+ explicit DlgPresentation( QWidget * parent = Q_NULLPTR );
virtual ~DlgPresentation();
protected slots:
diff --git a/conf/widgetannottools.h b/conf/widgetannottools.h
index c1cdbc7..6e9ec1d 100644
--- a/conf/widgetannottools.h
+++ b/conf/widgetannottools.h
@@ -35,7 +35,7 @@ class WidgetAnnotTools : public QWidget
Q_PROPERTY( QStringList tools READ tools WRITE setTools NOTIFY changed USER true )
public:
- explicit WidgetAnnotTools( QWidget * parent = 0 );
+ explicit WidgetAnnotTools( QWidget * parent = Q_NULLPTR );
~WidgetAnnotTools();
QStringList tools() const;
@@ -78,7 +78,7 @@ class EditAnnotToolDialog : public QDialog
ToolStamp
};
- EditAnnotToolDialog( QWidget *parent = 0, const QDomElement &initialState = QDomElement() );
+ EditAnnotToolDialog( QWidget *parent = Q_NULLPTR, const QDomElement &initialState = QDomElement() );
~EditAnnotToolDialog();
QString name() const;
QDomDocument toolXml() const;
diff --git a/core/generator.h b/core/generator.h
index 95f3c6b..c7f2765 100644
--- a/core/generator.h
+++ b/core/generator.h
@@ -213,7 +213,7 @@ class OKULARCORE_EXPORT Generator : public QObject
/**
* Creates a new generator.
*/
- Generator(QObject* parent = 0, const QVariantList& args = QVariantList());
+ Generator(QObject* parent = Q_NULLPTR, const QVariantList& args = QVariantList());
/**
* Destroys the generator.
diff --git a/core/textdocumentsettings.h b/core/textdocumentsettings.h
index 08c3d37..f5a5879 100644
--- a/core/textdocumentsettings.h
+++ b/core/textdocumentsettings.h
@@ -82,7 +82,7 @@ class TextDocumentSettingsPrivate;
class OKULARCORE_EXPORT TextDocumentSettingsWidget : public QWidget
{
public:
- TextDocumentSettingsWidget( QWidget *parent = 0 );
+ TextDocumentSettingsWidget( QWidget *parent = Q_NULLPTR );
virtual ~TextDocumentSettingsWidget();
void addRow( const QString& labelText, QWidget *widget );
diff --git a/part.cpp b/part.cpp
index c827cbb..11ba9ca 100644
--- a/part.cpp
+++ b/part.cpp
@@ -158,7 +158,7 @@ class FileKeeper
K_PLUGIN_FACTORY(OkularPartFactory, registerPlugin<Okular::Part>();)
-static QAction* actionForExportFormat( const Okular::ExportFormat& format, QObject *parent = 0 )
+static QAction* actionForExportFormat( const Okular::ExportFormat& format, QObject *parent = Q_NULLPTR )
{
QAction *act = new QAction( format.description(), parent );
if ( !format.icon().isNull() )
diff --git a/ui/annotationmodel.h b/ui/annotationmodel.h
index 3313931..c8d0dc0 100644
--- a/ui/annotationmodel.h
+++ b/ui/annotationmodel.h
@@ -29,7 +29,7 @@ class AnnotationModel : public QAbstractItemModel
PageRole
};
- explicit AnnotationModel( Okular::Document *document, QObject *parent = 0 );
+ explicit AnnotationModel( Okular::Document *document, QObject *parent = Q_NULLPTR );
virtual ~AnnotationModel();
// reimplementations from QAbstractItemModel
diff --git a/ui/annotationpopup.h b/ui/annotationpopup.h
index 7194605..d757ba6 100644
--- a/ui/annotationpopup.h
+++ b/ui/annotationpopup.h
@@ -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 = 0 );
+ AnnotationPopup( Okular::Document *document, MenuMode mode, QWidget *parent = Q_NULLPTR );
void addAnnotation( Okular::Annotation* annotation, int pageNumber );
diff --git a/ui/annotationproxymodels.h b/ui/annotationproxymodels.h
index b9896a0..cfbba04 100644
--- a/ui/annotationproxymodels.h
+++ b/ui/annotationproxymodels.h
@@ -27,7 +27,7 @@ class PageFilterProxyModel : public QSortFilterProxyModel
*
* @param parent The parent object.
*/
- PageFilterProxyModel( QObject *parent = 0 );
+ PageFilterProxyModel( QObject *parent = Q_NULLPTR );
/**
* Reimplemented from QSortFilterProxy.
@@ -65,7 +65,7 @@ class PageGroupProxyModel : public QAbstractProxyModel
*
* @param parent The parent object.
*/
- PageGroupProxyModel( QObject *parent = 0 );
+ PageGroupProxyModel( QObject *parent = Q_NULLPTR );
virtual int columnCount( const QModelIndex &parentIndex ) const;
virtual int rowCount( const QModelIndex &parentIndex ) const;
@@ -107,7 +107,7 @@ class AuthorGroupProxyModel : public QAbstractProxyModel
*
* @param parent The parent object.
*/
- AuthorGroupProxyModel( QObject *parent = 0 );
+ AuthorGroupProxyModel( QObject *parent = Q_NULLPTR );
~AuthorGroupProxyModel();
virtual int columnCount( const QModelIndex &parentIndex ) const;
diff --git a/ui/annotationwidgets.h b/ui/annotationwidgets.h
index 36fa5dd..8a4f5a4 100644
--- a/ui/annotationwidgets.h
+++ b/ui/annotationwidgets.h
@@ -30,7 +30,7 @@ class PixmapPreviewSelector
Q_OBJECT
public:
- explicit PixmapPreviewSelector( QWidget * parent = 0 );
+ explicit PixmapPreviewSelector( QWidget * parent = Q_NULLPTR );
virtual ~PixmapPreviewSelector();
void setIcon( const QString& icon );
diff --git a/ui/annotwindow.cpp b/ui/annotwindow.cpp
index cdb48e2..59ebfeb 100644
--- a/ui/annotwindow.cpp
+++ b/ui/annotwindow.cpp
@@ -41,7 +41,7 @@ class CloseButton
: public QPushButton
{
public:
- CloseButton( QWidget * parent = 0 )
+ CloseButton( QWidget * parent = Q_NULLPTR )
: QPushButton( parent )
{
setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed );
diff --git a/ui/bookmarklist.h b/ui/bookmarklist.h
index 988fff0..e890820 100644
--- a/ui/bookmarklist.h
+++ b/ui/bookmarklist.h
@@ -31,7 +31,7 @@ class BookmarkList : public QWidget, public Okular::DocumentObserver
Q_OBJECT
public:
- explicit BookmarkList( Okular::Document *document, QWidget *parent = 0 );
+ explicit BookmarkList( Okular::Document *document, QWidget *parent = Q_NULLPTR );
~BookmarkList();
// inherited from DocumentObserver
diff --git a/ui/fileprinterpreview.h b/ui/fileprinterpreview.h
index 539d612..cca420d 100644
--- a/ui/fileprinterpreview.h
+++ b/ui/fileprinterpreview.h
@@ -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 = 0 );
+ explicit FilePrinterPreview( const QString &filename, QWidget *parent = Q_NULLPTR );
virtual ~FilePrinterPreview();
QSize sizeHint() const Q_DECL_OVERRIDE;
diff --git a/ui/findbar.h b/ui/findbar.h
index 1166628..cc3abb5 100644
--- a/ui/findbar.h
+++ b/ui/findbar.h
@@ -25,7 +25,7 @@ class FindBar
Q_OBJECT
public:
- explicit FindBar( Okular::Document * document, QWidget * parent = 0 );
+ explicit FindBar( Okular::Document * document, QWidget * parent = Q_NULLPTR );
virtual ~FindBar();
QString text() const;
diff --git a/ui/formwidgets.h b/ui/formwidgets.h
index 9b5d455..6cffeee 100644
--- a/ui/formwidgets.h
+++ b/ui/formwidgets.h
@@ -132,7 +132,7 @@ class FormWidgetsController : public QObject
class FormWidgetFactory
{
public:
- static FormWidgetIface * createWidget( Okular::FormField * ff, QWidget * parent = 0 );
+ static FormWidgetIface * createWidget( Okular::FormField * ff, QWidget * parent = Q_NULLPTR );
};
@@ -170,7 +170,7 @@ class PushButtonEdit : public QPushButton, public FormWidgetIface
Q_OBJECT
public:
- explicit PushButtonEdit( Okular::FormFieldButton * button, QWidget * parent = 0 );
+ explicit PushButtonEdit( Okular::FormFieldButton * button, QWidget * parent = Q_NULLPTR );
private slots:
void slotClicked();
@@ -184,7 +184,7 @@ class CheckBoxEdit : public QCheckBox, public FormWidgetIface
Q_OBJECT
public:
- explicit CheckBoxEdit( Okular::FormFieldButton * button, QWidget * parent = 0 );
+ explicit CheckBoxEdit( Okular::FormFieldButton * button, QWidget * parent = Q_NULLPTR );
// reimplemented from FormWidgetIface
void setFormWidgetsController( FormWidgetsController *controller );
@@ -202,7 +202,7 @@ class RadioButtonEdit : public QRadioButton, public FormWidgetIface
Q_OBJECT
public:
- explicit RadioButtonEdit( Okular::FormFieldButton * button, QWidget * parent = 0 );
+ explicit RadioButtonEdit( Okular::FormFieldButton * button, QWidget * parent = Q_NULLPTR );
// reimplemented from FormWidgetIface
void setFormWidgetsController( FormWidgetsController *controller );
@@ -217,7 +217,7 @@ class FormLineEdit : public QLineEdit, public FormWidgetIface
Q_OBJECT
public:
- explicit FormLineEdit( Okular::FormFieldText * text, QWidget * parent = 0 );
+ explicit FormLineEdit( Okular::FormFieldText * text, QWidget * parent = Q_NULLPTR );
void setFormWidgetsController( FormWidgetsController *controller );
virtual bool event ( QEvent * e );
virtual void contextMenuEvent( QContextMenuEvent* event );
@@ -243,7 +243,7 @@ class TextAreaEdit : public KTextEdit, public FormWidgetIface
Q_OBJECT
public:
- explicit TextAreaEdit( Okular::FormFieldText * text, QWidget * parent = 0 );
+ explicit TextAreaEdit( Okular::FormFieldText * text, QWidget * parent = Q_NULLPTR );
void setFormWidgetsController( FormWidgetsController *controller );
virtual bool event ( QEvent * e );
@@ -271,7 +271,7 @@ class FileEdit : public KUrlRequester, public FormWidgetIface
Q_OBJECT
public:
- explicit FileEdit( Okular::FormFieldText * text, QWidget * parent = 0 );
+ explicit FileEdit( Okular::FormFieldText * text, QWidget * parent = Q_NULLPTR );
void setFormWidgetsController( FormWidgetsController *controller );
protected:
@@ -297,7 +297,7 @@ class ListEdit : public QListWidget, public FormWidgetIface
Q_OBJECT
public:
- explicit ListEdit( Okular::FormFieldChoice * choice, QWidget * parent = 0 );
+ explicit ListEdit( Okular::FormFieldChoice * choice, QWidget * parent = Q_NULLPTR );
void setFormWidgetsController( FormWidgetsController *controller );
private slots:
@@ -316,7 +316,7 @@ class ComboEdit : public QComboBox, public FormWidgetIface
Q_OBJECT
public:
- explicit ComboEdit( Okular::FormFieldChoice * choice, QWidget * parent = 0 );
+ explicit ComboEdit( Okular::FormFieldChoice * choice, QWidget * parent = Q_NULLPTR );
void setFormWidgetsController( FormWidgetsController *controller );
virtual bool event ( QEvent * e );
virtual void contextMenuEvent( QContextMenuEvent* event );
diff --git a/ui/ktreeviewsearchline.h b/ui/ktreeviewsearchline.h
index fbf9f21..bbb372d 100644
--- a/ui/ktreeviewsearchline.h
+++ b/ui/ktreeviewsearchline.h
@@ -51,7 +51,7 @@ class KTreeViewSearchLine : public KLineEdit
* If \a treeView is null then the widget will be disabled until listviews
* are set with setTreeView(), setTreeViews() or added with addTreeView().
*/
- explicit KTreeViewSearchLine( QWidget *parent = 0, QTreeView *treeView = 0 );
+ explicit KTreeViewSearchLine( QWidget *parent = Q_NULLPTR, QTreeView *treeView = 0 );
/**
* Constructs a KTreeViewSearchLine with \a treeViews being the list of
@@ -297,7 +297,7 @@ class KTreeViewSearchLineWidget : public QWidget
* Creates a KTreeViewSearchLineWidget for \a treeView with \a parent as the
* parent.
*/
- explicit KTreeViewSearchLineWidget( QWidget *parent = 0, QTreeView *treeView = 0 );
+ explicit KTreeViewSearchLineWidget( QWidget *parent = Q_NULLPTR, QTreeView *treeView = 0 );
/**
* Destroys the KTreeViewSearchLineWidget
diff --git a/ui/magnifierview.h b/ui/magnifierview.h
index 49fb0ac..fd9e568 100644
--- a/ui/magnifierview.h
+++ b/ui/magnifierview.h
@@ -29,7 +29,7 @@ class MagnifierView : public QWidget, public Okular::DocumentObserver
Q_OBJECT
public:
- MagnifierView( Okular::Document *document, QWidget *parent = 0 );
+ MagnifierView( Okular::Document *document, QWidget *parent = Q_NULLPTR );
~MagnifierView();
void notifySetup( const QVector< Okular::Page * > & pages, int setupFlags ) Q_DECL_OVERRIDE;
diff --git a/ui/pageitemdelegate.h b/ui/pageitemdelegate.h
index 86d3089..99e5b30 100644
--- a/ui/pageitemdelegate.h
+++ b/ui/pageitemdelegate.h
@@ -17,7 +17,7 @@ class PageItemDelegate : public QItemDelegate
Q_OBJECT
public:
- PageItemDelegate( QObject * parent = 0 );
+ PageItemDelegate( QObject * parent = Q_NULLPTR );
virtual ~PageItemDelegate();
static const int PageRole = 0x000f0001;
diff --git a/ui/presentationsearchbar.cpp b/ui/presentationsearchbar.cpp
index 7414233..4479ea0 100644
--- a/ui/presentationsearchbar.cpp
+++ b/ui/presentationsearchbar.cpp
@@ -28,7 +28,7 @@ class HandleDrag
: public QWidget
{
public:
- HandleDrag( QWidget *parent = 0 )
+ HandleDrag( QWidget *parent = Q_NULLPTR )
: QWidget( parent )
{
setCursor( Qt::SizeAllCursor );
diff --git a/ui/presentationsearchbar.h b/ui/presentationsearchbar.h
index e5fa6fd..920e8c5 100644
--- a/ui/presentationsearchbar.h
+++ b/ui/presentationsearchbar.h
@@ -24,7 +24,7 @@ class PresentationSearchBar
Q_OBJECT
public:
- PresentationSearchBar( Okular::Document *document, QWidget *anchor, QWidget *parent = 0 );
+ PresentationSearchBar( Okular::Document *document, QWidget *anchor, QWidget *parent = Q_NULLPTR );
virtual ~PresentationSearchBar();
void forceSnap();
diff --git a/ui/presentationwidget.cpp b/ui/presentationwidget.cpp
index 257dcb0..4b90849 100644
--- a/ui/presentationwidget.cpp
+++ b/ui/presentationwidget.cpp
@@ -112,7 +112,7 @@ struct PresentationFrame
class PresentationToolBar : public QToolBar
{
public:
- PresentationToolBar( QWidget * parent = 0 )
+ PresentationToolBar( QWidget * parent = Q_NULLPTR )
: QToolBar( parent )
{}
diff --git a/ui/propertiesdialog.h b/ui/propertiesdialog.h
index eecb80b..fe5efdd 100644
--- a/ui/propertiesdialog.h
+++ b/ui/propertiesdialog.h
@@ -56,7 +56,7 @@ class FontsListModel
Q_OBJECT
public:
- FontsListModel( QObject * parent = 0 );
+ FontsListModel( QObject * parent = Q_NULLPTR );
virtual ~FontsListModel();
// reimplementations from QAbstractTableModel
diff --git a/ui/side_reviews.cpp b/ui/side_reviews.cpp
index a3e3e2b..4290aa4 100644
--- a/ui/side_reviews.cpp
+++ b/ui/side_reviews.cpp
@@ -38,7 +38,7 @@
class TreeView : public QTreeView
{
public:
- TreeView( Okular::Document *document, QWidget *parent = 0 )
+ TreeView( Okular::Document *document, QWidget *parent = Q_NULLPTR )
: QTreeView( parent ), m_document( document )
{
}
diff --git a/ui/sidebar.cpp b/ui/sidebar.cpp
index 4601efe..d70b509 100644
--- a/ui/sidebar.cpp
+++ b/ui/sidebar.cpp
@@ -71,7 +71,7 @@ class SidebarItem : public QListWidgetItem
class SidebarDelegate : public QAbstractItemDelegate
{
public:
- SidebarDelegate( QObject *parent = 0 );
+ SidebarDelegate( QObject *parent = Q_NULLPTR );
~SidebarDelegate();
void setShowText( bool show );
@@ -210,7 +210,7 @@ QSize SidebarDelegate::sizeHint( const QStyleOptionViewItem &option, const QMode
class SidebarListWidget : public QListWidget
{
public:
- SidebarListWidget( QWidget *parent = 0 );
+ SidebarListWidget( QWidget *parent = Q_NULLPTR );
~SidebarListWidget();
protected:
diff --git a/ui/sidebar.h b/ui/sidebar.h
index 135b6e8..f99bf5d 100644
--- a/ui/sidebar.h
+++ b/ui/sidebar.h
@@ -19,7 +19,7 @@ class Sidebar : public QWidget
{
Q_OBJECT
public:
- Sidebar( QWidget *parent = 0 );
+ Sidebar( QWidget *parent = Q_NULLPTR );
~Sidebar();
int addItem( QWidget *widget, const QIcon &icon, const QString &text );
diff --git a/ui/snapshottaker.h b/ui/snapshottaker.h
index e34c3e0..237979e 100644
--- a/ui/snapshottaker.h
+++ b/ui/snapshottaker.h
@@ -21,7 +21,7 @@ class SnapshotTaker : public QObject
Q_OBJECT
public:
- SnapshotTaker( const QString &url, QObject *parent = 0 );
+ SnapshotTaker( const QString &url, QObject *parent = Q_NULLPTR );
~SnapshotTaker();
Q_SIGNALS:
diff --git a/ui/tocmodel.h b/ui/tocmodel.h
index 8bc14f6..ce64743 100644
--- a/ui/tocmodel.h
+++ b/ui/tocmodel.h
@@ -26,7 +26,7 @@ class TOCModel : public QAbstractItemModel
Q_OBJECT
public:
- explicit TOCModel( Okular::Document *document, QObject *parent = 0 );
+ explicit TOCModel( Okular::Document *document, QObject *parent = Q_NULLPTR );
virtual ~TOCModel();
// reimplementations from QAbstractItemModel
diff --git a/ui/toolaction.h b/ui/toolaction.h
index 092961b..65c8f31 100644
--- a/ui/toolaction.h
+++ b/ui/toolaction.h
@@ -22,7 +22,7 @@ class ToolAction : public KSelectAction
Q_OBJECT
public:
- ToolAction( QObject *parent = 0 );
+ ToolAction( QObject *parent = Q_NULLPTR );
virtual ~ToolAction();
void addAction( QAction *action );
diff --git a/ui/tts.h b/ui/tts.h
index 8c0fdf6..3c22e12 100644
--- a/ui/tts.h
+++ b/ui/tts.h
@@ -17,7 +17,7 @@ class OkularTTS : public QObject
{
Q_OBJECT
public:
- OkularTTS( QObject *parent = 0 );
+ OkularTTS( QObject *parent = Q_NULLPTR );
~OkularTTS();
void say( const QString &text );
diff --git a/ui/videowidget.h b/ui/videowidget.h
index 2d035d6..c04416c 100644
--- a/ui/videowidget.h
+++ b/ui/videowidget.h
@@ -23,7 +23,7 @@ class VideoWidget : public QWidget
{
Q_OBJECT
public:
- VideoWidget( const Okular::Annotation *annot, Okular::Movie *movie, Okular::Document *document, QWidget *parent = 0 );
+ VideoWidget( const Okular::Annotation *annot, Okular::Movie *movie, Okular::Document *document, QWidget *parent = Q_NULLPTR );
~VideoWidget();
void setNormGeometry( const Okular::NormalizedRect &rect );