mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-10 23:23:52 +01:00
Storing pointers in category editings.
This commit is contained in:
parent
27488ed2c3
commit
4b92cdcb39
@ -64,7 +64,10 @@ void FormCategoryDetails::loadCategories(const QList<FeedsModelCategory *> categ
|
||||
FeedsModelRootItem *root_item) {
|
||||
m_ui->m_cmbParentCategory->addItem(root_item->icon(),
|
||||
root_item->title(),
|
||||
root_item->id());
|
||||
QVariant::fromValue((void*) root_item));
|
||||
// pro ziskani root_item static_cast<FeedsModelRootItem*>(itemData(i).value<void*>())
|
||||
// a stejně dole ve foreachi
|
||||
|
||||
|
||||
foreach (FeedsModelCategory *category, categories) {
|
||||
m_ui->m_cmbParentCategory->addItem(category->data(FDS_MODEL_TITLE_INDEX,
|
||||
|
Loading…
Reference in New Issue
Block a user