File indexing completed on 2024-05-19 12:34:43
0001 /* AUDEX CDDA EXTRACTOR 0002 * SPDX-FileCopyrightText: Copyright (C) 2007 Marco Nelles 0003 * <https://userbase.kde.org/Audex> 0004 * 0005 * SPDX-License-Identifier: GPL-3.0-or-later 0006 */ 0007 0008 #ifndef TEXTVIEWDIALOG_H 0009 #define TEXTVIEWDIALOG_H 0010 0011 #include <QWidget> 0012 0013 #include <QDialog> 0014 0015 #include "ui_textviewwidgetUI.h" 0016 0017 class TextViewDialog : public QDialog 0018 { 0019 Q_OBJECT 0020 0021 public: 0022 TextViewDialog(const QString &text = QString(), const QString &title = QString(), QWidget *parent = nullptr); 0023 ~TextViewDialog() override; 0024 0025 public Q_SLOTS: 0026 void setTitle(const QString &title) 0027 { 0028 setWindowTitle(title); 0029 } 0030 void setText(const QString &text) 0031 { 0032 ui.ktextedit->setText(text); 0033 } 0034 0035 private Q_SLOTS: 0036 void slotClosed(); 0037 0038 private: 0039 Ui::TextViewWidgetUI ui; 0040 }; 0041 0042 #endif