Changeset View
Changeset View
Standalone View
Standalone View
tabbox/clientmodel.cpp
Context not available. | |||||
100 | QString ClientModel::longestCaption() const | 100 | QString ClientModel::longestCaption() const | ||
---|---|---|---|---|---|
101 | { | 101 | { | ||
102 | QString caption; | 102 | QString caption; | ||
103 | foreach (const QWeakPointer<TabBoxClient> &clientPointer, m_clientList) { | 103 | for (const QWeakPointer<TabBoxClient> &clientPointer : qAsConst(m_clientList)) { | ||
104 | QSharedPointer<TabBoxClient> client = clientPointer.toStrongRef(); | 104 | QSharedPointer<TabBoxClient> client = clientPointer.toStrongRef(); | ||
105 | if (!client) { | 105 | if (!client) { | ||
106 | continue; | 106 | continue; | ||
Context not available. | |||||
224 | break; | 224 | break; | ||
225 | } | 225 | } | ||
226 | } | 226 | } | ||
227 | foreach (const QWeakPointer< TabBoxClient > &c, stickyClients) { | 227 | for (const QWeakPointer< TabBoxClient > &c : qAsConst(stickyClients)) { | ||
228 | m_clientList.removeAll(c); | 228 | m_clientList.removeAll(c); | ||
229 | m_clientList.prepend(c); | 229 | m_clientList.prepend(c); | ||
230 | } | 230 | } | ||
Context not available. |