From a19f4bba0cc79b649c6b7cd74939c5fe595166ba Mon Sep 17 00:00:00 2001 From: Muhammed Galib Uludag Date: Tue, 29 Jun 2021 01:01:40 +0300 Subject: [PATCH] Delete qplaintextedit_sink_p.h --- include/spdlog/sinks/qplaintextedit_sink_p.h | 35 -------------------- 1 file changed, 35 deletions(-) delete mode 100644 include/spdlog/sinks/qplaintextedit_sink_p.h diff --git a/include/spdlog/sinks/qplaintextedit_sink_p.h b/include/spdlog/sinks/qplaintextedit_sink_p.h deleted file mode 100644 index 3dfd068f..00000000 --- a/include/spdlog/sinks/qplaintextedit_sink_p.h +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright(c) 2015-present, Gabi Melman, mguludag and spdlog contributors. -// Distributed under the MIT License (http://opensource.org/licenses/MIT) - -#pragma once - -#include -#include - -namespace _spdlog_p { -namespace _sinks_p { -class qplaintextedit_sink_p : public QObject { - Q_OBJECT -public: - qplaintextedit_sink_p(QPlainTextEdit *textedit = nullptr) { - if (textedit != nullptr) { - textedit_ = textedit; - connect(this, &qplaintextedit_sink_p::append_text, textedit_, - &QPlainTextEdit::appendPlainText); - } - } - - ~qplaintextedit_sink_p() {} - - void append(const std::string &str) { - emit append_text(QString::fromStdString(str)); - } - -signals: - void append_text(const QString &); - -private: - QPlainTextEdit *textedit_ = nullptr; -}; -} // namespace _sinks_p -} // namespace _spdlog_p