File indexing completed on 2025-01-05 04:49:32
0001 /* 0002 SPDX-FileCopyrightText: 2022-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "akonadidatabasetoolswidget.h" 0008 #include <QPlainTextEdit> 0009 #include <QVBoxLayout> 0010 0011 AkonadiDatabaseToolsWidget::AkonadiDatabaseToolsWidget(QWidget *parent) 0012 : QWidget{parent} 0013 , mPlainTextEdit(new QPlainTextEdit(this)) 0014 { 0015 auto mainLayout = new QVBoxLayout(this); 0016 mainLayout->setObjectName(QLatin1StringView("mainLayout")); 0017 mainLayout->setContentsMargins(QMargins{}); 0018 mPlainTextEdit->setObjectName(QLatin1StringView("mPlainTextEdit")); 0019 mPlainTextEdit->setReadOnly(true); 0020 mainLayout->addWidget(mPlainTextEdit); 0021 } 0022 0023 AkonadiDatabaseToolsWidget::~AkonadiDatabaseToolsWidget() = default; 0024 0025 void AkonadiDatabaseToolsWidget::appendText(const QString &text) 0026 { 0027 mPlainTextEdit->appendHtml(text); 0028 } 0029 0030 #include "moc_akonadidatabasetoolswidget.cpp"