@@ -201,9 +201,9 @@ void TaskManager::requestClose(const QModelIndex &index, bool force) const
201201 m_itemModel->requestClose (index, force);
202202}
203203
204- void TaskManager::requestUpdateWindowGeometry (const QModelIndex &index, const QRect &geometry, QObject *delegate) const
204+ void TaskManager::requestUpdateWindowIconGeometry (const QModelIndex &index, const QRect &geometry, QObject *delegate) const
205205{
206- m_itemModel->requestUpdateWindowGeometry (index, geometry, delegate);
206+ m_itemModel->requestUpdateWindowIconGeometry (index, geometry, delegate);
207207}
208208
209209void TaskManager::requestPreview (const QModelIndex &index, QObject *relativePositionItem, int32_t previewXoffset, int32_t previewYoffset, uint32_t direction)
@@ -312,16 +312,6 @@ void TaskManager::hideItemPreview()
312312 m_windowMonitor->hideItemPreview ();
313313}
314314
315- void TaskManager::setAppItemWindowIconGeometry (const QString& appid, QObject* relativePositionItem, const int & x1, const int & y1, const int & x2, const int & y2)
316- {
317- QPointer<AppItem> item = static_cast <AppItem*>(ItemModel::instance ()->getItemById (appid).get ());
318- if (item.isNull ()) return ;
319-
320- for (auto window : item->getAppendWindows ()) {
321- window->setWindowIconGeometry (qobject_cast<QWindow*>(relativePositionItem), QRect (QPoint (x1, y1),QPoint (x2, y2)));
322- }
323- }
324-
325315bool TaskManager::allowForceQuit ()
326316{
327317 return Settings->isAllowedForceQuit ();
0 commit comments