mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
feat(pluginitem):modify drag display error
This commit is contained in:
parent
073a598268
commit
c672482453
@ -125,7 +125,7 @@ DockItem::ItemType PluginsItem::itemType() const
|
||||
if (m_pluginInter->type() == PluginsItemInterface::Normal) {
|
||||
return Plugins;
|
||||
} else {
|
||||
return Launcher;
|
||||
return FixedPlugin;
|
||||
}
|
||||
}
|
||||
|
||||
@ -386,6 +386,13 @@ bool PluginsItem::checkGSettingsControl() const
|
||||
: false;
|
||||
}
|
||||
|
||||
void PluginsItem::resizeEvent(QResizeEvent *event)
|
||||
{
|
||||
setMinimumSize(m_centralWidget->minimumSize());
|
||||
setMaximumSize(m_centralWidget->maximumSize());
|
||||
return DockItem::resizeEvent(event);
|
||||
}
|
||||
|
||||
void PluginsItem::setDraging(bool bDrag)
|
||||
{
|
||||
DockItem::setDraging(bDrag);
|
||||
|
@ -72,6 +72,7 @@ protected:
|
||||
void showPopupWindow(QWidget *const content, const bool model = false) override;
|
||||
const QString contextMenu() const override;
|
||||
QWidget *popupTips() override;
|
||||
void resizeEvent(QResizeEvent *event) override;
|
||||
|
||||
private:
|
||||
void startDrag();
|
||||
|
Loading…
x
Reference in New Issue
Block a user