~ubuntu-branches/ubuntu/karmic/kst/karmic

« back to all changes in this revision

Viewing changes to kst/kst/extensions/js/kjsembed/jseventmapper.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2006-06-30 19:11:30 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060630191130-acumuar75bz4puty
Tags: 1.2.1-1ubuntu1
Merge from debian unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 *
14
14
 *  You should have received a copy of the GNU Library General Public License
15
15
 *  along with this library; see the file COPYING.LIB.  If not, write to
16
 
 *  the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
 
 *  Boston, MA 02111-1307, USA.
 
16
 *  the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
 
17
 *  Boston, MA 02110-1301, USA.
18
18
 */
19
19
 
20
20
#include "global.h"
88
88
 
89
89
QEvent::Type JSEventMapper::findEventType( const KJS::Identifier &name ) const
90
90
{
91
 
    uint evt = (uint) handlerToEvent[ name.qstring() ];
 
91
    uint *evtp = handlerToEvent[ name.qstring() ];
 
92
    uint evt;
 
93
    if (evtp) {
 
94
        evt = (*evtp);
 
95
    } else {
 
96
        evt = 0;
 
97
    }
92
98
    return static_cast<QEvent::Type>( evt );
93
99
}
94
100