1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

Clazy: fix "arguments needs to be fully qualified"

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2023-01-29 17:23:59 +01:00
parent fbe1fc81f3
commit 285346208e
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B
8 changed files with 13 additions and 13 deletions

View File

@ -598,7 +598,7 @@ void FancyTabWidget::AddBottomWidget(QWidget* widget)
top_layout_->addWidget(widget);
}
void FancyTabWidget::SetMode(Mode mode)
void FancyTabWidget::SetMode(FancyTabWidget::Mode mode)
{
// Remove previous tab bar
delete tab_bar_;

View File

@ -192,7 +192,7 @@ public:
public Q_SLOTS:
void SetCurrentIndex(int index);
void SetMode(Mode mode);
void SetMode(FancyTabWidget::Mode mode);
void SetMode(int mode) { SetMode(Mode(mode)); }
Q_SIGNALS:

View File

@ -55,7 +55,7 @@ public:
* @brief Fails the request with the error
* @param error
*/
Q_INVOKABLE void fail(Error error);
Q_INVOKABLE void fail(QmlWebEngineUrlRequestJob::Error error);
/**
* @brief Redirects the request to the url
* @param urlString, represents the url to which the request is to be redirected

View File

@ -73,7 +73,7 @@ void SessionManager::sessionsDirectoryChanged()
m_sessionsMetaDataList.clear();
}
void SessionManager::openSession(QString sessionFilePath, SessionFlags flags)
void SessionManager::openSession(QString sessionFilePath, SessionManager::SessionFlags flags)
{
if (sessionFilePath.isEmpty()) {
auto* action = qobject_cast<QAction*>(sender());
@ -112,7 +112,7 @@ void SessionManager::openSession(QString sessionFilePath, SessionFlags flags)
mApp->openSession(window, sessionData);
}
void SessionManager::renameSession(QString sessionFilePath, SessionFlags flags)
void SessionManager::renameSession(QString sessionFilePath, SessionManager::SessionFlags flags)
{
if (sessionFilePath.isEmpty()) {
auto* action = qobject_cast<QAction*>(sender());

View File

@ -66,8 +66,8 @@ public Q_SLOTS:
private Q_SLOTS:
void aboutToShowSessionsMenu();
void sessionsDirectoryChanged();
void openSession(QString sessionFilePath = QString(), SessionFlags flags = {});
void renameSession(QString sessionFilePath = QString(), SessionFlags flags = {});
void openSession(QString sessionFilePath = QString(), SessionManager::SessionFlags flags = {});
void renameSession(QString sessionFilePath = QString(), SessionManager::SessionFlags flags = {});
void saveSession();
void replaceSession(const QString &filePath);
@ -76,7 +76,7 @@ private Q_SLOTS:
void deleteSession(const QString &filePath);
void newSession();
QList<SessionMetaData> sessionMetaData(bool withBackups = true);
QList<SessionManager::SessionMetaData> sessionMetaData(bool withBackups = true);
private:
bool isActive(const QString &filePath) const;

View File

@ -82,7 +82,7 @@ Q_SIGNALS:
void iconChanged(const QIcon &icon);
void badgeTextChanged(const QString &badgeText);
void webViewChanged(WebView *view);
void clicked(ClickController *controller);
void clicked(AbstractButtonInterface::ClickController *controller);
private:
bool m_active = true;

View File

@ -79,7 +79,7 @@ public:
Q_SIGNALS:
void privacyChanged(bool status);
void printRequested();
void navigationRequestAccepted(const QUrl &url, NavigationType type, bool isMainFrame);
void navigationRequestAccepted(const QUrl &url, QWebEnginePage::NavigationType type, bool isMainFrame);
protected Q_SLOTS:
void progress(int prog);
@ -91,10 +91,10 @@ private Q_SLOTS:
void windowCloseRequested();
void fullScreenRequested(QWebEngineFullScreenRequest fullScreenRequest);
void featurePermissionRequested(const QUrl &origin, const QWebEnginePage::Feature &feature);
void renderProcessTerminated(RenderProcessTerminationStatus terminationStatus, int exitCode);
void renderProcessTerminated(QWebEnginePage::RenderProcessTerminationStatus terminationStatus, int exitCode);
private:
bool acceptNavigationRequest(const QUrl &url, NavigationType type, bool isMainFrame) override;
bool acceptNavigationRequest(const QUrl &url, QWebEnginePage::NavigationType type, bool isMainFrame) override;
bool certificateError(const QWebEngineCertificateError &error) override;
QStringList chooseFiles(FileSelectionMode mode, const QStringList &oldFiles, const QStringList &acceptedMimeTypes) override;
QWebEnginePage* createWindow(QWebEnginePage::WebWindowType type) override;

View File

@ -64,7 +64,7 @@ public:
QString styleSheet() const;
Q_SIGNALS:
void viewTypeChanged(ViewType type);
void viewTypeChanged(VerticalTabsPlugin::ViewType type);
void styleSheetChanged(const QString &styleSheet);
private: