A cleanup in KDiskFreeSpace has been done -> adjust signal/slot to the new (and nicer) method signature

svn path=/trunk/KDE/kdebase/apps/; revision=677710
This commit is contained in:
Peter Penz 2007-06-19 19:08:49 +00:00
parent 051f0b975d
commit a0ed7ae53d
2 changed files with 16 additions and 21 deletions

View file

@ -111,10 +111,10 @@ void StatusBarSpaceInfo::paintEvent(QPaintEvent* /* event */)
}
void StatusBarSpaceInfo::slotFoundMountPoint(const quint64& kBSize,
const quint64& kBUsed,
const quint64& kBAvailable,
const QString& mountPoint)
void StatusBarSpaceInfo::slotFoundMountPoint(const QString& mountPoint,
quint64 kBSize,
quint64 kBUsed,
quint64 kBAvailable)
{
Q_UNUSED(kBUsed);
Q_UNUSED(mountPoint);
@ -148,14 +148,14 @@ void StatusBarSpaceInfo::refresh()
return;
KDiskFreeSpace* job = new KDiskFreeSpace(this);
connect(job, SIGNAL(foundMountPoint(const quint64&,
const quint64&,
const quint64&,
const QString&)),
this, SLOT(slotFoundMountPoint(const quint64&,
const quint64&,
const quint64&,
const QString&)));
connect(job, SIGNAL(foundMountPoint(const QString&,
quint64,
quint64,
quint64)),
this, SLOT(slotFoundMountPoint(const QString&,
quint64,
quint64,
quint64)));
connect(job, SIGNAL(done()),
this, SLOT(showResult()));

View file

@ -51,15 +51,10 @@ protected:
virtual void paintEvent(QPaintEvent* event);
private slots:
/**
* The strange signature of this method is due to a compiler
* bug (?). More details are given inside the class KDiskFreeSp (see
* KDE Libs documentation).
*/
void slotFoundMountPoint(const quint64& kBSize,
const quint64& kBUsed,
const quint64& kBAvailable,
const QString& mountPoint);
void slotFoundMountPoint(const QString& mountPoint,
quint64 kBSize,
quint64 kBUsed,
quint64 kBAvailable);
void showResult();
/** Refreshs the space information for the current set URL. */