mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
feat(dde-dock):change plugin item radius for task 12385
This commit is contained in:
parent
e50f8a2128
commit
4d2e87f34a
@ -269,6 +269,12 @@ void DockItem::showHoverTips()
|
||||
|
||||
void DockItem::showPopupWindow(QWidget *const content, const bool model)
|
||||
{
|
||||
if(itemType() == App){
|
||||
PopupWindow->setRadius(18);
|
||||
}else {
|
||||
PopupWindow->setRadius(6);
|
||||
}
|
||||
|
||||
m_popupShown = true;
|
||||
m_lastPopupWidget = content;
|
||||
|
||||
|
@ -617,10 +617,14 @@ DockItem *MainPanelControl::dropTargetItem(DockItem *sourceItem, QPoint point)
|
||||
QRect rect;
|
||||
|
||||
rect.setTopLeft(dockItem->pos());
|
||||
if ((m_position == Position::Top) || (m_position == Position::Bottom)) {
|
||||
rect.setSize(QSize(PLUGIN_MAX_SIZE, height()));
|
||||
if (dockItem->itemType() == DockItem::Plugins) {
|
||||
if ((m_position == Position::Top) || (m_position == Position::Bottom)) {
|
||||
rect.setSize(QSize(PLUGIN_MAX_SIZE, height()));
|
||||
} else {
|
||||
rect.setSize(QSize(width(), PLUGIN_MAX_SIZE));
|
||||
}
|
||||
} else {
|
||||
rect.setSize(QSize(width(), PLUGIN_MAX_SIZE));
|
||||
rect.setSize(dockItem->size());
|
||||
}
|
||||
if (rect.contains(point)) {
|
||||
targetItem = dockItem;
|
||||
|
Loading…
x
Reference in New Issue
Block a user