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

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;
......
......@@ -25,7 +25,7 @@ class FindBar
Q_OBJECT
public:
explicit FindBar( Okular::Document * document, QWidget * parent = Q_NULLPTR );
explicit FindBar( Okular::Document * document, QWidget * parent = nullptr );
virtual ~FindBar();
QString text() const;
......
......@@ -132,7 +132,7 @@ class FormWidgetsController : public QObject
class FormWidgetFactory
{
public:
static FormWidgetIface * createWidget( Okular::FormField * ff, QWidget * parent = Q_NULLPTR );
static FormWidgetIface * createWidget( Okular::FormField * ff, QWidget * parent = nullptr );
};
......@@ -170,7 +170,7 @@ class PushButtonEdit : public QPushButton, public FormWidgetIface
Q_OBJECT
public:
explicit PushButtonEdit( Okular::FormFieldButton * button, QWidget * parent = Q_NULLPTR );
explicit PushButtonEdit( Okular::FormFieldButton * button, QWidget * parent = nullptr );
private Q_SLOTS:
void slotClicked();
......@@ -184,7 +184,7 @@ class CheckBoxEdit : public QCheckBox, public FormWidgetIface
Q_OBJECT
public:
explicit CheckBoxEdit( Okular::FormFieldButton * button, QWidget * parent = Q_NULLPTR );
explicit CheckBoxEdit( Okular::FormFieldButton * button, QWidget * parent = 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 = Q_NULLPTR );
explicit RadioButtonEdit( Okular::FormFieldButton * button, QWidget * parent = 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 = Q_NULLPTR );
explicit FormLineEdit( Okular::FormFieldText * text, QWidget * parent = 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 = Q_NULLPTR );
explicit TextAreaEdit( Okular::FormFieldText * text, QWidget * parent = 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 = Q_NULLPTR );
explicit FileEdit( Okular::FormFieldText * text, QWidget * parent = 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 = Q_NULLPTR );
explicit ListEdit( Okular::FormFieldChoice * choice, QWidget * parent = nullptr );
void setFormWidgetsController( FormWidgetsController *controller );
private Q_SLOTS:
......@@ -316,7 +316,7 @@ class ComboEdit : public QComboBox, public FormWidgetIface
Q_OBJECT
public:
explicit ComboEdit( Okular::FormFieldChoice * choice, QWidget * parent = Q_NULLPTR );
explicit ComboEdit( Okular::FormFieldChoice * choice, QWidget * parent = nullptr );
void setFormWidgetsController( FormWidgetsController *controller );
virtual bool event ( QEvent * e );
virtual void contextMenuEvent( QContextMenuEvent* event );
......
......@@ -50,7 +50,7 @@ class KTreeViewSearchLine : public KLineEdit
* If \a treeView is null then the widget will be disabled until listview
* are set with setTreeView().
*/
explicit KTreeViewSearchLine( QWidget *parent = Q_NULLPTR, QTreeView *treeView = 0 );
explicit KTreeViewSearchLine( QWidget *parent = nullptr, QTreeView *treeView = 0 );
/**
* Destroys the KTreeViewSearchLine.
......@@ -194,7 +194,7 @@ class KTreeViewSearchLineWidget : public QWidget
* Creates a KTreeViewSearchLineWidget for \a treeView with \a parent as the
* parent.
*/
explicit KTreeViewSearchLineWidget( QWidget *parent = Q_NULLPTR, QTreeView *treeView = 0 );
explicit KTreeViewSearchLineWidget( QWidget *parent = nullptr, QTreeView *treeView = 0 );
/**
* Destroys the KTreeViewSearchLineWidget
......
......@@ -29,7 +29,7 @@ class MagnifierView : public QWidget, public Okular::DocumentObserver
Q_OBJECT
public:
MagnifierView( Okular::Document *document, QWidget *parent = Q_NULLPTR );
MagnifierView( Okular::Document *document, QWidget *parent = nullptr );
~MagnifierView();
void notifySetup( const QVector< Okular::Page * > & pages, int setupFlags ) Q_DECL_OVERRIDE;
......
......@@ -17,7 +17,7 @@ class PageItemDelegate : public QItemDelegate
Q_OBJECT
public:
PageItemDelegate( QObject * parent = Q_NULLPTR );
PageItemDelegate( QObject * parent = nullptr );
virtual ~PageItemDelegate();
static const int PageRole = 0x000f0001;
......
......@@ -24,7 +24,7 @@ class PresentationSearchBar
Q_OBJECT
public:
PresentationSearchBar( Okular::Document *document, QWidget *anchor, QWidget *parent = Q_NULLPTR );
PresentationSearchBar( Okular::Document *document, QWidget *anchor, QWidget *parent = nullptr );
virtual ~PresentationSearchBar();
void forceSnap();
......
......@@ -56,7 +56,7 @@ class FontsListModel
Q_OBJECT
public:
FontsListModel( QObject * parent = Q_NULLPTR );
FontsListModel( QObject * parent = nullptr );
virtual ~FontsListModel();
// reimplementations from QAbstractTableModel
......
......@@ -19,7 +19,7 @@ class Sidebar : public QWidget
{
Q_OBJECT
public:
Sidebar( QWidget *parent = Q_NULLPTR );
Sidebar( QWidget *parent = nullptr );
~Sidebar();
int addItem( QWidget *widget, const QIcon &icon, const QString &text );
......
......@@ -21,7 +21,7 @@ class SnapshotTaker : public QObject
Q_OBJECT
public:
SnapshotTaker( const QUrl &url, QObject *parent = Q_NULLPTR );
SnapshotTaker( const QUrl &url, QObject *parent = nullptr );
~SnapshotTaker();
Q_SIGNALS:
......
......@@ -30,7 +30,7 @@ class TOCModel : public QAbstractItemModel
Q_PROPERTY(int count READ count NOTIFY countChanged)
public:
explicit TOCModel( Okular::Document *document, QObject *parent = Q_NULLPTR );
explicit TOCModel( Okular::Document *document, QObject *parent = nullptr );
virtual ~TOCModel();
// reimplementations from QAbstractItemModel
......
......@@ -22,7 +22,7 @@ class ToolAction : public KSelectAction
Q_OBJECT
public:
ToolAction( QObject *parent = Q_NULLPTR );
ToolAction( QObject *parent = nullptr );
virtual ~ToolAction();
void addAction( QAction *action );
......
......@@ -17,7 +17,7 @@ class OkularTTS : public QObject
{
Q_OBJECT
public:
OkularTTS( QObject *parent = Q_NULLPTR );
OkularTTS( QObject *parent = nullptr );
~OkularTTS();
void say( const QString &text );
......
......@@ -23,7 +23,7 @@ class VideoWidget : public QWidget
{
Q_OBJECT
public:
VideoWidget( const Okular::Annotation *annot, Okular::Movie *movie, Okular::Document *document, QWidget *parent = Q_NULLPTR );
VideoWidget( const Okular::Annotation *annot, Okular::Movie *movie, Okular::Document *document, QWidget *parent = nullptr );
~VideoWidget();
void setNormGeometry( const Okular::NormalizedRect &rect );
......
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