[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdeui/shortcuts
From: Richard J. Moore <rich () kde ! org>
Date: 2009-08-16 12:53:13
Message-ID: 1250427193.898362.10143.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1011950 by rich:
- Ensure that the title or text properties are writable as well
as valid to avoid lots of warnings when they are not. This can
occur for example when a QWebView is a toplevel as the title
property is readonly.
M +2 -2 kacceleratormanager.cpp
--- trunk/KDE/kdelibs/kdeui/shortcuts/kacceleratormanager.cpp #1011949:1011950
@@ -363,7 +363,7 @@
int tprop = w->metaObject()->indexOfProperty("text");
if (tprop != -1) {
QMetaProperty p = w->metaObject()->property( tprop );
- if ( p.isValid() )
+ if ( p.isValid() && p.isWritable() )
variant = p.read (w);
else
tprop = -1;
@@ -373,7 +373,7 @@
tprop = w->metaObject()->indexOfProperty("title");
if (tprop != -1) {
QMetaProperty p = w->metaObject()->property( tprop );
- if ( p.isValid() )
+ if ( p.isValid() && p.isWritable() )
variant = p.read (w);
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic