mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
fix: 修复任务栏时间显示不完整的bug
字符长度改变,控件大小未更新 Log: 设置短时间为09:40,任务栏的时间显示不对 Bug: https://pms.uniontech.com/zentao/bug-view-57609.html Change-Id: I31da80c427f191285506f5bfcaf3fb359332b5e9
This commit is contained in:
parent
b6da22b85e
commit
b01ed5c347
@ -86,6 +86,10 @@ void DatetimeWidget::setShortDateFormat(int type)
|
|||||||
default: m_shortDateFormat = "yyyy-MM-dd"; break;
|
default: m_shortDateFormat = "yyyy-MM-dd"; break;
|
||||||
}
|
}
|
||||||
update();
|
update();
|
||||||
|
adjustSize();
|
||||||
|
if (isVisible()) {
|
||||||
|
emit requestUpdateGeometry();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -100,6 +104,10 @@ void DatetimeWidget::setShortTimeFormat(int type)
|
|||||||
default: m_shortTimeFormat = "hh:mm"; break;
|
default: m_shortTimeFormat = "hh:mm"; break;
|
||||||
}
|
}
|
||||||
update();
|
update();
|
||||||
|
adjustSize();
|
||||||
|
if (isVisible()) {
|
||||||
|
emit requestUpdateGeometry();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QSize DatetimeWidget::curTimeSize() const
|
QSize DatetimeWidget::curTimeSize() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user