summaryrefslogtreecommitdiffstats
path: root/src/controls/qtmenuitem.cpp
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@digia.com>2013-03-11 15:43:29 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-11 16:06:59 +0100
commitb9d04b6f5c92f0ef4e30e2bf436be503f739a74d (patch)
tree89332c44248c4b7e0294985a3365b3b3b9e07c3b /src/controls/qtmenuitem.cpp
parent2eec5737c407cffe0bed8fac5c337b7b337da99e (diff)
Menu: Rename 'text' property to 'title'
Change-Id: Ib0b1445593ff48df56cd8d4d20122880c2dacca5 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'src/controls/qtmenuitem.cpp')
-rw-r--r--src/controls/qtmenuitem.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/controls/qtmenuitem.cpp b/src/controls/qtmenuitem.cpp
index 245303449..2afd8f6d2 100644
--- a/src/controls/qtmenuitem.cpp
+++ b/src/controls/qtmenuitem.cpp
@@ -192,7 +192,7 @@ void QtMenuText::updateText()
platformItem()->setText(text());
syncWithPlatformMenu();
}
- emit textChanged();
+ emit __textChanged();
}
void QtMenuText::updateEnabled()
@@ -359,6 +359,8 @@ void QtMenuText::updateIcon()
QtMenuItem::QtMenuItem(QObject *parent)
: QtMenuText(parent), m_boundAction(0)
{
+ connect(this, SIGNAL(__textChanged()), this, SIGNAL(textChanged()));
+
connect(action(), SIGNAL(triggered()), this, SIGNAL(triggered()));
connect(action(), SIGNAL(toggled(bool)), this, SLOT(updateChecked()));
if (platformItem())