File indexing completed on 2025-01-05 05:14:50
0001 /* 0002 SPDX-FileCopyrightText: 2021 Hamed Masafi <hamed.masfi@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-3.0-or-later 0005 */ 0006 0007 #include "taginfodialog.h" 0008 0009 TagInfoDialog::TagInfoDialog(QWidget *parent) 0010 : AppDialog(parent) 0011 { 0012 setupUi(this); 0013 setWindowTitle(i18nc("@title:window", "New tag")); 0014 0015 connect(lineEditTagName, &QLineEdit::textChanged, this, &TagInfoDialog::slotLineEditTagNameTextChanged); 0016 } 0017 0018 QString TagInfoDialog::tagName() const 0019 { 0020 return lineEditTagName->text(); 0021 } 0022 0023 void TagInfoDialog::setTagName(const QString &newTagName) 0024 { 0025 lineEditTagName->setText(newTagName); 0026 } 0027 0028 QString TagInfoDialog::message() const 0029 { 0030 return lineEditMessage->text(); 0031 } 0032 0033 void TagInfoDialog::setMessage(const QString &newMessage) 0034 { 0035 lineEditMessage->setText(newMessage); 0036 } 0037 0038 void TagInfoDialog::slotLineEditTagNameTextChanged(const QString &s) 0039 { 0040 lineEditMessage->setText(s); 0041 } 0042 0043 #include "moc_taginfodialog.cpp"