fix: typos

This commit is contained in:
Hualet Wang 2019-05-19 15:13:01 +08:00
parent 2840c86844
commit c94a4d69a5
4 changed files with 6 additions and 6 deletions

View File

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

View File

@ -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,

View File

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

View File

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