KGantt
kganttgraphicsview.cpp
83 m_headerType = grid->sectionHandleAtPos( view()->mapToScene( event->x(), 0 ).x(), event->pos().y(), geometry() );
101 if ( grid->sectionHandleAtPos( mousePosX, event->pos().y(), geometry() ) == DateTimeGrid::NoHeader ) {
318 headerwidget.scrollTo( val-q->horizontalScrollBar()->minimum()+static_cast<int>( viewRect.left() ) );
325 QModelIndex idx = scene.model()->index( 0, 0, scene.summaryHandlingModel()->mapToSource( parent ) );
328 } while ( ( idx = rowcontroller->indexBelow( idx ) ) != QModelIndex() && rowcontroller->isRowVisible( idx ) );
329 //} while ( ( idx = d->treeview.indexBelow( idx ) ) != QModelIndex() && d->treeview.visualRect(idx).isValid() );
342void GraphicsView::Private::slotDataChanged( const QModelIndex& topLeft, const QModelIndex& bottomRight )
371void GraphicsView::Private::removeConstraintsRecursive( QAbstractProxyModel *summaryModel, const QModelIndex& index )
382 const QList<Constraint> clst = scene.constraintModel()->constraintsForIndex( summaryModel->mapToSource( index ) );
388void GraphicsView::Private::slotRowsAboutToBeRemoved( const QModelIndex& parent, int start, int end )
643 Constraint c( from, to, ( modifiers&Qt::ShiftModifier )?Constraint::TypeHard:Constraint::TypeSoft );
738 } while ( ( idx = rowController()->indexBelow( idx ) ) != QModelIndex() && rowController()->isRowVisible(idx) );
768void GraphicsView::print( QPrinter* printer, qreal start, qreal end, bool drawRowLabels, bool drawColumnLabels )
774void GraphicsView::print( QPainter* painter, const QRectF& targetRect, bool drawRowLabels, bool drawColumnLabels )
Abstract baseclass for grids. A grid is used to convert between QModelIndex'es and gantt chart values...
Abstract baseclass for row controllers. A row controller is used by the GraphicsView to nagivate the ...
virtual int totalHeight() const =0
virtual void addConstraint(const Constraint &c)
Definition kganttconstraintmodel.cpp:89
bool hasConstraint(const Constraint &c) const
Definition kganttconstraintmodel.cpp:182
virtual bool removeConstraint(const Constraint &c)
Definition kganttconstraintmodel.cpp:111
A class used to represent a dependency.
bool mapFromChart(const Span &span, const QModelIndex &idx, const QList< Constraint > &constraints=QList< Constraint >()) const override
Definition kganttdatetimegrid.cpp:454
DateTimeTimeLine * timeLine() const
Definition kganttdatetimegrid.cpp:1212
The GraphicsView class provides a model/view implementation of a gantt chart.
void setModel(QAbstractItemModel *)
Definition kganttgraphicsview.cpp:476
void setGrid(KGantt::AbstractGrid *)
Definition kganttgraphicsview.cpp:593
void setConstraintModel(KGantt::ConstraintModel *)
Definition kganttgraphicsview.cpp:525
void setRootIndex(const QModelIndex &)
Definition kganttgraphicsview.cpp:543
void print(QPrinter *printer, bool drawRowLabels=true, bool drawColumnLabels=true)
Definition kganttgraphicsview.cpp:762
void setSelectionModel(QItemSelectionModel *)
Definition kganttgraphicsview.cpp:555
void setRowController(KGantt::AbstractRowController *)
Definition kganttgraphicsview.cpp:579
void setItemDelegate(KGantt::ItemDelegate *delegate)
Definition kganttgraphicsview.cpp:567
void setHeaderContextMenuPolicy(Qt::ContextMenuPolicy)
Definition kganttgraphicsview.cpp:624
ConstraintModel * constraintModel() const
Definition kganttgraphicsview.cpp:531
GraphicsView(QWidget *parent=nullptr)
Definition kganttgraphicsview.cpp:433
virtual void addConstraint(const QModelIndex &from, const QModelIndex &to, Qt::KeyboardModifiers modifiers)
Definition kganttgraphicsview.cpp:636
QItemSelectionModel * selectionModel() const
Definition kganttgraphicsview.cpp:561
AbstractRowController * rowController() const
Definition kganttgraphicsview.cpp:587
Qt::ContextMenuPolicy headerContextMenuPolicy() const
Definition kganttgraphicsview.cpp:630
void updateRow(const QModelIndex &)
Definition kganttgraphicsview.cpp:692
void printDiagram(QPrinter *printer, const PrintingContext &context)
Definition kganttgraphicsview.cpp:786
ItemDelegate * itemDelegate() const
Definition kganttgraphicsview.cpp:573
QModelIndex indexAt(const QPoint &pos) const
Definition kganttgraphicsview.cpp:675
QAbstractProxyModel * summaryHandlingModel() const
Definition kganttgraphicsview.cpp:537
void deleteSubtree(const QModelIndex &)
Definition kganttgraphicsview.cpp:756
Class used to render gantt items in a KGantt::GraphicsView.
The PrintingContext class provides options for printing the gantt chart.
Q_SCRIPTABLE Q_NOREPLY void start()
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
Type type(const QSqlDatabase &db)
void update(Part *part, const QByteArray &data, qint64 dataSize)
char * toString(const EngineQuery &query)
const QList< QKeySequence > & end()
virtual int columnCount(const QModelIndex &parent) const const=0
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const=0
virtual int rowCount(const QModelIndex &parent) const const=0
virtual bool hasChildren(const QModelIndex &parent) const const override
virtual QModelIndex mapToSource(const QModelIndex &proxyIndex) const const=0
QScrollBar * horizontalScrollBar() const const
QWidget * viewport() const const
maximum
minimum
void setCheckable(bool)
void setChecked(bool)
QAction * addAction(QAction *action)
void setExclusive(bool b)
ToolTip
BackgroundLayer
void invalidate(const QRectF &rect, SceneLayers layers)
QRectF itemsBoundingRect() const const
void setSceneRect(const QRectF &rect)
FullViewportUpdate
QGraphicsItem * itemAt(const QPoint &pos) const const
virtual void resizeEvent(QResizeEvent *event) override
QGraphicsScene * scene() const const
void setScene(QGraphicsScene *scene)
void setViewportUpdateMode(ViewportUpdateMode mode)
void restoreOverrideCursor()
int x() const const
int column() const const
const QAbstractItemModel * model() const const
QModelIndex parent() const const
int row() const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
bool disconnect(const QMetaObject::Connection &connection)
const QRect & rect() const const
qreal height() const const
qreal left() const const
void setHeight(qreal height)
void setLeft(qreal x)
void setSize(const QSizeF &size)
void setTop(qreal y)
void setWidth(qreal width)
QSizeF size() const const
qreal width() const const
QSizeF expandedTo(const QSizeF &otherSize) const const
SH_ItemView_ActivateItemOnSingleClick
ContextMenuPolicy
SplitHCursor
typedef KeyboardModifiers
WA_SetCursor
void customContextMenuRequested(const QPoint &pos)
virtual bool event(QEvent *event) override
virtual void mouseMoveEvent(QMouseEvent *event)
virtual void mousePressEvent(QMouseEvent *event)
virtual void mouseReleaseEvent(QMouseEvent *event)
pos
size
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:26 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:09:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.