Commit e5933c47 authored by Jonathan Marten's avatar Jonathan Marten

KonqClosedItem: port kDebug -> qDebug

Avoids a stream of messages when closing a Konqueror window:

konqueror(27265)/default kDebugStream: kDebugStream called after
destruction (from virtual KonqClosedItem::~KonqClosedItem() file
konqueror/src/konqcloseditem.cpp line 58)
parent b668e391
......@@ -24,7 +24,7 @@
#include <QFontMetrics>
#include <QPainter>
#include <kconfig.h>
#include <kdebug.h>
#include <QDebug>
#include <kglobal.h>
#include <kglobalsettings.h>
#include <QIcon>
......@@ -55,20 +55,20 @@ KonqClosedItem::KonqClosedItem(const QString& title, const QString& group, quint
KonqClosedItem::~KonqClosedItem()
{
kDebug() << "deleting group" << m_configGroup.name();
qDebug() << "deleting group" << m_configGroup.name();
m_configGroup.deleteGroup();
}
KonqClosedTabItem::KonqClosedTabItem(const QString& url, const QString& title, int pos, quint64 serialNumber)
: KonqClosedItem(title, "Closed_Tab" + QString::number(reinterpret_cast<qint64>(this)), serialNumber), m_url(url), m_pos(pos)
{
kDebug() << m_configGroup.name();
qDebug() << m_configGroup.name();
}
KonqClosedTabItem::~KonqClosedTabItem()
{
m_configGroup.deleteGroup();
kDebug() << "deleted group" << m_configGroup.name();
qDebug() << "deleted group" << m_configGroup.name();
}
QPixmap KonqClosedTabItem::icon() const {
......@@ -78,7 +78,7 @@ QPixmap KonqClosedTabItem::icon() const {
KonqClosedWindowItem::KonqClosedWindowItem(const QString& title, quint64 serialNumber, int numTabs)
: KonqClosedItem(title, "Closed_Window" + QString::number(reinterpret_cast<qint64>(this)), serialNumber), m_numTabs(numTabs)
{
kDebug() << m_configGroup.name();
qDebug() << m_configGroup.name();
}
KonqClosedWindowItem::~KonqClosedWindowItem()
......@@ -125,7 +125,7 @@ KonqClosedRemoteWindowItem::KonqClosedRemoteWindowItem(const QString& title,
m_remoteGroupName(groupName), m_remoteConfigFileName(configFileName),
m_dbusService(dbusService), m_remoteConfigGroup(0L), m_remoteConfig(0L)
{
kDebug();
qDebug();
}
KonqClosedRemoteWindowItem::~KonqClosedRemoteWindowItem()
......@@ -142,7 +142,7 @@ void KonqClosedRemoteWindowItem::readConfig() const
m_remoteConfig = new KConfig( m_remoteConfigFileName, KConfig::SimpleConfig);
m_remoteConfigGroup = new KConfigGroup(m_remoteConfig, m_remoteGroupName);
kDebug();
qDebug();
}
const KConfigGroup& KonqClosedRemoteWindowItem::configGroup() const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment