• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDEUI

  • sources
  • kde-4.12
  • kdelibs
  • kdeui
  • widgets
nestedlisthelper.h
Go to the documentation of this file.
1 
22 #ifndef NESTEDLISTHELPER_H
23 #define NESTEDLISTHELPER_H
24 
25 //@cond PRIVATE
26 
27 class QTextEdit;
28 
29 class QKeyEvent;
30 class QDropEvent;
31 class QTextCursor;
32 class QTextList;
33 class QTextBlock;
34 
44 class NestedListHelper
45 {
46 public:
47 
53  NestedListHelper(QTextEdit *te);
54 
58  ~NestedListHelper();
59 
70  bool handleBeforeKeyPressEvent(QKeyEvent *event);
71 
83  bool handleAfterKeyPressEvent(QKeyEvent *event);
84 
85  bool handleAfterDropEvent(QDropEvent *event);
86 
90  void handleOnIndentMore();
91 
95  void handleOnIndentLess();
96 
103  void handleOnBulletType(int styleIndex);
104 
117  bool canIndent() const;
118 
128  bool canDedent() const;
129 
130 private:
131  void reformatBoundingItemSpacing(QTextBlock block);
132  void reformatBoundingItemSpacing();
133  QTextCursor topOfSelection();
134  QTextCursor bottomOfSelection();
135  void processList(QTextList* list);
136  void reformatList(QTextBlock block);
137  void reformatList();
138 
139  QTextEdit *textEdit;
140 
141  int listBottomMargin;
142  int listTopMargin;
143  int listNoMargin;
144 
145 };
146 
147 //@endcond
148 
149 #endif
QTextEdit
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:16 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal