[Kde-bindings] Bugs in rbuic: KDE:: prefixes in flags and a multilne label problem

Riyad Preukschas riyad at informatik.uni-bremen.de
Thu Dec 3 00:18:58 UTC 2009


Hi,


The first bug should be easy.
If you have something like a KUrlRequester in your .ui-file and configure its mode flags rbuic only prefixes the first flag.
You get something like

@cloneUrlRequester.mode = KDE::File::Directory|KFile::ExistingOnly|KFile::File

when it should be

@cloneUrlRequester.mode = KDE::File::Directory|KDE::File::ExistingOnly|KDE::File::File


The second one is a bit trickier.
I don't really know why it shows this behaviour but I suspect something todo with multiline labels.
Here is the faulty snippit:

"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">This can be either a remote or local repository location.</p>\n" \
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">You probably have a \"clone URL\" for the repository like:</p>\n" \
"<p "
        "style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:9pt;\">      ssh://server.tld/</span><span style=\" font-size:9pt;\">repository/of/project</span></p></body></html>", nil, Qt::Application::UnicodeUTF8)
@groupBox_2.title = Qt::Application.translate("CloneRepositoryDialog", "To", nil, Qt::Application::UnicodeUTF8)

See the third "<p ..." line? I have no idea why it splits the string there.
It should read: 

"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">This can be either a remote or local repository location.</p>\n" \
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">You probably have a \"clone URL\" for the repository like:</p>\n" \
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:9pt;\">      git://server.tld/</span><span style=\" font-size:9pt;\">repository</span><span style=\" font-size:9pt;\">/of/project.git</span></p>\n" \
@groupBox_2.title = Qt::Application.translate("CloneRepositoryDialog", "To", nil, Qt::Application::UnicodeUTF8)

I have attached the .ui-file producing both errors as I don't know where the second bug comes from.
Maybe it can help investigate.
I compile it with the following command:

rbuic4 -kde clone_repository_dialog.ui -o ui_clone_repository_dialog.rb


Thanks in advance,
	Riyad Preukschas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clone_repository_dialog.ui
Type: application/x-designer
Size: 11441 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20091203/4932bb5d/attachment.ui>


More information about the Kde-bindings mailing list