kreport example problem

Jaroslaw Staniek staniek at kde.org
Sat Oct 22 21:27:53 UTC 2016


On 22 October 2016 at 10:08, Treeve Jelbert <treeve at scarlet.be> wrote:

> I  wnat to use kreport in my project, so I copied the kreport/exam[ple
> files and tried to build it.
> Using the latest git checkout of kreport (ff46de3df63c124f2ab19573befa21b94824dd7f)
> my project  build fails against the installed kreport, as KReportUtils_p.h
> is not installed.
>
> Would it be reasonable to expect this file to exist, or should I just
> ignore
> ​​
> setupGlobalIconTheme?
>
>
​Treeve, one thing more. You can remove the ​

​​
​​setupGlobalIconTheme() call and the #include.

Below I decided to add more explanation what happens if you do. This long
text could later go to the source code or documentation. Sorry if it's too
complex for the task you have. The info applies also for the KProperty
framework and Kexi.

- - -

The call is responsible for setting up an icon theme​ for the app. If you
run the app in environment that sets icon theme already so Qt's QIcon
(QIcon::fromTheme to be strict)  can find any generic icons (such as these
for Copy or Paste actions), the app will display the icons without a need
for ​​​calling setupGlobalIconTheme(). If the theme is missing (e.g. on
stripped-down non-desktop Linux or Windows or Mac),
​​​setupGlobalIconTheme() may be needed to get any generic icons.

​​​setupGlobalIconTheme(), as implemented for KReport​
​
​ 3.0.0, sets the icon theme to KDE's "Breeze" theme. This is because
KReport-specific icons (for example "Barcode") are only available in the
"Breeze" flavour currently so this default results in a perfect match of
look for icons in apps that use KReport. Otherwise, for example Breeze and
Tango/Oxygen icons would be an unpleasant mix. So in 3.0.0 we have
something that looks consistent within the whole app, on any platform.

If ​​​setupGlobalIconTheme() is commented out and current system's icon
theme is used, we have better consistency with the system at the cost of
visual inconsistencies within the app.
To improve that, we clearly welcome contributions of KReport's icons for
other themes than Breeze.

-- 
regards, Jaroslaw Staniek

KDE:
: A world-wide network of software engineers, artists, writers, translators
: and facilitators committed to Free Software development - http://kde.org
Calligra Suite:
: A graphic art and office suite - http://calligra.org
Kexi:
: A visual database apps builder - http://calligra.org/kexi
Qt Certified Specialist:
: http://www.linkedin.com/in/jstaniek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kexi-devel/attachments/20161022/7f8883a9/attachment.html>


More information about the Kexi-devel mailing list