r16652 by jghali - #9682 : Avoid parameter type ambiguity in QKeyEvent constructor with Qt3Support enabled Qt builds

scribus-commit scribus-commit at lists.scribus.net
Sat Jun 11 21:22:56 UTC 2011


Author: jghali
Date: Sat Jun 11 21:22:56 2011
New Revision: 16652

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=16652
Log:
#9682 : Avoid parameter type ambiguity in QKeyEvent constructor with Qt3Support enabled Qt builds

Modified:
    branches/Version135/Scribus/scribus/scribusview.cpp

Modified: branches/Version135/Scribus/scribus/scribusview.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=16652&path=/branches/Version135/Scribus/scribus/scribusview.cpp
==============================================================================
--- branches/Version135/Scribus/scribus/scribusview.cpp (original)
+++ branches/Version135/Scribus/scribus/scribusview.cpp Sat Jun 11 21:22:56 2011
@@ -4633,9 +4633,11 @@
 void ScribusView::inputMethodEvent ( QInputMethodEvent * event )
 {
 //	qDebug() << "IME" << event->commitString() << event->preeditString() << "attributes:" << event->attributes().count();
+	// #9682 : Avoid parameter type ambiguity in QKeyEvent constructor with Qt3Support enabled Qt builds
+	Qt::KeyboardModifiers modifiers = Qt::NoModifier;
 	for(int i = 0; i < event->commitString().length(); ++i)
 	{
-		QKeyEvent ev( QEvent::KeyPress, 0, Qt::NoModifier, event->commitString().mid(i,1));
+		QKeyEvent ev( QEvent::KeyPress, 0, modifiers, event->commitString().mid(i,1));
 		keyPressEvent(&ev);
 	}
 }




More information about the scribus-commit mailing list