Commit 42507afe authored by Peter Penz's avatar Peter Penz
Browse files

A cleanup in KDiskFreeSpace has been done -> adjust signal/slot to the new...

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
parent 73a42dce
......@@ -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()));
......
......@@ -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. */
......
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