mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-13 22:05:48 +00:00
implement qcronscheduler, tests update
This commit is contained in:
@ -240,9 +240,9 @@ QString PlayerSource::buildString(const QString ¤t, const QString &value,
|
||||
|
||||
int index = value.indexOf(current);
|
||||
if ((current.isEmpty()) || ((index + s + 1) > value.count()))
|
||||
return QString("%1").arg(value.left(s), s, QLatin1Char(' '));
|
||||
return QString("%1").arg(value.left(s), -s, QLatin1Char(' '));
|
||||
else
|
||||
return QString("%1").arg(value.mid(index + 1, s), s, QLatin1Char(' '));
|
||||
return QString("%1").arg(value.mid(index + 1, s), -s, QLatin1Char(' '));
|
||||
}
|
||||
|
||||
|
||||
@ -329,8 +329,8 @@ QVariantHash PlayerSource::getPlayerMpdInfo()
|
||||
} else if (m_mpdSocket.state() == QAbstractSocket::ConnectedState) {
|
||||
// send request
|
||||
if (m_mpdSocket.write(MPD_STATUS_REQUEST) == -1)
|
||||
qCWarning(LOG_ESS) << "Could not write request to"
|
||||
<< m_mpdSocket.peerName();
|
||||
qCWarning(LOG_ESS)
|
||||
<< "Could not write request to" << m_mpdSocket.peerName();
|
||||
}
|
||||
|
||||
return m_mpdCached;
|
||||
|
Reference in New Issue
Block a user