summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qlineedit.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-08-26 07:31:45 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-08-26 07:33:18 (GMT)
commit4806174aeff4d7c600f6be20649153bf0e997953 (patch)
tree649e174728f5324595ad31fb3b5fbb49171c030b /src/gui/widgets/qlineedit.cpp
parent82917af38936d4ea33bc7fd2310c1361ebf2ac73 (diff)
downloadQt-4806174aeff4d7c600f6be20649153bf0e997953.zip
Qt-4806174aeff4d7c600f6be20649153bf0e997953.tar.gz
Qt-4806174aeff4d7c600f6be20649153bf0e997953.tar.bz2
QLineEdit: reenable the delete action from the context menu
We now need to connect to the slot in the QLineControl and not to the slot of the QLineEdit (the QLineEdit slot is now also removed). Reviewed-by: Alan Alpert
Diffstat (limited to 'src/gui/widgets/qlineedit.cpp')
-rw-r--r--src/gui/widgets/qlineedit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qlineedit.cpp b/src/gui/widgets/qlineedit.cpp
index f36a995..059aaf1 100644
--- a/src/gui/widgets/qlineedit.cpp
+++ b/src/gui/widgets/qlineedit.cpp
@@ -2002,7 +2002,7 @@ QMenu *QLineEdit::createStandardContextMenu()
action = popup->addAction(QLineEdit::tr("Delete"));
action->setEnabled(!d->control->isReadOnly() && !d->control->text().isEmpty() && d->control->hasSelectedText());
- connect(action, SIGNAL(triggered()), SLOT(_q_deleteSelected()));
+ connect(action, SIGNAL(triggered()), d->control, SLOT(_q_deleteSelected()));
popup->addSeparator();