changed activate dus interface

Change-Id: I88cfceab09abb643971b3752e42d63c0aff06e32
This commit is contained in:
石博文 2016-06-17 09:42:06 +08:00 committed by Hualet Wang
parent d501d3903b
commit 20ad0443c6
3 changed files with 5 additions and 9 deletions

View File

@ -88,13 +88,6 @@ public Q_SLOTS: // METHODS
return asyncCallWithArgumentList(QStringLiteral("Activate"), argumentList); 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 Q_SIGNALS: // SIGNALS
// begin property changed signals // begin property changed signals
void ActiveChanged(); void ActiveChanged();

View File

@ -76,7 +76,7 @@ void AppItem::mouseReleaseEvent(QMouseEvent *e)
// activate // activate
// TODO: dbus signature changed // TODO: dbus signature changed
if (e->button() == Qt::LeftButton) if (e->button() == Qt::LeftButton)
m_itemEntry->Activate1(); m_itemEntry->Activate();
} }
void AppItem::mousePressEvent(QMouseEvent *e) void AppItem::mousePressEvent(QMouseEvent *e)

View File

@ -5,7 +5,10 @@ DatetimePlugin::DatetimePlugin(QObject *parent)
m_timeLabel(new QLabel), m_timeLabel(new QLabel),
m_refershTimer(new QTimer(this)) 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->setInterval(1000);
m_refershTimer->start(); m_refershTimer->start();