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

Method modeForIndex

kdevplatform/shell/launchconfigurationdialog.cpp:780–791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

778}
779
780ILaunchMode* LaunchConfigurationsModel::modeForIndex( const QModelIndex& idx ) const
781{
782 if( idx.isValid() )
783 {
784 auto* item = dynamic_cast<LaunchModeItem*>( static_cast<TreeItem*>( idx.internalPointer() ) );
785 if( item )
786 {
787 return item->mode;
788 }
789 }
790 return nullptr;
791}
792
793LaunchConfiguration* LaunchConfigurationsModel::configForIndex(const QModelIndex& idx ) const
794{

Callers 2

selectionChangedMethod · 0.80
createEditorMethod · 0.80

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected