summaryrefslogtreecommitdiff
path: root/src/test/rview_fake.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/rview_fake.cpp')
-rw-r--r--src/test/rview_fake.cpp18
1 files changed, 12 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()};
}