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:
Aaron J. Seigo 2008-12-09 20:37:41 +00:00
parent f0c5eeea37
commit a6140d5a27
3 changed files with 4 additions and 1 deletions

View File

@ -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);

View File

@ -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;

View File

@ -143,6 +143,7 @@ bool ThemePrivate::useCache()
return cacheTheme;
}
QString ThemePrivate::findInTheme(const QString &image, const QString &theme) const
{
//TODO: this should be using Package