r16653 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:23:20 UTC 2011


Author: jghali
Date: Sat Jun 11 21:23:20 2011
New Revision: 16653

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

Modified:
    trunk/Scribus/scribus/scribusview.cpp

Modified: trunk/Scribus/scribus/scribusview.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=16653&path=/trunk/Scribus/scribus/scribusview.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusview.cpp (original)
+++ trunk/Scribus/scribus/scribusview.cpp Sat Jun 11 21:23:20 2011
@@ -4033,10 +4033,12 @@
 
 void ScribusView::inputMethodEvent ( QInputMethodEvent * event )
 {
-	qDebug() << "IME" << event->commitString() << event->preeditString() << "attributes:" << event->attributes().count();
+	//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