Comment out some qDebug() statements

This commit is contained in:
Bart De Vries 2021-04-30 19:10:10 +02:00
parent 2e777630bc
commit cbf0d9c622
5 changed files with 13 additions and 13 deletions

View File

@ -448,7 +448,7 @@ void AudioManagerPrivate::prepareAudioStream()
* Unfortunately, this will produce an audible glitch with the current
* QMediaPlayer backend.
*/
qDebug() << "voodoo happening";
//qDebug() << "voodoo happening";
qint64 startingPosition = m_entry->enclosure()->playPosition();
m_player.play();
if (!m_player.isSeekable()) {

View File

@ -36,16 +36,16 @@ int DownloadProgressModel::rowCount(const QModelIndex &parent) const
void DownloadProgressModel::monitorDownloadProgress(Entry* entry, Enclosure::Status status)
{
qDebug() << "download status changed:" << entry->title() << status;
//qDebug() << "download status changed:" << entry->title() << status;
if (status == Enclosure::Downloading && !m_entries.contains(entry->id())) {
qDebug() << "inserting dowloading entry" << entry->id() << "in position" << m_entries.count();
//qDebug() << "inserting dowloading entry" << entry->id() << "in position" << m_entries.count();
beginInsertRows(QModelIndex(), m_entries.count(), m_entries.count());
m_entries += entry->id();
endInsertRows();
}
if (status != Enclosure::Downloading && m_entries.contains(entry->id())) {
int index = m_entries.indexOf(entry->id());
qDebug() << "removing dowloading entry" << entry->id() << "in position" << index;
//qDebug() << "removing dowloading entry" << entry->id() << "in position" << index;
beginRemoveRows(QModelIndex(), index, index);
m_entries.removeAt(index);
endRemoveRows();

View File

@ -164,7 +164,7 @@ void Enclosure::processDownloadedFile() {
void Enclosure::deleteFile()
{
qDebug() << "Trying to delete enclosure file" << path();
//qDebug() << "Trying to delete enclosure file" << path();
// First check if file still exists; you never know what has happened
if (QFile(path()).exists())
QFile(path()).remove();
@ -204,12 +204,12 @@ int Enclosure::size() const {
void Enclosure::setPlayPosition(const qint64 &position)
{
m_playposition = position;
qDebug() << "save playPosition" << position << m_entry->title();
//qDebug() << "save playPosition" << position << m_entry->title();
Q_EMIT playPositionChanged();
// let's only save the play position to the database every 15 seconds
if ((abs(m_playposition - m_playposition_dbsave) > 15000) || position == 0) {
qDebug() << "save playPosition to database" << position << m_entry->title();
//qDebug() << "save playPosition to database" << position << m_entry->title();
QSqlQuery query;
query.prepare(QStringLiteral("UPDATE Enclosures SET playposition=:playposition WHERE id=:id AND feed=:feed"));
query.bindValue(QStringLiteral(":id"), m_entry->id());
@ -226,7 +226,7 @@ void Enclosure::setDuration(const qint64 &duration)
Q_EMIT durationChanged();
// also save to database
qDebug() << "updating entry duration" << duration << m_entry->title();
//qDebug() << "updating entry duration" << duration << m_entry->title();
QSqlQuery query;
query.prepare(QStringLiteral("UPDATE Enclosures SET duration=:duration WHERE id=:id AND feed=:feed"));
query.bindValue(QStringLiteral(":id"), m_entry->id());

View File

@ -296,7 +296,7 @@ void MediaPlayer2Player::audioPositionChanged()
void MediaPlayer2Player::audioDurationChanged()
{
qDebug() << "Signal change of audio duration through MPRIS2";
//qDebug() << "Signal change of audio duration through MPRIS2";
// We reset all metadata in case the audioDuration changed
// This is done because duration is not yet available when setEntry is
// called (this is before the QMediaPlayer has read the new track
@ -358,7 +358,7 @@ void MediaPlayer2Player::setEntry(Entry* entry)
if (m_audioPlayer->entry()) {
if (m_audioPlayer->entry() == entry) {
int queuenr = DataManager::instance().getQueue().indexOf(m_audioPlayer->entry()->id());
qDebug() << "MPRIS2: Setting entry" << entry->title();
//qDebug() << "MPRIS2: Setting entry" << entry->title();
m_currentTrackId = QDBusObjectPath(QLatin1String("/org/kde/alligator/playlist/") + QString::number(queuenr)).path();
m_metadata = getMetadataOfCurrentTrack();

View File

@ -121,7 +121,7 @@ void PowerManagementInterface::uninhibitDBusCallFinishedPlasmaWorkspace(QDBusPen
#if !defined Q_OS_ANDROID && !defined Q_OS_WIN
QDBusPendingReply<> reply = *aWatcher;
if (reply.isError()) {
qDebug() << "PowerManagementInterface::uninhibitDBusCallFinished" << reply.error();
//qDebug() << "PowerManagementInterface::uninhibitDBusCallFinished" << reply.error();
} else {
d->mInhibitedSleep = false;
@ -138,7 +138,7 @@ void PowerManagementInterface::inhibitDBusCallFinishedGnomeWorkspace(QDBusPendin
#if !defined Q_OS_ANDROID && !defined Q_OS_WIN
QDBusPendingReply<uint> reply = *aWatcher;
if (reply.isError()) {
qDebug() << "PowerManagementInterface::inhibitDBusCallFinishedGnomeWorkspace" << reply.error();
//qDebug() << "PowerManagementInterface::inhibitDBusCallFinishedGnomeWorkspace" << reply.error();
} else {
d->mInhibitSleepCookie = reply.argumentAt<0>();
d->mInhibitedSleep = true;
@ -156,7 +156,7 @@ void PowerManagementInterface::uninhibitDBusCallFinishedGnomeWorkspace(QDBusPend
#if !defined Q_OS_ANDROID && !defined Q_OS_WIN
QDBusPendingReply<> reply = *aWatcher;
if (reply.isError()) {
qDebug() << "PowerManagementInterface::uninhibitDBusCallFinished" << reply.error();
//qDebug() << "PowerManagementInterface::uninhibitDBusCallFinished" << reply.error();
} else {
d->mInhibitedSleep = false;