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());
218 qreal ptHeight = KReportUtils::readSizeAttributes(section.toElement(), QSizeF(DEFAULT_SECTION_SIZE_PT, DEFAULT_SECTION_SIZE_PT)).height();
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());
Q_OBJECTQ_OBJECT
QByteArray name() const
QGraphicsItem * parentItem() const const
This class is the base to all Report Section's visual representation.
Definition: KReportDesignerSection.h:45
AlignLeft
int count() const const
qreal height() const const
QGraphicsItemList items() const
Return the items in the section Only return top-level items ...
Definition: KReportDesignerSection.cpp:352
QPixmap fromImage(const QImage &image, Qt::ImageConversionFlags flags)
QDomElement toElement() const const
SetFixedSize
QFontMetrics fontMetrics() const const
@ IgnoreOld
Highlight
void setSizePolicy(QSizePolicy)
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
QString tagName() const const
void update(const QRectF &rect)
void setMargin(int margin)
T value() const const
QTextStream & left(QTextStream &stream)
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
QIcon fromTheme(const QString &name)
QWidget * activeWindow()
KIOFILEWIDGETS_EXPORT QStringList list(const QString &fileClass)
LeftButton
KReportSectionData is used to store the information about a specific report section.
Definition: KReportSectionData.h:44
Manager class for finding and loading available plugins.
Definition: KReportPluginManager.h:40
QWidget * focusWidget() const const
QString iconName() const
void setRowStretch(int row, int stretch)
void setAttribute(const QString &name, const QString &value)
typedef WindowFlags
int size() const const
void setColumnStretch(int column, int stretch)
QDomNode item(int index) const const
virtual void mousePressEvent(QMouseEvent *ev) override
const KReportPluginMetaData * metaData() const
Definition: KReportPluginInterface.cpp:55
void initFromXML(const QDomNode §ion)
Definition: KReportDesignerSection.cpp:212
QString name() const
Vertical
SizeVerCursor
int y() const const
void setSpacing(int spacing)
QDomNodeList childNodes() const const
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
virtual void paintEvent(QPaintEvent *) override
QImage toImage() const const
QString nodeName() const const
Q_SIGNALSQ_SIGNALS
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const const
void setMinimumHeight(int minh)
void setSizeConstraint(QLayout::SizeConstraint)
HLine
void setVisible(bool visible)
virtual void paintEvent(QPaintEvent *) override
Base class for rectangular report items used within the designer GUI.
Definition: KReportDesignerItemRectBase.h:38
QVariant value() const
void addWidget(QWidget *widget, int row, int column, Qt::Alignment alignment)
QList::iterator begin()
void clearModifiedFlags()
The ReportDesigner is the main widget for designing a report.
Definition: KReportDesigner.h:52
ColorGroup
Fixed
QList::iterator end()
CompositionMode_SourceIn
virtual void mouseMoveEvent(QMouseEvent *event)
QString mid(int position, int n) const const
QWidget * parentWidget() const const
QObject * parent() const const
white
void setCursor(const QCursor &)
void accept()
An interface for plugins delivering KReport elements.
Definition: KReportPluginInterface.h:45
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 6 2023 04:16:11 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 6 2023 04:16:11 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.