From 884b8a5c12e5d5d61a9fb7d1eece11b45c2f1192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Tr=C3=B6scher?= Date: Sun, 11 Sep 2011 19:09:41 +0200 Subject: fix layout of webshortcutWidget + code cleanup REVIEWED-BY: trustMe --- src/urlbar/webshortcutwidget.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/urlbar/webshortcutwidget.h') diff --git a/src/urlbar/webshortcutwidget.h b/src/urlbar/webshortcutwidget.h index 2cf1eedf..2a5ede34 100644 --- a/src/urlbar/webshortcutwidget.h +++ b/src/urlbar/webshortcutwidget.h @@ -22,35 +22,33 @@ #ifndef WEBSHORTCUTWIDGET_H #define WEBSHORTCUTWIDGET_H -#include +#include #include #include class QLabel; class QLineEdit; +class QPushButton; -class WebShortcutWidget : public QDialog +class WebShortcutWidget : public QMenu { Q_OBJECT public: - explicit WebShortcutWidget(QWidget *parent = 0); + WebShortcutWidget(QWidget *parent = 0); void show(const KUrl &url, const QString &openSearchName, const QPoint &pos); private slots: - void okClicked(); - void cancelClicked(); + void accept(); void shortcutsChanged(const QString& newShorthands); signals: void webShortcutSet(const KUrl &url, const QString &openSearchName, const QString &webShortcut); private: - QLabel *m_searchTitleLabel; QLineEdit *m_wsLineEdit; QLineEdit *m_nameLineEdit; QLabel *m_noteLabel; - QPushButton *m_okButton; KService::List m_providers; KUrl m_url; -- cgit v1.2.1