~ubuntu-branches/ubuntu/quantal/kdepim/quantal

« back to all changes in this revision

Viewing changes to kdgantt2/kdganttgraphicsview.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:51 UTC
  • mto: This revision was merged to the branch mainline in revision 193.
  • Revision ID: package-import@ubuntu.com-20111215141751-bmhdpiwl23wd9w26
Tags: upstream-4.7.90
ImportĀ upstreamĀ versionĀ 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
308
308
#if defined KDAB_EVAL
309
309
  EvalDialog::checkEvalLicense( "KD Gantt" );
310
310
#endif
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 );
328
328
 
329
329
    // HACK!
360
360
    }
361
361
 
362
362
    d->scene.setModel( model );
363
 
    connect( model, SIGNAL( dataChanged(  const QModelIndex&, const QModelIndex& ) ),
364
 
             this, SLOT( updateSceneRect() ) );
 
363
    connect( model, SIGNAL(dataChanged(QModelIndex,QModelIndex)),
 
364
             this, SLOT(updateSceneRect()) );
365
365
    updateScene();
366
366
}
367
367
 
380
380
    /* Connections. We have to rely on the treeview
381
381
     * to receive the signals before we do(!)
382
382
     */
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)) );
399
399
 
400
400
    updateScene();
401
401
}