forked from qt-creator/qt-creator
Id: Add QByteArray constructor
Distinguish from const char * one. QString ctor is yet to be removed Change-Id: I2da231036c6417353b0566d39666d918ad141c6d Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
f31da9ac55
commit
7c4e2b6c60
@@ -558,14 +558,14 @@ void TaskWindow::updateCategoriesMenu()
|
||||
action->setCheckable(true);
|
||||
action->setText(displayName);
|
||||
action->setData(categoryId);
|
||||
action->setChecked(!filteredCategories.contains(Core::Id(categoryId.constData())));
|
||||
action->setChecked(!filteredCategories.contains(Core::Id(categoryId)));
|
||||
d->m_categoriesMenu->addAction(action);
|
||||
}
|
||||
}
|
||||
|
||||
void TaskWindow::filterCategoryTriggered(QAction *action)
|
||||
{
|
||||
Core::Id categoryId(action->data().toByteArray().constData());
|
||||
Core::Id categoryId(action->data().toByteArray());
|
||||
QTC_CHECK(categoryId.uniqueIdentifier() != 0);
|
||||
|
||||
setCategoryVisibility(categoryId, action->isChecked());
|
||||
|
||||
Reference in New Issue
Block a user