feat(pluginitem):modify drag display error

This commit is contained in:
shaojun 2019-09-04 13:18:05 +08:00
parent 073a598268
commit c672482453
2 changed files with 9 additions and 1 deletions

View File

@ -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);

View File

@ -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();