Default page size now missing

Jaroslaw Staniek staniek at kde.org
Wed Jul 29 21:43:19 UTC 2015


Hi,
While looking at possible improvements of QPageSize (with John),
another finding:
Defaults for page size for KDE SC 4 apps come from the locale based on
KLocale and specific config value. Now in QLocale we miss this
information. QPrinterInfo::defaultPrinter().defaultPageSize() is
something different, it more depends on the default printer, its
defaults and capabilities.

For example, traditionally, USA has "Letter" as default and some other
countries have "A4".


The thing is that the default page size is also used for creation of
documents (ODF, PDF...).

Any ideas on how to address that in apps that don't use
kdelibs4support? And maybe in KF5 and/or Qt.
And do we want to address that?
Even if Plasma 5 offers this config to the user, apps will ignore it
one day when they from usage of kdelibs4support. That could be
misleading.

Personally I am copying the one-liners from kdelibs4support as a
temporary solution: if a given config value is found, it's used.

-- 
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


More information about the Kde-frameworks-devel mailing list