On 29/03/14 23:04, Chris wrote:
Hi Allan
If you look at the source of the ui file there is no font specified. So
you are picking up the font *QT* chooses as the default.
Yes, neither the UI file, nor the built uixxxx.h file give a font name.
As it shows in QtDesigner, it appears that it gets picked up from the
KDE system settings. As I selected the font within QtDesigner, it may
be that that feeds back to the system settings. Or, I happened to
select the font that was already specified in the settings.
Pretty irrelevant now, as it happens.
Allan
Original csvimport ui file..
<property name="font">
<font/>
modified using qtdesigner file...
<property name="font">
<font>
<family>Arial</family>
</font>
</property>
Like you I have found fonts are not the only problems. Now if I can just
get a sane build environment ...
Chris
On 30/03/2014 9:19 AM, Allan wrote:
On 29/03/14 22:19, Chris wrote:
Hi Allen
With the font issues I found that the font was not specified in the ui
file so defaults where applied. Those defaults caused problems. So it
may be the defaults on your machine are more suited to your desktop
environment than the default on other desktops. On windows, QT uses an
internationalised font "ms shell dlg 2" which may or may not be a good
choice. To get a consistent look and feel across desktops requires a
consistent font.
It may not be ubuntu's fault.
If you could attach a patch that would be wonderful
Chris
Hi Chris
In my early days with the plugin, I did not specify a font for the
tablewidget, and as I then happened to be using a xbuntu machine, The
UI, in QtDesigner, showed the font as Ubuntu. It was pointed out to
me that other systems might not have that font and that I should
specify a generic font, so I have since specified DejaVu Sans. When I
started looking into your problem, I switched from Mint to my Ubuntu
system, and there the font shows as Ubuntu. So, I'm pretty sure that
it is Ubuntu that makes that change.
Your "ms shell dlg 2" font is probably the result of Windows doing
something similar.
The problem, I've found though, is not directly to do with the font,
but is caused by several layout parameters that get changed. So, I
now start on my Mint PC, get it working and looking correct, then copy
that file to my Ubuntu. The changes I've mentioned have now been
altered. When the plugin starts, as you found, the dialog buttons have
almost dropped off the window. Also, on the Banking wizard page, the
layout has expanded horizontally and the rightmost combo boxes are
getting clipped.
So, I then make the parameter changes, the buttons etc. now reappear,
but the horizontal scroll bar has gone. I then have to do some tuning
to find a happy medium. So what I now do is set the layout parameters
in the plugin initialisation, and that seems to be satisfactory. I
just hope that it helps you on Windows.
I'll send you a patch as soon as I'm happy with it.
Allan
_______________________________________________
KMyMoney-devel mailing list
KMyMoney-devel@kde.org
https://mail.kde.org/mailman/listinfo/kmymoney-devel