summaryrefslogtreecommitdiff
path: root/src/urlbar/webshortcutwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/urlbar/webshortcutwidget.h')
-rw-r--r--src/urlbar/webshortcutwidget.h12
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;