mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
fix: typos
This commit is contained in:
parent
2840c86844
commit
c94a4d69a5
@ -209,8 +209,8 @@ void PluginsItem::enterEvent(QEvent *event)
|
||||
void PluginsItem::leaveEvent(QEvent *event)
|
||||
{
|
||||
// Note:
|
||||
// here we should check the mouse position to ensure the mouse is realy leaved
|
||||
// because this leaveEvent will alse be called if setX11PassMouseEvent(false) is invoked
|
||||
// here we should check the mouse position to ensure the mouse is really leaved
|
||||
// because this leaveEvent will also be called if setX11PassMouseEvent(false) is invoked
|
||||
// in XWindowTrayWidget::sendHoverEvent()
|
||||
if (!rect().contains(mapFromGlobal(QCursor::pos()))) {
|
||||
m_hover = false;
|
||||
|
@ -36,7 +36,7 @@ using SystemPowerInter = com::deepin::system::Power;
|
||||
// from https://upower.freedesktop.org/docs/Device.html#Device:State
|
||||
enum BatteryState
|
||||
{
|
||||
UNKOWN = 0,
|
||||
UNKNOWN = 0,
|
||||
CHARGING = 1,
|
||||
DISCHARGING = 2,
|
||||
EMPTY = 3,
|
||||
|
@ -102,7 +102,7 @@ void PopupControlWidget::clearTrashFloder()
|
||||
|
||||
if (count > 0) {
|
||||
// blumia: Workaround. There is a bug with DDialog which will let DDialog always use the smallest
|
||||
// avaliable size of the given icon. So we create a m_dialogTrashFullIcon and leave a minimum
|
||||
// available size of the given icon. So we create a m_dialogTrashFullIcon and leave a minimum
|
||||
// 64*64 pixmap size icon here.
|
||||
QIcon m_dialogTrashFullIcon;
|
||||
QIcon trash_full_icon = QIcon::fromTheme("user-trash-full-opened");
|
||||
|
@ -140,8 +140,8 @@ void FashionTrayWidgetWrapper::enterEvent(QEvent *event)
|
||||
void FashionTrayWidgetWrapper::leaveEvent(QEvent *event)
|
||||
{
|
||||
// Note:
|
||||
// here we should check the mouse position to ensure the mouse is realy leaved
|
||||
// because this leaveEvent will alse be called if setX11PassMouseEvent(false) is invoked
|
||||
// here we should check the mouse position to ensure the mouse is really leaved
|
||||
// because this leaveEvent will also be called if setX11PassMouseEvent(false) is invoked
|
||||
// in XWindowTrayWidget::sendHoverEvent()
|
||||
if (!rect().contains(mapFromGlobal(QCursor::pos()))) {
|
||||
m_hover = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user