diff options
author | Johannes Tröscher <fritz_van_tom@hotmail.com> | 2011-09-11 19:09:41 +0200 |
---|---|---|
committer | Johannes Tröscher <fritz_van_tom@hotmail.com> | 2011-09-11 19:09:41 +0200 |
commit | 884b8a5c12e5d5d61a9fb7d1eece11b45c2f1192 (patch) | |
tree | 7062e0700e7f07ace9278f2407953166604806f7 /src/urlbar/webshortcutwidget.h | |
parent | fix layout of favouriteWidget (diff) | |
download | rekonq-884b8a5c12e5d5d61a9fb7d1eece11b45c2f1192.tar.xz |
fix layout of webshortcutWidget + code cleanup
REVIEWED-BY: trustMe
Diffstat (limited to 'src/urlbar/webshortcutwidget.h')
-rw-r--r-- | src/urlbar/webshortcutwidget.h | 12 |
1 files changed, 5 insertions, 7 deletions
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 <QtGui/QDialog> +#include <QMenu> #include <KUrl> #include <KService> 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; |