Skip to content

Commit

Permalink
Indicator plugin: update titles
Browse files Browse the repository at this point in the history
  • Loading branch information
justforlxz committed Jun 27, 2017
1 parent cabfcbf commit d7670f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/indicator/View/indicatorwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ IndicatorWidget::IndicatorWidget(QWidget *parent) : QWidget(parent)

connect(m_dockInter, &DBusDock::EntryAdded, this, &IndicatorWidget::addEntry);
connect(m_dockInter, &DBusDock::EntryRemoved, this, &IndicatorWidget::removeEntry);
connect(m_dockInter, &DBusDock::EntriesChanged, this, [=] {
qDebug() << "ssssss";
});

connect(m_smallWatcher, &QFutureWatcher<QPixmap>::finished, this, &IndicatorWidget::refreshIcon);

Expand Down Expand Up @@ -61,6 +64,9 @@ void IndicatorWidget::addEntry(const QDBusObjectPath &entryPath, const int index
m_entryList.append(entry);

connect(entry, &DBusDockEntry::ActiveChanged, this, &IndicatorWidget::refreshActiveWindow, Qt::UniqueConnection);
connect(entry, &DBusDockEntry::TitlesChanged, this, [=] {
m_entry->setText(windowTitle(entry->titles()));
});

refreshActiveWindow();
}
Expand Down

0 comments on commit d7670f3

Please sign in to comment.