From koffice-devel Thu May 29 08:11:56 2008 From: Thomas Zander Date: Thu, 29 May 2008 08:11:56 +0000 To: koffice-devel Subject: Re: koffice/kspread Message-Id: <200805291012.00111.zander () kde ! org> X-MARC-Message: https://marc.info/?l=koffice-devel&m=121204874024622 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1748837860==" --===============1748837860== Content-Type: multipart/signed; boundary="nextPart8506209.sIJpIxc5uS"; protocol="application/pgp-signature"; micalg=pgp-sha1 --nextPart8506209.sIJpIxc5uS Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 28. May 2008 10:49:55 Christian Ehrlicher wrote: > KoPageLayout SheetPrint::paperLayout() const > { > =A0 =A0 return m_settings->pageLayout(); =A0 // here the pageLayout is co= pied > } > > void otherFunction() > { > =A0 paperlayout().width =3D 25; > } The pattern intended (and used in Qt) is that the otherFunction would have = to=20 do; KoPageLayout pl =3D print.paperLayout(); pl.width =3D 25; print.setPaperLayout(pl); =2D-=20 Thomas Zander --nextPart8506209.sIJpIxc5uS Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBIPmVQCojCW6H2z/QRAgkBAJ4kgTqskY2FtKk7lkoK67D7zwNDQACfQ9DT OOCvczFtKAjyTuKMC8Po9/0= =/sNw -----END PGP SIGNATURE----- --nextPart8506209.sIJpIxc5uS-- --===============1748837860== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ koffice-devel mailing list koffice-devel@kde.org https://mail.kde.org/mailman/listinfo/koffice-devel --===============1748837860==--