mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-02 15:45:21 +00:00
changed activate dus interface
Change-Id: I88cfceab09abb643971b3752e42d63c0aff06e32
This commit is contained in:
parent
d501d3903b
commit
20ad0443c6
@ -88,13 +88,6 @@ public Q_SLOTS: // METHODS
|
||||
return asyncCallWithArgumentList(QStringLiteral("Activate"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<> Activate1()
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(qint32(0)) << QVariant::fromValue(qint32(0)) << QVariant::fromValue(quint32(0));
|
||||
return asyncCallWithArgumentList(QStringLiteral("Activate"), argumentList);
|
||||
}
|
||||
|
||||
Q_SIGNALS: // SIGNALS
|
||||
// begin property changed signals
|
||||
void ActiveChanged();
|
||||
|
@ -76,7 +76,7 @@ void AppItem::mouseReleaseEvent(QMouseEvent *e)
|
||||
// activate
|
||||
// TODO: dbus signature changed
|
||||
if (e->button() == Qt::LeftButton)
|
||||
m_itemEntry->Activate1();
|
||||
m_itemEntry->Activate();
|
||||
}
|
||||
|
||||
void AppItem::mousePressEvent(QMouseEvent *e)
|
||||
|
@ -5,7 +5,10 @@ DatetimePlugin::DatetimePlugin(QObject *parent)
|
||||
m_timeLabel(new QLabel),
|
||||
m_refershTimer(new QTimer(this))
|
||||
{
|
||||
m_timeLabel->setStyleSheet("color:red;");
|
||||
m_timeLabel->setAlignment(Qt::AlignCenter);
|
||||
m_timeLabel->setStyleSheet("color:white;"
|
||||
"background-color:black;"
|
||||
"font-size:12px;");
|
||||
|
||||
m_refershTimer->setInterval(1000);
|
||||
m_refershTimer->start();
|
||||
|
Loading…
x
Reference in New Issue
Block a user