MCPcopy Create free account
hub / github.com/KDE/kdevelop / updateState

Method updateState

plugins/patchreview/patchreviewtoolview.cpp:59–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57
58public Q_SLOTS:
59 void updateState( const KDevelop::VcsStatusInfo &status, unsigned hunksNum ) {
60 int row = VcsFileChangesModel::updateState( invisibleRootItem(), status );
61 if ( row == -1 )
62 return;
63
64 QStandardItem *item = invisibleRootItem()->child( row, 0 );
65 setFileInfo( item, hunksNum );
66 item->setData( QVariant( hunksNum ), HunksNumberRole );
67 }
68
69 void updateState( const KDevelop::VcsStatusInfo &status ) {
70 int row = VcsFileChangesModel::updateState( invisibleRootItem(), status );

Callers 1

kompareModelChangedMethod · 0.45

Calls 5

updateStateFunction · 0.85
QVariantClass · 0.50
childMethod · 0.45
setDataMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected