mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 10:21:04 +02:00
CComponentsForm: add member to get pointer to selected items
Origin commit data
------------------
Branch: ni/coolstream
Commit: e1b9f0a184
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-08-26 (Tue, 26 Aug 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -491,3 +491,14 @@ int CComponentsForm::getSelectedItem()
|
||||
return static_cast<int>(i);
|
||||
return -1;
|
||||
}
|
||||
|
||||
CComponentsItem* CComponentsForm::getSelectedItemObject()
|
||||
{
|
||||
int sel = getSelectedItem();
|
||||
CComponentsItem* ret = NULL;
|
||||
if (sel != -1)
|
||||
ret = static_cast<CComponentsItem*>(this->getCCItem(sel));
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user