Skip to content

Commit

Permalink
Fix 1070 errors (#4)
Browse files Browse the repository at this point in the history
* fix: 1070 plugins need modify

as title

Log: as title
Influence: tray display
  • Loading branch information
yixinshark authored Jun 27, 2024
1 parent 96d2345 commit 0659dfb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions plugins/dde-dock/datetime/datetimewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -541,11 +541,11 @@ void DatetimeWidget::paintEvent(QPaintEvent *e)

void DatetimeWidget::setDockPanelSize(const QSize &dockSize)
{
// 任务栏高度最小是40,小于40说明在隐藏和显示动画中
if (dockSize.width() < 40) {
// 任务栏高度最小是37,小于37说明在隐藏和显示动画中
if (dockSize.width() < 37) {
return;
}
if (dockSize.height() < 40) {
if (dockSize.height() < 37) {
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public Q_SLOTS:
QWidget *itemWidget(const QString &itemKey) override;
QWidget *itemTipsWidget(const QString &itemKey) override;
QWidget *itemPopupApplet(const QString &itemKey) override;
PluginSizePolicy pluginSizePolicy() const override { return Custom; }

int itemSortKey(const QString &itemKey) override;
void setSortKey(const QString &itemKey, int order) override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#ifndef WIRELESSCASTINGPLUGIN_H
#define WIRELESSCASTINGPLUGIN_H
#include "wirelesscastingitem.h"
#include <pluginsiteminterface_v2.h>
#include "pluginsiteminterface_v2.h"

#include <QObject>

Expand Down

0 comments on commit 0659dfb

Please sign in to comment.