summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2022-08-28 08:46:08 +0300
committeraqua <aqua@iserlohn-fortress.net>2022-09-05 23:07:42 +0300
commit5e4b608751dca63d19c334ddb332b4e19741d175 (patch)
tree2b238e50b2f1921c20c78b492f82ef26272c93cd /src/test
parentAdd placeholder menus to main window (diff)
downloadrekonq-5e4b608751dca63d19c334ddb332b4e19741d175.tar.xz
Remove source_location
Diffstat (limited to 'src/test')
-rw-r--r--src/test/rview_fake.cpp18
-rw-r--r--src/test/rview_fake.h7
2 files changed, 19 insertions, 6 deletions
diff --git a/src/test/rview_fake.cpp b/src/test/rview_fake.cpp
index bb7e91d6..77a787c9 100644
--- a/src/test/rview_fake.cpp
+++ b/src/test/rview_fake.cpp
@@ -1,6 +1,12 @@
+/* ============================================================
+ * The rekonq project
+ * ============================================================
+ * SPDX-License-Identifier: GPL-3.0-only
+ * Copyright (C) 2022 aqua <aqua@iserlohn-fortress.net>
+ * ============================================================ */
+
#include "rview_fake.h"
#include "ui_rview_fake.h"
-#include <source_location>
#include <spdlog/spdlog.h>
RekonqView_fake::RekonqView_fake(QWidget *parent) : RekonqView(QUrl(), parent), ui(new Ui::RekonqView_fake)
@@ -31,26 +37,26 @@ RekonqView_fake::~RekonqView_fake() { delete ui; }
void RekonqView_fake::load(const QUrl &url)
{
ui->url->setText(url.toString());
- spdlog::debug("{} url={}", std::source_location::current().function_name(), qUtf8Printable(url.toString()));
+ spdlog::debug("{} url={}", __PRETTY_FUNCTION__, qUtf8Printable(url.toString()));
}
int RekonqView_fake::progress() const
{
- spdlog::debug("{} -> {}", std::source_location::current().function_name(), ui->progress->value());
+ spdlog::debug("{} -> {}", __PRETTY_FUNCTION__, ui->progress->value());
return ui->progress->value();
}
QIcon RekonqView_fake::icon() const
{
- spdlog::debug("{} -> empty QIcon", std::source_location::current().function_name());
+ spdlog::debug("{} -> empty QIcon", __PRETTY_FUNCTION__);
return {};
}
QString RekonqView_fake::title() const
{
- spdlog::debug("{} -> {}", std::source_location::current().function_name(), qUtf8Printable(ui->title->text()));
+ spdlog::debug("{} -> {}", __PRETTY_FUNCTION__, qUtf8Printable(ui->title->text()));
return ui->title->text();
}
QUrl RekonqView_fake::url() const
{
- spdlog::debug("{} -> {}", std::source_location::current().function_name(), qUtf8Printable(ui->url->text()));
+ spdlog::debug("{} -> {}", __PRETTY_FUNCTION__, qUtf8Printable(ui->url->text()));
return {ui->url->text()};
}
diff --git a/src/test/rview_fake.h b/src/test/rview_fake.h
index 64a8351d..33685e7c 100644
--- a/src/test/rview_fake.h
+++ b/src/test/rview_fake.h
@@ -1,3 +1,10 @@
+/* ============================================================
+ * The rekonq project
+ * ============================================================
+ * SPDX-License-Identifier: GPL-3.0-only
+ * Copyright (C) 2022 aqua <aqua@iserlohn-fortress.net>
+ * ============================================================ */
+
#pragma once
#include <rview.hpp>