kdgantt2
kdganttgraphicsview.cpp
Go to the documentation of this file.
187 headerwidget.scrollTo( val-q->horizontalScrollBar()->minimum()+static_cast<int>( viewRect.left() ) );
190 void GraphicsView::Private::slotColumnsInserted( const QModelIndex& parent, int start, int end )
194 QModelIndex idx = scene.model()->index( 0, 0, scene.summaryHandlingModel()->mapToSource( parent ) );
197 } while ( ( idx = rowcontroller->indexBelow( idx ) ) != QModelIndex() && rowcontroller->isRowVisible( idx ) );
198 //} while ( ( idx = d->treeview.indexBelow( idx ) ) != QModelIndex() && d->treeview.visualRect(idx).isValid() );
211 void GraphicsView::Private::slotDataChanged( const QModelIndex& topLeft, const QModelIndex& bottomRight )
240 void GraphicsView::Private::slotRowsAboutToBeRemoved( const QModelIndex& parent, int start, int end )
559 Constraint c( from, to, ( modifiers&Qt::ShiftModifier )?Constraint::TypeHard:Constraint::TypeSoft );
659 } while ( ( idx = rowController()->indexBelow( idx ) ) != QModelIndex() && rowController()->isRowVisible(idx) );
void customContextMenuRequested(const QPoint &pos)
Class used to render gantt items in a KDGantt::GraphicsView.
Definition: kdganttitemdelegate.h:39
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const =0
void slotHeaderContextMenuRequested(const QPoint &pt)
Definition: kdganttgraphicsview.cpp:278
void setConstraintModel(ConstraintModel *)
Definition: kdganttgraphicsview.cpp:406
ItemDelegate * itemDelegate() const
Definition: kdganttgraphicsview.cpp:465
The GraphicsView class provides a model/view implementation of a gantt chart.
Definition: kdganttgraphicsview.h:44
void slotGridChanged()
Definition: kdganttgraphicsview.cpp:172
ConstraintModel * constraintModel() const
Definition: kdganttgraphicsview.cpp:413
void print(QPrinter *printer, bool drawRowLabels=true)
Definition: kdganttgraphicsview.cpp:684
void setChecked(bool)
void entered(const QModelIndex &index)
QSizeF size() const
void pressed(const QModelIndex &index)
void setSelectionModel(QItemSelectionModel *)
Definition: kdganttgraphicsview.cpp:443
void setSceneRect(const QRectF &rect)
QSizeF expandedTo(const QSizeF &otherSize) const
void slotLayoutChanged()
Definition: kdganttgraphicsview.cpp:220
void slotRowsInserted(const QModelIndex &parent, int start, int end)
Definition: kdganttgraphicsview.cpp:232
QWidget * viewport() const
QAction * addAction(QAction *action)
QGraphicsScene * scene() const
void contextMenuEvent(QContextMenuEvent *ev)
Definition: kdganttgraphicsview.cpp:75
QItemSelectionModel * selectionModel() const
Definition: kdganttgraphicsview.cpp:450
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
QAbstractItemModel * model() const
Definition: kdganttgraphicsview.cpp:370
QString tr(const char *sourceText, const char *disambiguation, int n)
AbstractRowController * rowController() const
Definition: kdganttgraphicsview.cpp:485
void slotModelReset()
Definition: kdganttgraphicsview.cpp:226
qreal left() const
void update()
void paintEvent(QPaintEvent *ev)
Definition: kdganttgraphicsview.cpp:68
void setLeft(qreal x)
void setHeight(qreal height)
QSize size() const
const QRect & rect() const
Private(GraphicsView *_q)
Definition: kdganttgraphicsview.cpp:158
void setItemDelegate(ItemDelegate *delegate)
Definition: kdganttgraphicsview.cpp:458
void slotDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
Definition: kdganttgraphicsview.cpp:211
Abstract baseclass for grids. A grid is used to convert between QModelIndex'es and gantt chart values...
Definition: kdganttabstractgrid.h:40
void removeItem(QGraphicsItem *item)
void slotItemDoubleClicked(const QModelIndex &idx)
Definition: kdganttgraphicsview.cpp:270
Qt::ContextMenuPolicy headerContextMenuPolicy() const
Definition: kdganttgraphicsview.cpp:539
void updateRow(const QModelIndex &)
Definition: kdganttgraphicsview.cpp:613
void slotItemClicked(const QModelIndex &idx)
Definition: kdganttgraphicsview.cpp:262
int row() const
void deleteSubtree(const QModelIndex &)
Definition: kdganttgraphicsview.cpp:673
QGraphicsItem * itemAt(const QPoint &pos) const
void setScene(QGraphicsScene *scene)
void setRootIndex(const QModelIndex &)
Definition: kdganttgraphicsview.cpp:428
void slotHorizontalScrollValueChanged(int val)
Definition: kdganttgraphicsview.cpp:180
void doubleClicked(const QModelIndex &index)
minimum
QModelIndex parent() const
QRect rect() const
void setSummaryHandlingModel(QAbstractProxyModel *model)
Definition: kdganttgraphicsview.cpp:375
HeaderWidget(GraphicsView *parent)
Definition: kdganttgraphicsview.cpp:50
QModelIndex indexAt(const QPoint &pos) const
Definition: kdganttgraphicsview.cpp:596
void setModel(QAbstractItemModel *)
Definition: kdganttgraphicsview.cpp:356
void slotColumnsInserted(const QModelIndex &parent, int start, int end)
Definition: kdganttgraphicsview.cpp:190
void setCheckable(bool)
void slotRowsRemoved(const QModelIndex &parent, int start, int end)
Definition: kdganttgraphicsview.cpp:251
qreal width() const
void setRowController(AbstractRowController *)
Definition: kdganttgraphicsview.cpp:475
QAbstractProxyModel * summaryHandlingModel() const
Definition: kdganttgraphicsview.cpp:420
void resizeEvent(QResizeEvent *)
Definition: kdganttgraphicsview.cpp:564
virtual void addConstraint(const QModelIndex &from, const QModelIndex &to, Qt::KeyboardModifiers modifiers)
Definition: kdganttgraphicsview.cpp:552
void slotColumnsRemoved(const QModelIndex &parent, int start, int end)
Definition: kdganttgraphicsview.cpp:202
void setTop(qreal y)
void setWidth(qreal width)
void clicked(const QModelIndex &index)
virtual int totalHeight() const =0
virtual void paintHeader(QPainter *painter, const QRectF &headerRect, const QRectF &exposedRect, qreal offset, QWidget *widget=0)=0
void updateHeaderGeometry()
Definition: kdganttgraphicsview.cpp:163
void invalidate(qreal x, qreal y, qreal w, qreal h, QFlags< QGraphicsScene::SceneLayer > layers)
QScrollBar * horizontalScrollBar() const
void addConstraint(const Constraint &c)
Definition: kdganttconstraintmodel.cpp:101
qreal height() const
QRectF itemsBoundingRect() const
GraphicsView(QWidget *parent=0)
Definition: kdganttgraphicsview.cpp:304
bool hasConstraint(const Constraint &c) const
Definition: kdganttconstraintmodel.cpp:196
void setSize(const QSizeF &size)
bool removeConstraint(const Constraint &c)
Definition: kdganttconstraintmodel.cpp:122
qreal height() const
maximum
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
void setHeaderContextMenuPolicy(Qt::ContextMenuPolicy)
Definition: kdganttgraphicsview.cpp:532
Definition: kdganttgraphicsitem.h:42
Abstract baseclass for row controllers. A row controller is used by the GraphicsView to nagivate the ...
Definition: kdganttabstractrowcontroller.h:34
void setExclusive(bool)
void slotRowsAboutToBeRemoved(const QModelIndex &parent, int start, int end)
Definition: kdganttgraphicsview.cpp:240
Definition: kdganttdatetimegrid.h:69
qreal width() const
QModelIndex rootIndex() const
Definition: kdganttgraphicsview.cpp:435
typedef KeyboardModifiers
virtual void resizeEvent(QResizeEvent *event)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.