KReport
KReportDesignerSection.cpp
142 connect(d->scene, &KReportDesignerSectionScene::clicked, this, &KReportDesignerSection::slotSceneClicked);
144 connect(d->title, &KReportDesignerSectionTitle::clicked, this, &KReportDesignerSection::slotSceneClicked);
168 if (d->sceneView->designer() && d->sceneView->designer()->propertySet()->property("page-size").value().toString() == QLatin1String("Labels")) {
202 section->setAttribute(QLatin1String("fo:background-color"), d->sectionData->backgroundColor().name());
273 return QSize(d->scene->width() + d->sectionRuler->frameSize().width(), d->title->frameSize().height() + d->sceneView->sizeHint().height() + d->resizeBar->frameSize().height());
293 d->title->setMinimumWidth(d->reportDesigner->pageWidthPx() + d->sectionRuler->frameSize().width());
326 const QRect newSceneRect(0, 0, d->scene->width(), POINT_TO_INCH(d->sectionData->height()) * d->dpiY);
437 painter.setPen(palette().color(cg, current ? QPalette::HighlightedText : QPalette::WindowText));
443 painter.drawText(rect().adjusted(left + pixmap.width() + 4, 0, 0, 0), Qt::AlignLeft | Qt::AlignVCenter, text());
QString iconName() const
QString name() const
KProperty & property(const QByteArray &name) const
void clearModifiedFlags()
QVariant value() const
QByteArray name() const
Base class for rectangular report items used within the designer GUI.
Definition KReportDesignerItemRectBase.h:39
This class is the base to all Report Section's visual representation.
Definition KReportDesignerSection.h:46
void initFromXML(const QDomNode §ion)
Definition KReportDesignerSection.cpp:212
QGraphicsItemList items() const
Return the items in the section Only return top-level items ... ie, items with no parent item because...
Definition KReportDesignerSection.cpp:352
The ReportDesigner is the main widget for designing a report.
Definition KReportDesigner.h:53
KReportUnit pageUnit() const
Return the current unit assigned to the report.
Definition KReportDesigner.cpp:1044
int pageWidthPx() const
Calculate the width of the page in pixels given the paper size, orientation, dpi and margin.
Definition KReportDesigner.cpp:971
void setModified(bool modified)
Sets the modified status, defaulting to true for modified.
Definition KReportDesigner.cpp:776
void changeSet(KPropertySet *set)
Sets the property set for the currently selected item.
Definition KReportDesigner.cpp:1178
static void addMetaProperties(KPropertySet *set, const QString &classString, const QString &iconName)
Adds meta-properties to the property set set for consumption by property editor.
Definition KReportDesigner.cpp:1676
virtual void setUnit(const KReportUnit &u)
Sets unit to a and converts values of position and size property from the old unit to new if needed.
Definition KReportItemBase.cpp:141
An interface for plugins delivering KReport elements.
Definition KReportPluginInterface.h:46
const KReportPluginMetaData * metaData() const
Definition KReportPluginInterface.cpp:55
Manager class for finding and loading available plugins.
Definition KReportPluginManager.h:41
KReportSectionData is used to store the information about a specific report section.
Definition KReportSectionData.h:45
KPropertySet * propertySet()
Returns property set for this section.
Definition KReportSectionData.cpp:302
void update(Part *part, const QByteArray &data, qint64 dataSize)
KIOCORE_EXPORT QStringList list(const QString &fileClass)
QWidget * activeWindow()
QString name(NameFormat format) const const
void setAttribute(const QString &name, const QString &value)
QString tagName() const const
QDomNodeList childNodes() const const
QString nodeName() const const
QDomElement toElement() const const
int count() const const
QDomNode item(int index) const const
void accept()
HLine
virtual void paintEvent(QPaintEvent *) override
QGraphicsItem * parentItem() const const
void setVisible(bool visible)
void setBackgroundBrush(const QBrush &brush)
qreal height() const const
QList< QGraphicsItem * > items(Qt::SortOrder order) const const
sceneRect
void update(const QRectF &rect)
qreal width() const const
void resetCachedContent()
void addWidget(QWidget *widget, int fromRow, int fromColumn, int rowSpan, int columnSpan, Qt::Alignment alignment)
void setColumnStretch(int column, int stretch)
void setRowStretch(int row, int stretch)
virtual void setSpacing(int spacing) override
QIcon fromTheme(const QString &name)
virtual bool event(QEvent *e) override
virtual void mousePressEvent(QMouseEvent *ev) override
pixmap
void setText(const QString &)
SetFixedSize
void setSizeConstraint(SizeConstraint)
iterator begin()
iterator end()
qsizetype size() const const
int y() const const
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
T qobject_cast(QObject *object)
CompositionMode_SourceIn
ColorGroup
Highlight
QPixmap fromImage(QImage &&image, Qt::ImageConversionFlags flags)
QImage toImage() const const
qreal y() const const
int height() const const
qreal height() const const
Fixed
QString mid(qsizetype position, qsizetype n) const const
bool startsWith(QChar c, Qt::CaseSensitivity cs) const const
AlignLeft
SizeVerCursor
white
LeftButton
Vertical
typedef WindowFlags
QTextStream & left(QTextStream &stream)
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
QString toString() const const
T value() const const
void adjustSize()
void setCursor(const QCursor &)
QWidget * focusWidget() const const
QFontMetrics fontMetrics() const const
frameSize
height
void setMinimumHeight(int minh)
void setMinimumWidth(int minw)
palette
QWidget * parentWidget() const const
rect
void repaint()
void setSizePolicy(QSizePolicy)
void update()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.