File indexing completed on 2024-04-14 04:52:55
0001 /* This file is part of the KDE project 0002 SPDX-FileCopyrightText: 2009 Fredy Yanardi <fyanardi@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef WEBSHORTCUTWIDGET_H 0008 #define WEBSHORTCUTWIDGET_H 0009 0010 #include <QDialog> 0011 0012 class QLabel; 0013 class QLineEdit; 0014 0015 class WebShortcutWidget : public QDialog 0016 { 0017 Q_OBJECT 0018 public: 0019 WebShortcutWidget(QWidget *parent = nullptr); 0020 0021 void show(const QString &openSearchName, const QString &fileName); 0022 0023 private slots: 0024 void okClicked(); 0025 void cancelClicked(); 0026 0027 signals: 0028 void webShortcutSet(const QString &openSearchName, const QString &webShortcut, const QString &fileName); 0029 0030 private: 0031 QLabel *m_searchTitleLabel; 0032 QLineEdit *m_wsLineEdit; 0033 QLineEdit *m_nameLineEdit; 0034 QString m_fileName; 0035 }; 0036 0037 #endif // WEBSHORTCUTWIDGET_H 0038