~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to libs/kotext/opendocument/tests/data/TextContents/Lists/multilevelList.qs

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-10-27 17:52:57 UTC
  • mfrom: (0.12.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101027175257-s04zqqk5bs8ckm9o
Tags: 1:2.2.83-0ubuntu1
* Merge with Debian git remaining changes:
 - Add build-deps on librcps-dev, opengtl-dev, libqtgtl-dev, freetds-dev,
   create-resources, libspnav-dev
 - Remove needless build-dep on libwv2-dev
 - koffice-libs recommends create-resources
 - krita recommends pstoedit
 - Keep our patches
* New upstream release 2.3 beta 3
  - Remove debian/patches fixed by upstream
  - Update install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
var listFormat1 = QTextListFormat.clone(defaultListFormat);
4
4
listFormat1.setStyle(QTextListFormat.ListDisc);
5
5
setFormatProperty(listFormat1, KoListStyle.BulletCharacter, 0x25CF);
 
6
setFormatProperty(listFormat1, KoListStyle.MinimumWidth, 18);
 
7
setFormatProperty(listFormat1, KoListStyle.Indent, 18.);
6
8
 
7
9
var unnumberedFormat = QTextBlockFormat.clone(defaultBlockFormat);
8
10
setFormatProperty(unnumberedFormat, KoParagraphStyle.UnnumberedListItem, 1);
15
17
 
16
18
var listFormat2 = QTextListFormat.clone(listFormat1);
17
19
setFormatProperty(listFormat2, KoListStyle.Level, 2);
 
20
setFormatProperty(listFormat2, KoListStyle.Indent, 54.);
18
21
cursor.insertBlock(defaultBlockFormat);
19
22
cursor.insertText("Level 2 item", defaultListItemFormat);
20
23
var list2 = cursor.createList(listFormat2);