mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-02 15:45:21 +00:00
hide launar info when not chinese lauguage
Change-Id: I8ebb1c475dccd1be8d3494e6248d33b1219d5a1e
This commit is contained in:
parent
dd20d77e3f
commit
5c3656099b
@ -8,6 +8,10 @@ DatetimePlugin::DatetimePlugin(QObject *parent)
|
||||
m_refershTimer(new QTimer(this))
|
||||
{
|
||||
m_calendar->setFixedSize(300, 300);
|
||||
m_calendar->setDateInfoVisible(true);
|
||||
m_calendar->setControlPanelVisible(false);
|
||||
m_calendar->setSolarDisplayFormat(tr("MM/dd/yyyy"));
|
||||
m_calendar->setLunarVisible(QLocale::system().name().startsWith("zh_"));
|
||||
|
||||
m_refershTimer->setInterval(1000);
|
||||
m_refershTimer->start();
|
||||
@ -20,6 +24,7 @@ DatetimePlugin::DatetimePlugin(QObject *parent)
|
||||
DatetimePlugin::~DatetimePlugin()
|
||||
{
|
||||
delete m_centeralWidget;
|
||||
delete m_calendar;
|
||||
}
|
||||
|
||||
const QString DatetimePlugin::pluginName() const
|
||||
@ -65,6 +70,8 @@ QWidget *DatetimePlugin::itemTipsWidget(const QString &itemKey)
|
||||
{
|
||||
Q_UNUSED(itemKey);
|
||||
|
||||
m_calendar->setCurrentDate(QDate::currentDate());
|
||||
|
||||
return m_calendar;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user