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

KDEUI

  • 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
27class QTextEdit;
28
29class QKeyEvent;
30class QDropEvent;
31class QTextCursor;
32class QTextList;
33class QTextBlock;
34
44class NestedListHelper
45{
46public:
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
130private:
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-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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