Commits

flupp committed 39efb30

TaskbarLayout: fixed warning ‘virtual bool TaskManager::AbstractGroupableItem::isGroupItem() const’ is deprecated

  • Participants
  • Parent commits c499bf4

Comments (0)

Files changed (1)

applet/SmoothTasks/TaskbarLayout.cpp

 	qreal sum = 0.0;
 	qreal maxHeight = 0.0;
 	foreach (TaskbarItem* item, m_items) {
-		if (decomposeGroups && item->item->abstractGroupableItem()->isGroupItem()) {
+		if (decomposeGroups && item->item->abstractGroupableItem()->itemType() == TaskManager::GroupItemType) {
 			Applet& applet = *item->item->applet();
 			foreach(TaskManager::AbstractGroupableItem* subitem, static_cast<const TaskManager::TaskGroup*>(item->item->abstractGroupableItem())->members()) {
 				QSizeF size = TaskItem::preferredRdSizeStatic(*subitem, applet, *applet.frame(), m_orientation, maxRdHeight);