use isEmpty; a couple minor, minor changes that crept in while debugging things elsewhere
svn path=/trunk/KDE/kdelibs/; revision=895022
This commit is contained in:
parent
f0c5eeea37
commit
a6140d5a27
@ -59,7 +59,7 @@ void DataContainer::setData(const QString &key, const QVariant &value)
|
||||
|
||||
void DataContainer::removeAllData()
|
||||
{
|
||||
if (d->data.count() < 1) {
|
||||
if (d->data.isEmpty()) {
|
||||
// avoid an update if we don't have any data anyways
|
||||
return;
|
||||
}
|
||||
@ -162,6 +162,7 @@ void DataContainer::disconnectVisualization(QObject *visualization)
|
||||
|
||||
void DataContainer::checkForUpdate()
|
||||
{
|
||||
//kDebug() << objectName() << d->dirty;
|
||||
if (d->dirty) {
|
||||
emit dataUpdated(objectName(), d->data);
|
||||
|
||||
|
@ -110,6 +110,7 @@ void SignalRelay::checkAlignment()
|
||||
|
||||
void SignalRelay::checkQueueing()
|
||||
{
|
||||
//kDebug() << m_queued;
|
||||
if (m_queued) {
|
||||
emit dataUpdated(dc->objectName(), d->data);
|
||||
m_queued = false;
|
||||
|
Loading…
Reference in New Issue
Block a user