mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
use nullptr here
This commit is contained in:
parent
05b3f2eeec
commit
c6ad2708d4
@ -53,7 +53,7 @@ class FALKON_EXPORT AdBlockManager : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
AdBlockManager(QObject* parent = 0);
|
||||
AdBlockManager(QObject* parent = nullptr);
|
||||
~AdBlockManager();
|
||||
|
||||
void load();
|
||||
|
@ -28,7 +28,7 @@ class FALKON_EXPORT AutoSaver : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit AutoSaver(QObject* parent = 0);
|
||||
explicit AutoSaver(QObject* parent = nullptr);
|
||||
|
||||
// Emits save() if timer is running. Call this from destructor.
|
||||
void saveIfNecessary();
|
||||
|
@ -48,7 +48,7 @@ class FALKON_EXPORT AutoFill : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit AutoFill(QObject* parent = 0);
|
||||
explicit AutoFill(QObject* parent = nullptr);
|
||||
|
||||
PasswordManager* passwordManager() const;
|
||||
void loadSettings();
|
||||
|
@ -29,7 +29,7 @@ class FALKON_EXPORT BookmarksExporter : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit BookmarksExporter(QObject* parent = 0);
|
||||
explicit BookmarksExporter(QObject* parent = nullptr);
|
||||
virtual ~BookmarksExporter();
|
||||
|
||||
bool error() const;
|
||||
|
@ -27,7 +27,7 @@ class BookmarkItem;
|
||||
class HtmlExporter : public BookmarksExporter
|
||||
{
|
||||
public:
|
||||
explicit HtmlExporter(QObject* parent = 0);
|
||||
explicit HtmlExporter(QObject* parent = nullptr);
|
||||
|
||||
QString name() const override;
|
||||
QString getPath(QWidget* parent) override;
|
||||
|
@ -31,7 +31,7 @@ class FALKON_EXPORT BookmarksImporter : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit BookmarksImporter(QObject* parent = 0);
|
||||
explicit BookmarksImporter(QObject* parent = nullptr);
|
||||
virtual ~BookmarksImporter();
|
||||
|
||||
bool error() const;
|
||||
|
@ -26,7 +26,7 @@
|
||||
class FALKON_EXPORT ChromeImporter : public BookmarksImporter
|
||||
{
|
||||
public:
|
||||
explicit ChromeImporter(QObject* parent = 0);
|
||||
explicit ChromeImporter(QObject* parent = nullptr);
|
||||
|
||||
QString description() const override;
|
||||
QString standardPath() const override;
|
||||
|
@ -26,7 +26,7 @@
|
||||
class FALKON_EXPORT FirefoxImporter : public BookmarksImporter
|
||||
{
|
||||
public:
|
||||
explicit FirefoxImporter(QObject* parent = 0);
|
||||
explicit FirefoxImporter(QObject* parent = nullptr);
|
||||
~FirefoxImporter();
|
||||
|
||||
QString description() const override;
|
||||
|
@ -25,7 +25,7 @@
|
||||
class FALKON_EXPORT HtmlImporter : public BookmarksImporter
|
||||
{
|
||||
public:
|
||||
explicit HtmlImporter(QObject* parent = 0);
|
||||
explicit HtmlImporter(QObject* parent = nullptr);
|
||||
|
||||
QString description() const override;
|
||||
QString standardPath() const override;
|
||||
|
@ -25,7 +25,7 @@
|
||||
class IeImporter : public BookmarksImporter
|
||||
{
|
||||
public:
|
||||
explicit IeImporter(QObject* parent = 0);
|
||||
explicit IeImporter(QObject* parent = nullptr);
|
||||
|
||||
QString description() const override;
|
||||
QString standardPath() const override;
|
||||
|
@ -26,7 +26,7 @@
|
||||
class FALKON_EXPORT OperaImporter : public BookmarksImporter
|
||||
{
|
||||
public:
|
||||
explicit OperaImporter(QObject* parent = 0);
|
||||
explicit OperaImporter(QObject* parent = nullptr);
|
||||
|
||||
QString description() const override;
|
||||
QString standardPath() const override;
|
||||
|
@ -48,7 +48,7 @@ public:
|
||||
MaxRole = SidebarExpandedRole
|
||||
};
|
||||
|
||||
explicit BookmarksModel(BookmarkItem* root, Bookmarks* bookmarks, QObject* parent = 0);
|
||||
explicit BookmarksModel(BookmarkItem* root, Bookmarks* bookmarks, QObject* parent = nullptr);
|
||||
|
||||
void addBookmark(BookmarkItem* parent, int row, BookmarkItem* item);
|
||||
void removeBookmark(BookmarkItem* item);
|
||||
|
@ -32,7 +32,7 @@ class FALKON_EXPORT CookieJar : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit CookieJar(QObject* parent = 0);
|
||||
explicit CookieJar(QObject* parent = nullptr);
|
||||
~CookieJar();
|
||||
|
||||
void loadSettings();
|
||||
|
@ -36,7 +36,7 @@ class FALKON_EXPORT LocationCompleter : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit LocationCompleter(QObject* parent = 0);
|
||||
explicit LocationCompleter(QObject* parent = nullptr);
|
||||
|
||||
void setMainWindow(BrowserWindow* window);
|
||||
void setLocationBar(LocationBar* locationBar);
|
||||
|
@ -44,7 +44,7 @@ public:
|
||||
SearchSuggestionRole
|
||||
};
|
||||
|
||||
explicit LocationCompleterModel(QObject* parent = 0);
|
||||
explicit LocationCompleterModel(QObject* parent = nullptr);
|
||||
|
||||
void setCompletions(const QList<QStandardItem*> &items);
|
||||
void addCompletions(const QList<QStandardItem*> &items);
|
||||
|
@ -37,7 +37,7 @@ class FALKON_EXPORT DesktopNotificationsFactory : public QObject
|
||||
public:
|
||||
enum Type { DesktopNative, PopupWidget };
|
||||
|
||||
explicit DesktopNotificationsFactory(QObject* parent = 0);
|
||||
explicit DesktopNotificationsFactory(QObject* parent = nullptr);
|
||||
|
||||
void loadSettings();
|
||||
|
||||
|
@ -74,7 +74,7 @@ public:
|
||||
Q_PROPERTY(bool valid READ isValid)
|
||||
Q_PROPERTY(QNetworkAccessManager* networkAccessManager READ networkAccessManager WRITE setNetworkAccessManager)
|
||||
|
||||
OpenSearchEngine(QObject* parent = 0);
|
||||
OpenSearchEngine(QObject* parent = nullptr);
|
||||
~OpenSearchEngine();
|
||||
|
||||
QString name() const;
|
||||
|
@ -35,7 +35,7 @@ class FALKON_EXPORT SearchEnginesManager : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit SearchEnginesManager(QObject* parent = 0);
|
||||
explicit SearchEnginesManager(QObject* parent = nullptr);
|
||||
|
||||
struct Engine {
|
||||
QString name;
|
||||
|
@ -31,7 +31,7 @@ class FALKON_EXPORT Updater : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit Updater(BrowserWindow* window, QObject* parent = 0);
|
||||
explicit Updater(BrowserWindow* window, QObject* parent = nullptr);
|
||||
|
||||
struct FALKON_EXPORT Version {
|
||||
bool isValid;
|
||||
|
@ -30,7 +30,7 @@ class FALKON_EXPORT UserAgentManager : QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit UserAgentManager(QObject* parent = 0);
|
||||
explicit UserAgentManager(QObject* parent = nullptr);
|
||||
|
||||
void loadSettings();
|
||||
|
||||
|
@ -78,7 +78,7 @@ public:
|
||||
bool operator==(const Plugin &other) const;
|
||||
};
|
||||
|
||||
explicit Plugins(QObject* parent = 0);
|
||||
explicit Plugins(QObject* parent = nullptr);
|
||||
|
||||
QList<Plugin> availablePlugins();
|
||||
|
||||
|
@ -48,7 +48,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
explicit SpeedDial(QObject* parent = 0);
|
||||
explicit SpeedDial(QObject* parent = nullptr);
|
||||
~SpeedDial();
|
||||
|
||||
void loadSettings();
|
||||
|
@ -36,7 +36,7 @@ class FALKON_EXPORT AesInterface : public QObject
|
||||
public:
|
||||
static const int VERSION;
|
||||
|
||||
explicit AesInterface(QObject* parent = 0);
|
||||
explicit AesInterface(QObject* parent = nullptr);
|
||||
~AesInterface();
|
||||
|
||||
bool isOk();
|
||||
|
@ -29,8 +29,8 @@ class FALKON_EXPORT DelayedFileWatcher : public QFileSystemWatcher
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit DelayedFileWatcher(QObject* parent = 0);
|
||||
explicit DelayedFileWatcher(const QStringList &paths, QObject* parent = 0);
|
||||
explicit DelayedFileWatcher(QObject* parent = nullptr);
|
||||
explicit DelayedFileWatcher(const QStringList &paths, QObject* parent = nullptr);
|
||||
|
||||
Q_SIGNALS:
|
||||
void delayedDirectoryChanged(const QString &path);
|
||||
|
@ -54,9 +54,9 @@ class FALKON_EXPORT Action : public QAction
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit Action(QObject* parent = 0);
|
||||
explicit Action(const QString &text, QObject* parent = 0);
|
||||
explicit Action(const QIcon &icon, const QString &text, QObject* parent = 0);
|
||||
explicit Action(QObject* parent = nullptr);
|
||||
explicit Action(const QString &text, QObject* parent = nullptr);
|
||||
explicit Action(const QIcon &icon, const QString &text, QObject* parent = nullptr);
|
||||
|
||||
Q_SIGNALS:
|
||||
void ctrlTriggered();
|
||||
|
@ -32,7 +32,7 @@ class FALKON_EXPORT PageThumbnailer : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit PageThumbnailer(QObject* parent = 0);
|
||||
explicit PageThumbnailer(QObject* parent = nullptr);
|
||||
~PageThumbnailer();
|
||||
|
||||
void setSize(const QSize &size);
|
||||
|
@ -57,7 +57,7 @@ class FALKON_EXPORT SqlDatabase : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit SqlDatabase(QObject* parent = 0);
|
||||
explicit SqlDatabase(QObject* parent = nullptr);
|
||||
~SqlDatabase();
|
||||
|
||||
// Returns database connection for current thread
|
||||
|
@ -43,7 +43,7 @@ public:
|
||||
SafeJsWorld = QWebEngineScript::ApplicationWorld
|
||||
};
|
||||
|
||||
explicit WebPage(QObject* parent = 0);
|
||||
explicit WebPage(QObject* parent = nullptr);
|
||||
~WebPage();
|
||||
|
||||
WebView *view() const;
|
||||
|
Loading…
Reference in New Issue
Block a user