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) );
Class used to render gantt items in a KDGantt::GraphicsView.
Definition: kdganttitemdelegate.h:39
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 entered(const QModelIndex &index)
void pressed(const QModelIndex &index)
void setSelectionModel(QItemSelectionModel *)
Definition: kdganttgraphicsview.cpp:443
void slotLayoutChanged()
Definition: kdganttgraphicsview.cpp:220
void slotRowsInserted(const QModelIndex &parent, int start, int end)
Definition: kdganttgraphicsview.cpp:232
void contextMenuEvent(QContextMenuEvent *ev)
Definition: kdganttgraphicsview.cpp:75
QItemSelectionModel * selectionModel() const
Definition: kdganttgraphicsview.cpp:450
QAbstractItemModel * model() const
Definition: kdganttgraphicsview.cpp:370
AbstractRowController * rowController() const
Definition: kdganttgraphicsview.cpp:485
void slotModelReset()
Definition: kdganttgraphicsview.cpp:226
void paintEvent(QPaintEvent *ev)
Definition: kdganttgraphicsview.cpp:68
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 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
void deleteSubtree(const QModelIndex &)
Definition: kdganttgraphicsview.cpp:673
void setRootIndex(const QModelIndex &)
Definition: kdganttgraphicsview.cpp:428
void slotHorizontalScrollValueChanged(int val)
Definition: kdganttgraphicsview.cpp:180
void doubleClicked(const QModelIndex &index)
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 slotRowsRemoved(const QModelIndex &parent, int start, int end)
Definition: kdganttgraphicsview.cpp:251
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 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 addConstraint(const Constraint &c)
Definition: kdganttconstraintmodel.cpp:101
GraphicsView(QWidget *parent=0)
Definition: kdganttgraphicsview.cpp:304
bool hasConstraint(const Constraint &c) const
Definition: kdganttconstraintmodel.cpp:196
bool removeConstraint(const Constraint &c)
Definition: kdganttconstraintmodel.cpp:122
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 slotRowsAboutToBeRemoved(const QModelIndex &parent, int start, int end)
Definition: kdganttgraphicsview.cpp:240
Definition: kdganttdatetimegrid.h:69
QModelIndex rootIndex() const
Definition: kdganttgraphicsview.cpp:435
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.