308
308
#if defined KDAB_EVAL
309
309
EvalDialog::checkEvalLicense( "KD Gantt" );
311
connect( horizontalScrollBar(), SIGNAL( valueChanged( int ) ),
312
this, SLOT( slotHorizontalScrollValueChanged( int ) ) );
313
connect( &_d->scene, SIGNAL( gridChanged() ),
314
this, SLOT( slotGridChanged() ) );
315
connect( &_d->scene, SIGNAL( entered( const QModelIndex& ) ),
316
this, SIGNAL( entered( const QModelIndex& ) ) );
317
connect( &_d->scene, SIGNAL( pressed( const QModelIndex& ) ),
318
this, SIGNAL( pressed( const QModelIndex& ) ) );
319
connect( &_d->scene, SIGNAL( clicked( const QModelIndex& ) ),
320
this, SLOT( slotItemClicked( const QModelIndex& ) ) );
321
connect( &_d->scene, SIGNAL( doubleClicked( const QModelIndex& ) ),
322
this, SLOT( slotItemDoubleClicked( const QModelIndex& ) ) );
323
connect( &_d->scene, SIGNAL( sceneRectChanged( const QRectF& ) ),
324
this, SLOT( updateSceneRect() ) );
325
connect( &_d->headerwidget, SIGNAL( customContextMenuRequested( const QPoint& ) ),
326
this, SLOT( slotHeaderContextMenuRequested( const QPoint& ) ) );
311
connect( horizontalScrollBar(), SIGNAL(valueChanged(int)),
312
this, SLOT(slotHorizontalScrollValueChanged(int)) );
313
connect( &_d->scene, SIGNAL(gridChanged()),
314
this, SLOT(slotGridChanged()) );
315
connect( &_d->scene, SIGNAL(entered(QModelIndex)),
316
this, SIGNAL(entered(QModelIndex)) );
317
connect( &_d->scene, SIGNAL(pressed(QModelIndex)),
318
this, SIGNAL(pressed(QModelIndex)) );
319
connect( &_d->scene, SIGNAL(clicked(QModelIndex)),
320
this, SLOT(slotItemClicked(QModelIndex)) );
321
connect( &_d->scene, SIGNAL(doubleClicked(QModelIndex)),
322
this, SLOT(slotItemDoubleClicked(QModelIndex)) );
323
connect( &_d->scene, SIGNAL(sceneRectChanged(QRectF)),
324
this, SLOT(updateSceneRect()) );
325
connect( &_d->headerwidget, SIGNAL(customContextMenuRequested(QPoint)),
326
this, SLOT(slotHeaderContextMenuRequested(QPoint)) );
327
327
setScene( &_d->scene );
380
380
/* Connections. We have to rely on the treeview
381
381
* to receive the signals before we do(!)
383
connect( proxyModel, SIGNAL( columnsInserted( const QModelIndex&, int, int ) ),
384
this, SLOT( slotColumnsInserted( const QModelIndex&, int, int ) ) );
385
connect( proxyModel, SIGNAL( columnsRemoved( const QModelIndex&, int, int ) ),
386
this, SLOT( slotColumnsRemoved( const QModelIndex&, int, int ) ) );
387
connect( proxyModel, SIGNAL( dataChanged( const QModelIndex&, const QModelIndex& ) ),
388
this, SLOT( slotDataChanged( const QModelIndex&, const QModelIndex& ) ) );
389
connect( proxyModel, SIGNAL( layoutChanged() ),
390
this, SLOT( slotLayoutChanged() ) );
391
connect( proxyModel, SIGNAL( modelReset() ),
392
this, SLOT( slotModelReset() ) );
393
connect( proxyModel, SIGNAL( rowsInserted( const QModelIndex&, int, int ) ),
394
this, SLOT( slotRowsInserted( const QModelIndex&, int, int ) ) );
395
connect( proxyModel, SIGNAL( rowsAboutToBeRemoved( const QModelIndex&, int, int ) ),
396
this, SLOT( slotRowsAboutToBeRemoved( const QModelIndex&, int, int ) ) );
397
connect( proxyModel, SIGNAL( rowsRemoved( const QModelIndex&, int, int ) ),
398
this, SLOT( slotRowsRemoved( const QModelIndex&, int, int ) ) );
383
connect( proxyModel, SIGNAL(columnsInserted(QModelIndex,int,int)),
384
this, SLOT(slotColumnsInserted(QModelIndex,int,int)) );
385
connect( proxyModel, SIGNAL(columnsRemoved(QModelIndex,int,int)),
386
this, SLOT(slotColumnsRemoved(QModelIndex,int,int)) );
387
connect( proxyModel, SIGNAL(dataChanged(QModelIndex,QModelIndex)),
388
this, SLOT(slotDataChanged(QModelIndex,QModelIndex)) );
389
connect( proxyModel, SIGNAL(layoutChanged()),
390
this, SLOT(slotLayoutChanged()) );
391
connect( proxyModel, SIGNAL(modelReset()),
392
this, SLOT(slotModelReset()) );
393
connect( proxyModel, SIGNAL(rowsInserted(QModelIndex,int,int)),
394
this, SLOT(slotRowsInserted(QModelIndex,int,int)) );
395
connect( proxyModel, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)),
396
this, SLOT(slotRowsAboutToBeRemoved(QModelIndex,int,int)) );
397
connect( proxyModel, SIGNAL(rowsRemoved(QModelIndex,int,int)),
398
this, SLOT(slotRowsRemoved(QModelIndex,int,int)) );