[Fedora-trans-ar] Re: Arabic issue #8: Accelerators mess the arabic text in QPushButtons, QMenu, ...

Munzir Taha munzirtaha at newhorizons.com.sa
Wed Mar 2 21:24:15 UTC 2005


On Yau al-Thulatha 20 Muharram 1426 6:47 pm, Lars Knoll wrote:
> Hi Munzir,

Hello Lars,

> this should be fixed for tomorrows snapshot.
>
> Thanks again for all the testing,

And thanks for all the fixing... but:

> On Thursday 03 February 2005 09:31, Munzir Taha wrote:
> > Qt Version: qt-x11-opensource-4.0.0-b2-snapshot-20050131
> > System: Mandrake 10.1 on AMD64
> >
> > Accelerators mess the arabic text in QPushButtons, QMenu, .... The letter
> > underlined will shift its postion.
> >
> >
> > CODE:
> >
> > For QMenu: From the Qt examples I tested like this:
> > /examples/mainwindows/application/mainwindow.cpp:
> > editMenu = menuBar()->addMenu(trUtf8("ï؛•&ï؛،ï؛®ï»³ï؛­"((;
> >
> > AND
> > For QPushButton, I tested with a code like this
> >
> >        // This one has an accelerator on the first letter
> >        // and the letters display in reverse order
> >        QPushButton pb(QObject::trUtf8("&ط­ظپط¸"));


still I have that annoying crash of:
ASSERT: "glyph_pos != -1" in file /usr/local/qt/src/gui/text/qtextlayout.cpp, 
line 1830
Aborted (core dumped)

with an up to date rsync:

(gdb) bt
#0  0xffffe410 in ?? ()
#1  0xbfffc4bc in ?? ()
#2  0x00000006 in ?? ()
#3  0x000023f9 in ?? ()
#4  0xb7735705 in raise () from /lib/tls/libc.so.6
#5  0xb7737099 in abort () from /lib/tls/libc.so.6
#6  0xb7eb3c22 in qt_message_output (msgType=QtFatalMsg,
    buf=0xbfffc620 "ASSERT: \"glyph_pos != -1\" in 
file /usr/local/qt/src/gui/text/qtextlayout.cpp, line 1830") 
at /usr/local/qt/src/corelib/global/qglobal.cpp:567
#7  0xb7eb4081 in qFatal (msg=0xb7f83760 "ASSERT: \"%s\" in file %s, line %d")
    at /usr/local/qt/src/corelib/global/qglobal.cpp:779
#8  0xb7eb3826 in qt_assert (assertion=0xb7d79268 "glyph_pos != -1",
    file=0xb7d79128 "/usr/local/qt/src/gui/text/qtextlayout.cpp", line=1830)
    at /usr/local/qt/src/corelib/global/qglobal.cpp:342
#9  0xb7b7b00e in QTextLine::xToCursor (this=0xbfffec98, x=7, 
cpos=QTextLine::CursorOnCharacter)
    at /usr/local/qt/src/gui/text/qtextlayout.cpp:1830
#10 0xb7c44209 in QLineEditPrivate::xToPosInternal (this=0x80a67e8, x=7,
    betweenOrOn=QTextLine::CursorOnCharacter) 
at /usr/local/qt/src/gui/widgets/qlineedit.cpp:2209
#11 0xb7c44268 in QLineEditPrivate::xToPos (this=0x80a67e8, x=9, 
betweenOrOn=QTextLine::CursorOnCharacter)
    at /usr/local/qt/src/gui/widgets/qlineedit.cpp:2216
#12 0xb7c480b0 in QLineEditPrivate::inSelection (this=0x80a67e8, x=9) at 
qlineedit_p.h:161
#13 0xb7c4018e in QLineEdit::mouseMoveEvent (this=0x8098c60, e=0xbffff2d0)
    at /usr/local/qt/src/gui/widgets/qlineedit.cpp:1376
#14 0xb7a5976a in QWidget::event (this=0x8098c60, e=0xbffff2d0)
    at /usr/local/qt/src/gui/kernel/qwidget.cpp:4345
#15 0xb7c3fe72 in QLineEdit::event (this=0x8098c60, e=0xbffff2d0)
    at /usr/local/qt/src/gui/widgets/qlineedit.cpp:1326
#16 0xb7a15722 in QApplication::notify_helper (this=0xbffff790, 
receiver=0x8098c60, e=0xbffff2d0)
    at /usr/local/qt/src/gui/kernel/qapplication.cpp:3010
#17 0xb7a146cd in QApplication::notify (this=0xbffff790, receiver=0x8098c60, 
e=0xbffff2d0)
    at /usr/local/qt/src/gui/kernel/qapplication.cpp:2784
#18 0xb7a1672b in QCoreApplication::sendSpontaneousEvent (receiver=0x8098c60, 
event=0xbffff2d0)
    at qcoreapplication.h:176
#19 0xb7a6e88e in QETWidget::translateMouseEvent (this=0x8098c60, 
event=0xbffff5b0)
---Type <return> to continue, or q <return> to quit---
    at /usr/local/qt/src/gui/kernel/qapplication_x11.cpp:3516
#20 0xb7a6c014 in QApplication::x11ProcessEvent (this=0xbffff790, 
event=0xbffff5b0)
    at /usr/local/qt/src/gui/kernel/qapplication_x11.cpp:2685
#21 0xb7a83c5d in QEventDispatcherX11::processEvents (this=0x804b490, flags={i 
= 4})
    at /usr/local/qt/src/gui/kernel/qeventdispatcher_x11.cpp:117
#22 0xb7f49d1c in QEventLoop::processEvents (this=0xbffff700, flags={i = 4})
    at /usr/local/qt/src/corelib/kernel/qeventloop.cpp:77
#23 0xb7f49dd5 in QEventLoop::exec (this=0xbffff700, flags={i = 0})
    at /usr/local/qt/src/corelib/kernel/qeventloop.cpp:110
#24 0xb7f4d946 in QCoreApplication::exec () 
at /usr/local/qt/src/corelib/kernel/qcoreapplication.cpp:598
#25 0xb7a1389f in QApplication::exec () 
at /usr/local/qt/src/gui/kernel/qapplication.cpp:2602
#26 0x08048d9c in main (argc=1, argv=0xbffff834) at arabic.cpp:41


-- 
Munzir Taha  PGP Key available
gpg --recv-keys --keyserver www.mandrakesecure.net F0671821

Telecommunications and Electronics Engineer
Mandrake Club Member
Maintainer of the OpenBugs Wiki page at
http://arabic-fedora.org/
Maintainer of Fedora Arabic Translation Project
https://listman.redhat.com/mailman/listinfo/fedora-trans-ar
CIW Designer, ICDL, MOUS, Linux+, LPI 101
New Horizons CLC, Riyadh, SA




More information about the Fedora-trans-ar mailing list