Commit ba459ba6 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use nullptr here too

parent d6c4035f
Pipeline #192446 passed with stage
in 2 minutes and 12 seconds
......@@ -92,7 +92,7 @@ public:
SelectAll = 8
};
LineEdit(QWidget* parent = 0);
LineEdit(QWidget* parent = nullptr);
void addWidget(QWidget* widget, WidgetPosition position);
void removeWidget(QWidget* widget);
......@@ -152,7 +152,7 @@ Q_SIGNALS:
void sizeHintChanged();
public:
SideWidget(QWidget* parent = 0);
SideWidget(QWidget* parent = nullptr);
protected:
bool event(QEvent* event) override;
......
......@@ -42,7 +42,7 @@ class FALKON_EXPORT SqueezeLabelV1 : public QLabel
Q_OBJECT
public:
SqueezeLabelV1(QWidget* parent = 0);
SqueezeLabelV1(QWidget* parent = nullptr);
protected:
void paintEvent(QPaintEvent* event) override;
......
......@@ -33,7 +33,7 @@ class FALKON_EXPORT AdBlockAddSubscriptionDialog : public QDialog
Q_OBJECT
public:
explicit AdBlockAddSubscriptionDialog(QWidget* parent = 0);
explicit AdBlockAddSubscriptionDialog(QWidget* parent = nullptr);
~AdBlockAddSubscriptionDialog();
QString title() const;
......
......@@ -28,7 +28,7 @@ class FALKON_EXPORT AdBlockTreeWidget : public TreeWidget
{
Q_OBJECT
public:
explicit AdBlockTreeWidget(AdBlockSubscription* subscription, QWidget* parent = 0);
explicit AdBlockTreeWidget(AdBlockSubscription* subscription, QWidget* parent = nullptr);
AdBlockSubscription* subscription() const;
......
......@@ -36,7 +36,7 @@ class FALKON_EXPORT MainMenu : public QMenu
Q_OBJECT
public:
explicit MainMenu(BrowserWindow* window, QWidget* parent = 0);
explicit MainMenu(BrowserWindow* window, QWidget* parent = nullptr);
void initMenuBar(QMenuBar* menuBar) const;
......
......@@ -101,7 +101,7 @@ class MasterPasswordDialog : public QDialog
Q_OBJECT
public:
explicit MasterPasswordDialog(DatabaseEncryptedPasswordBackend* backend, QWidget* parent = 0);
explicit MasterPasswordDialog(DatabaseEncryptedPasswordBackend* backend, QWidget* parent = nullptr);
~MasterPasswordDialog();
void delayedExec();
......@@ -128,7 +128,7 @@ class AskMasterPassword : public QDialog
Q_OBJECT
public:
explicit AskMasterPassword(DatabaseEncryptedPasswordBackend* backend, QWidget* parent = 0);
explicit AskMasterPassword(DatabaseEncryptedPasswordBackend* backend, QWidget* parent = nullptr);
private Q_SLOTS:
void verifyPassword();
......
......@@ -34,7 +34,7 @@ class FALKON_EXPORT BookmarksExportDialog : public QDialog
Q_OBJECT
public:
explicit BookmarksExportDialog(QWidget* parent = 0);
explicit BookmarksExportDialog(QWidget* parent = nullptr);
~BookmarksExportDialog();
private Q_SLOTS:
......
......@@ -30,7 +30,7 @@ class FALKON_EXPORT BookmarksIcon : public ClickableLabel
{
Q_OBJECT
public:
explicit BookmarksIcon(QWidget* parent = 0);
explicit BookmarksIcon(QWidget* parent = nullptr);
void setWebView(WebView* view);
void checkBookmark(const QUrl &url, bool forceCheck = false);
......
......@@ -36,7 +36,7 @@ class FALKON_EXPORT BookmarksImportDialog : public QDialog
Q_OBJECT
public:
explicit BookmarksImportDialog(QWidget* parent = 0);
explicit BookmarksImportDialog(QWidget* parent = nullptr);
~BookmarksImportDialog();
private Q_SLOTS:
......
......@@ -39,7 +39,7 @@ class FALKON_EXPORT BookmarksManager : public QWidget
Q_OBJECT
public:
explicit BookmarksManager(BrowserWindow* window, QWidget* parent = 0);
explicit BookmarksManager(BrowserWindow* window, QWidget* parent = nullptr);
~BookmarksManager();
void setMainWindow(BrowserWindow* window);
......
......@@ -31,7 +31,7 @@ class FALKON_EXPORT BookmarksMenu : public Menu
Q_OBJECT
public:
explicit BookmarksMenu(QWidget* parent = 0);
explicit BookmarksMenu(QWidget* parent = nullptr);
void setMainWindow(BrowserWindow* window);
......
......@@ -34,7 +34,7 @@ class FALKON_EXPORT BookmarksToolbar : public QWidget
{
Q_OBJECT
public:
explicit BookmarksToolbar(BrowserWindow* window, QWidget* parent = 0);
explicit BookmarksToolbar(BrowserWindow* window, QWidget* parent = nullptr);
private Q_SLOTS:
void contextMenuRequested(const QPoint &pos);
......
......@@ -31,7 +31,7 @@ class FALKON_EXPORT BookmarksToolbarButton : public QPushButton
Q_OBJECT
public:
explicit BookmarksToolbarButton(BookmarkItem* bookmark, QWidget* parent = 0);
explicit BookmarksToolbarButton(BookmarkItem* bookmark, QWidget* parent = nullptr);
BookmarkItem* bookmark() const;
void setMainWindow(BrowserWindow* window);
......
......@@ -31,7 +31,7 @@ class FALKON_EXPORT BookmarksFoldersMenu : public QMenu
Q_OBJECT
public:
explicit BookmarksFoldersMenu(QWidget* parent = 0);
explicit BookmarksFoldersMenu(QWidget* parent = nullptr);
BookmarkItem* selectedFolder() const;
......
......@@ -37,7 +37,7 @@ public:
BookmarksSidebarViewType
};
explicit BookmarksTreeView(QWidget* parent = 0);
explicit BookmarksTreeView(QWidget* parent = nullptr);
ViewType viewType() const;
void setViewType(ViewType type);
......
......@@ -37,7 +37,7 @@ class FALKON_EXPORT BookmarksWidget : public LocationBarPopup
{
Q_OBJECT
public:
explicit BookmarksWidget(WebView* view, BookmarkItem* bookmark, QWidget* parent = 0);
explicit BookmarksWidget(WebView* view, BookmarkItem* bookmark, QWidget* parent = nullptr);
~BookmarksWidget();
private Q_SLOTS:
......
......@@ -59,7 +59,7 @@ public:
}
};
explicit DownloadManager(QWidget* parent = 0);
explicit DownloadManager(QWidget* parent = nullptr);
~DownloadManager();
void loadSettings();
......
......@@ -36,7 +36,7 @@ class FALKON_EXPORT DownloadOptionsDialog : public QDialog
Q_OBJECT
public:
explicit DownloadOptionsDialog(const QString &fileName, QWebEngineDownloadItem *downloadItem, QWidget* parent = 0);
explicit DownloadOptionsDialog(const QString &fileName, QWebEngineDownloadItem *downloadItem, QWidget* parent = nullptr);
~DownloadOptionsDialog();
void showExternalManagerOption(bool show);
......
......@@ -38,7 +38,7 @@ class FALKON_EXPORT HistoryManager : public QWidget
Q_OBJECT
public:
explicit HistoryManager(BrowserWindow* window, QWidget* parent = 0);
explicit HistoryManager(BrowserWindow* window, QWidget* parent = nullptr);
~HistoryManager();
void setMainWindow(BrowserWindow* window);
......
......@@ -30,7 +30,7 @@ class FALKON_EXPORT HistoryMenu : public Menu
Q_OBJECT
public:
explicit HistoryMenu(QWidget* parent = 0);
explicit HistoryMenu(QWidget* parent = nullptr);
void setMainWindow(BrowserWindow* window);
......
Supports Markdown
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