KD Reports API Documentation  2.2
Public Types | Public Member Functions | Static Public Member Functions | List of all members
KDReports::HLineTextObject Class Reference

#include <KDReportsHLineTextObject_p.h>

Inheritance diagram for KDReports::HLineTextObject:

Public Types

enum  { HLineTextFormat = QTextFormat::UserObject + 1 }
 
enum  { Color = 1 , Thickness = 2 , Margin = 3 }
 

Public Member Functions

void drawObject (QPainter *painter, const QRectF &rect, QTextDocument *doc, int posInDocument, const QTextFormat &format) override
 
QSizeF intrinsicSize (QTextDocument *doc, int posInDocument, const QTextFormat &format) override
 

Static Public Member Functions

static void registerHLineObjectHandler (QTextDocument *doc)
 

Detailed Description

Definition at line 25 of file KDReportsHLineTextObject_p.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
HLineTextFormat 

Definition at line 33 of file KDReportsHLineTextObject_p.h.

◆ anonymous enum

anonymous enum
Enumerator
Color 
Thickness 
Margin 

Definition at line 37 of file KDReportsHLineTextObject_p.h.

Member Function Documentation

◆ drawObject()

void KDReports::HLineTextObject::drawObject ( QPainter *  painter,
const QRectF &  rect,
QTextDocument *  doc,
int  posInDocument,
const QTextFormat &  format 
)
override

◆ intrinsicSize()

QSizeF KDReports::HLineTextObject::intrinsicSize ( QTextDocument *  doc,
int  posInDocument,
const QTextFormat &  format 
)
override

◆ registerHLineObjectHandler()

void KDReports::HLineTextObject::registerHLineObjectHandler ( QTextDocument *  doc)
static

Registers the HLineTextObject (a QTextObjectInterface) handler with a QTextDocument in order to enable the painting of HLineTextObjects

Definition at line 26 of file KDReportsHLineTextObject.cpp.

References HLineTextFormat.

Referenced by KDReports::TextDocumentData::TextDocumentData().


The documentation for this class was generated from the following files:

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-reports/
Generated by doxygen 1.9.1