File indexing completed on 2024-04-28 03:42:10
0001 /* 0002 This file is part of Kiten, a KDE Japanese Reference Tool... 0003 SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #include "searchdialog.h" 0009 0010 #include <QPushButton> 0011 0012 SearchDialog::SearchDialog(QWidget *parent) 0013 : QDialog(parent) 0014 { 0015 setupUi(this); 0016 connect(buttonBox, &QDialogButtonBox::accepted, this, [this] { 0017 Q_EMIT search(lineEdit->text()); 0018 }); 0019 connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::close); 0020 }