Port away from KDebug.

This commit is contained in:
Andrius Štikonas 2014-05-13 14:47:35 +01:00
parent 08561a38ac
commit 2b537490ad
80 changed files with 63 additions and 131 deletions

View File

@ -24,7 +24,7 @@
#include "util/globallog.h"
#include <kdebug.h>
#include <QDebug>
#include <klocale.h>
#include <config.h>

View File

@ -20,12 +20,12 @@
#include "backend/corebackendmanager.h"
#include "backend/corebackend.h"
#include <QDebug>
#include <QStringList>
#include <QString>
#include <kpluginfactory.h>
#include <kpluginloader.h>
#include <kdebug.h>
#include <klocale.h>
#include <kaboutdata.h>
#include <kservice.h>
@ -66,11 +66,11 @@ bool CoreBackendManager::load(const QString& name)
{
m_Backend = factory->create<CoreBackend>(NULL);
backend()->setAboutData(factory->componentData().aboutData());
kDebug() << "Loaded backend plugin: " << backend()->about().programName() << ", " << backend()->about().version();
qDebug() << "Loaded backend plugin: " << backend()->about().programName() << ", " << backend()->about().version();
return true;
}
kWarning() << "Could not load plugin for core backend " << name << ": " << loader.errorString();
qWarning() << "Could not load plugin for core backend " << name << ": " << loader.errorString();
return false;
}

View File

@ -22,7 +22,6 @@
#define CONFIGUREOPTIONSDIALOG__H
#include <kconfigdialog.h>
#include <kdebug.h>
class GeneralPageWidget;
class FileSystemColorsPageWidget;

View File

@ -27,8 +27,6 @@
#include "core/copytargetdevice.h"
#include "core/device.h"
#include <kdebug.h>
/** Constructs a CopySource on the given Device
@param d Device from which to copy
@param firstsector First sector that will be copied

View File

@ -22,8 +22,6 @@
#include <QFile>
#include <QFileInfo>
#include <kdebug.h>
/** Constructs a CopySourceFile from the given @p filename.
@param filename filename of the file to copy from
@param sectorsize the sector size to assume for the file, usually the target Device's sector size

View File

@ -19,8 +19,6 @@
#include "core/copysourceshred.h"
#include <kdebug.h>
#include <config.h>
/** Constructs a CopySourceShred with the given @p size

View File

@ -24,7 +24,6 @@
#include "util/capacity.h"
#include <kdebug.h>
#include <klocale.h>
#include <QFile>

View File

@ -26,7 +26,6 @@
#include "core/device.h"
#include <klocale.h>
#include <kdebug.h>
/** Constructs a DeviceScanner
@param ostack the OperationStack where the devices will be created

View File

@ -27,7 +27,6 @@
#include <QMutex>
#include <kdebug.h>
#include <klocale.h>
/** Constructs an OperationRunner.

View File

@ -40,7 +40,6 @@
#include "util/globallog.h"
#include <kdebug.h>
#include <klocale.h>
#include <QReadLocker>

View File

@ -29,8 +29,8 @@
#include <QString>
#include <QStringList>
#include <QDebug>
#include <kdebug.h>
#include <klocale.h>
#include <kmountpoint.h>

View File

@ -28,7 +28,6 @@
#include "util/globallog.h"
#include <klocale.h>
#include <kdebug.h>
#include <config.h>

View File

@ -24,9 +24,6 @@
#include "fs/filesystem.h"
#include <kdebug.h>
/** Tries to find the predecessor for a Partition.
@param p the Partition to find a predecessor for
@return pointer to the predecessor or NULL if none was found

View File

@ -30,10 +30,10 @@
#include "util/globallog.h"
#include <kdebug.h>
#include <klocale.h>
#include <kglobal.h>
#include <QDebug>
#include <QFile>
#include <QTextStream>
@ -223,7 +223,7 @@ bool PartitionTable::getUnallocatedRange(const Device& device, PartitionNode& pa
if (extended == NULL)
{
kWarning() << "extended is null. start: " << start << ", end: " << end << ", device: " << device.deviceNode();
qWarning() << "extended is null. start: " << start << ", end: " << end << ", device: " << device.deviceNode();
return false;
}

View File

@ -22,7 +22,6 @@
#include <kglobal.h>
#include <klocale.h>
#include <kdebug.h>
#include <atasmart.h>

View File

@ -20,10 +20,10 @@
#include "core/smartstatus.h"
#include "core/smartattribute.h"
#include <kdebug.h>
#include <klocale.h>
#include <kglobal.h>
#include <QDebug>
#include <QString>
#include <QStringList>
@ -58,13 +58,13 @@ void SmartStatus::update()
if (sk_disk_open(devicePath().toLocal8Bit(), &skDisk) < 0)
{
kDebug() << "smart disk open failed for " << devicePath() << ": " << strerror(errno);
qDebug() << "smart disk open failed for " << devicePath() << ": " << strerror(errno);
return;
}
if (sk_disk_smart_status(skDisk, &skSmartStatus) < 0)
{
kDebug() << "getting smart status failed for " << devicePath() << ": " << strerror(errno);
qDebug() << "getting smart status failed for " << devicePath() << ": " << strerror(errno);
sk_disk_free(skDisk);
return;
}
@ -73,7 +73,7 @@ void SmartStatus::update()
if (sk_disk_smart_read_data(skDisk) < 0)
{
kDebug() << "reading smart data failed for " << devicePath() << ": " << strerror(errno);
qDebug() << "reading smart data failed for " << devicePath() << ": " << strerror(errno);
sk_disk_free(skDisk);
return;
}
@ -81,7 +81,7 @@ void SmartStatus::update()
const SkIdentifyParsedData* skIdentify;
if (sk_disk_identify_parse(skDisk, &skIdentify) < 0)
kDebug() << "getting identify data failed for " << devicePath() << ": " << strerror(errno);
qDebug() << "getting identify data failed for " << devicePath() << ": " << strerror(errno);
else
{
setModelName(skIdentify->model);
@ -91,7 +91,7 @@ void SmartStatus::update()
const SkSmartParsedData* skParsed;
if (sk_disk_smart_parse(skDisk, &skParsed) < 0)
kDebug() << "parsing disk smart data failed for " << devicePath() << ": " << strerror(errno);
qDebug() << "parsing disk smart data failed for " << devicePath() << ": " << strerror(errno);
else
{
switch(skParsed->self_test_execution_status)
@ -142,7 +142,7 @@ void SmartStatus::update()
SkSmartOverall overall;
if (sk_disk_smart_get_overall(skDisk, &overall) < 0)
kDebug() << "getting status failed for " << devicePath() << ": " << strerror(errno);
qDebug() << "getting status failed for " << devicePath() << ": " << strerror(errno);
else
{
switch(overall)
@ -175,22 +175,22 @@ void SmartStatus::update()
}
if (sk_disk_smart_get_temperature(skDisk, &mkelvin) < 0)
kDebug() << "getting temp failed for " << devicePath() << ": " << strerror(errno);
qDebug() << "getting temp failed for " << devicePath() << ": " << strerror(errno);
else
setTemp(mkelvin);
if (sk_disk_smart_get_bad(skDisk, &skBadSectors) < 0)
kDebug() << "getting bad sectors failed for " << devicePath() << ": " << strerror(errno);
qDebug() << "getting bad sectors failed for " << devicePath() << ": " << strerror(errno);
else
setBadSectors(skBadSectors);
if (sk_disk_smart_get_power_on(skDisk, &skPoweredOn) < 0)
kDebug() << "getting powered on time failed for " << devicePath() << ": " << strerror(errno);
qDebug() << "getting powered on time failed for " << devicePath() << ": " << strerror(errno);
else
setPoweredOn(skPoweredOn);
if (sk_disk_smart_get_power_cycle(skDisk, &skPowerCycles) < 0)
kDebug() << "getting power cycles failed for " << devicePath() << ": " << strerror(errno);
qDebug() << "getting power cycles failed for " << devicePath() << ": " << strerror(errno);
else
setPowerCycles(skPowerCycles);

View File

@ -25,7 +25,6 @@
#include "fatlabel/fatlabel.h"
#include <kdebug.h>
#include <klocale.h>
#include <QString>

View File

@ -24,7 +24,6 @@
#include <blkid/blkid.h>
#include <klocale.h>
#include <kdebug.h>
#include <config.h>

View File

@ -25,7 +25,6 @@
#include "util/globallog.h"
#include <klocale.h>
#include <kdebug.h>
#include <QString>
#include <QStringList>

View File

@ -25,8 +25,6 @@
#include <QString>
#include <QRegExp>
#include <kdebug.h>
namespace FS
{
FileSystem::CommandSupportType ocfs2::m_GetUsed = FileSystem::cmdSupportNone;

View File

@ -29,7 +29,6 @@
#include <ktempdir.h>
#include <klocale.h>
#include <kdebug.h>
#include <unistd.h>

View File

@ -36,9 +36,9 @@
#include <QFont>
#include <QKeyEvent>
#include <QFile>
#include <QTextStream>
#include <kapplication.h>
#include <kdebug.h>
#include <kmessagebox.h>
#include <kfiledialog.h>
#include <krun.h>

View File

@ -29,7 +29,6 @@
#include "util/capacity.h"
#include "util/helpers.h"
#include <kdebug.h>
#include <kpushbutton.h>
#include <kiconloader.h>
#include <klocale.h>

View File

@ -19,8 +19,6 @@
#include "gui/devicepropswidget.h"
#include <kdebug.h>
DevicePropsWidget::DevicePropsWidget(QWidget* parent) :
QWidget(parent)
{

View File

@ -23,8 +23,6 @@
#include <QString>
#include <QStringList>
#include <kdebug.h>
EditMountOptionsDialog::EditMountOptionsDialog(QWidget* parent, const QStringList& options) :
KDialog(parent),
m_DialogWidget(new EditMountOptionsDialogWidget(this, options))

View File

@ -23,7 +23,6 @@
#include "core/partition.h"
#include <kmessagebox.h>
#include <kdebug.h>
#include <kguiitem.h>
#include <kstandardguiitem.h>

View File

@ -28,7 +28,6 @@
#include <klocale.h>
#include <kfiledialog.h>
#include <klineedit.h>
#include <kdebug.h>
#include <kmountpoint.h>
#include <kmessagebox.h>
@ -36,6 +35,7 @@
#include <QWidget>
#include <QFile>
#include <QPointer>
#include <QDebug>
#include <mntent.h>
#include <blkid/blkid.h>
@ -241,7 +241,7 @@ bool EditMountPointDialogWidget::acceptChanges()
if (mountPoints().find(labelName().text()) == mountPoints().end())
{
kWarning() << "could not find device " << labelName().text() << " in mount points.";
qWarning() << "could not find device " << labelName().text() << " in mount points.";
return false;
}
@ -270,7 +270,7 @@ bool EditMountPointDialogWidget::writeMountpoints(const QString& filename)
if (!out.open(QFile::ReadWrite | QFile::Truncate))
{
kWarning() << "could not open output file " << newFilename;
qWarning() << "could not open output file " << newFilename;
rval = false;
}
else
@ -285,13 +285,13 @@ bool EditMountPointDialogWidget::writeMountpoints(const QString& filename)
if (QFile::exists(filename) && !QFile::rename(filename, bakFilename))
{
kWarning() << "could not rename " << filename << " to " << bakFilename;
qWarning() << "could not rename " << filename << " to " << bakFilename;
rval = false;
}
if (rval && !QFile::rename(newFilename, filename))
{
kWarning() << "could not rename " << newFilename << " to " << filename;
qWarning() << "could not rename " << newFilename << " to " << filename;
rval = false;
}
}

View File

@ -23,7 +23,6 @@
#include "fs/filesystem.h"
#include "fs/filesystemfactory.h"
#include <kdebug.h>
#include <klocale.h>
#include <kpushbutton.h>
#include <kiconloader.h>

View File

@ -21,8 +21,6 @@
#include <kglobal.h>
#include <klocale.h>
#include <kdebug.h>
// private method from Qt sources, qabstractspinbox.h:

View File

@ -35,7 +35,6 @@
#include <kglobal.h>
#include <kglobalsettings.h>
#include <klocale.h>
#include <kdebug.h>
/** Creates a new InfoPane instance
@param parent the parent widget

View File

@ -27,7 +27,6 @@
#include "ops/resizeoperation.h"
#include <kdebug.h>
#include <klocale.h>
/** Creates a new InsertDialog instance.

View File

@ -26,7 +26,6 @@
#include <kmenu.h>
#include <kactioncollection.h>
#include <kdebug.h>
class ListDeviceWidgetItem : public QListWidgetItem
{

View File

@ -30,8 +30,6 @@
#include "util/capacity.h"
#include "util/helpers.h"
#include <kdebug.h>
#include <QtAlgorithms>
/** Creates a NewDialog

View File

@ -29,7 +29,6 @@
#include "util/helpers.h"
#include <kmessagebox.h>
#include <kdebug.h>
#include <kglobalsettings.h>
#include <kpushbutton.h>
#include <klineedit.h>

View File

@ -27,6 +27,7 @@
#include "fs/filesystem.h"
#include <QDebug>
#include <QPainter>
#include <QMouseEvent>
#include <QPaintEvent>
@ -35,7 +36,6 @@
#include <QStyleOptionFrameV3>
#include <QStyleOptionButton>
#include <kdebug.h>
#include <kcolorscheme.h>
const qint32 PartResizerWidget::m_HandleHeight = 59;
@ -256,19 +256,19 @@ bool PartResizerWidget::movePartition(qint64 newFirstSector)
if (isLengthAligned && newLastSector - newFirstSector + 1 != partition().length())
{
kDebug() << "length changes while trying to move partition " << partition().deviceNode() << ". new first: " << newFirstSector << ", new last: " << newLastSector << ", old length: " << partition().length() << ", new length: " << newLastSector - newFirstSector + 1;
qDebug() << "length changes while trying to move partition " << partition().deviceNode() << ". new first: " << newFirstSector << ", new last: " << newLastSector << ", old length: " << partition().length() << ", new length: " << newLastSector - newFirstSector + 1;
return false;
}
if (!checkConstraints(newFirstSector, newLastSector))
{
kDebug() << "constraints not satisfied while trying to move partition " << partition().deviceNode() << ". new first: " << newFirstSector << ", new last: " << newLastSector;
qDebug() << "constraints not satisfied while trying to move partition " << partition().deviceNode() << ". new first: " << newFirstSector << ", new last: " << newLastSector;
return false;
}
if (align() && !PartitionAlignment::isAligned(device(), partition(), newFirstSector, newLastSector, true))
{
kDebug() << "partition " << partition().deviceNode() << " not aligned but supposed to be. new first: " << newFirstSector << " delta: " << PartitionAlignment::firstDelta(device(), partition(), newFirstSector) << ", new last: " << newLastSector << ", delta: " << PartitionAlignment::lastDelta(device(), partition(), newLastSector);
qDebug() << "partition " << partition().deviceNode() << " not aligned but supposed to be. new first: " << newFirstSector << " delta: " << PartitionAlignment::firstDelta(device(), partition(), newFirstSector) << ", new last: " << newLastSector << ", delta: " << PartitionAlignment::lastDelta(device(), partition(), newLastSector);
return false;
}
@ -276,7 +276,7 @@ bool PartResizerWidget::movePartition(qint64 newFirstSector)
(!checkAlignment(*partition().children().first(), partition().firstSector() - newFirstSector) ||
!checkAlignment(*partition().children().last(), partition().lastSector() - newLastSector)))
{
kDebug() << "cannot align children while trying to move partition " << partition().deviceNode();
qDebug() << "cannot align children while trying to move partition " << partition().deviceNode();
return false;
}

View File

@ -24,7 +24,6 @@
#include <QMouseEvent>
#include <kdebug.h>
#include <klocale.h>
/** Creates a new PartTableWidget.

View File

@ -30,7 +30,6 @@
#include <QApplication>
#include <QPlastiqueStyle>
#include <kdebug.h>
#include <kglobalsettings.h>
#include <config.h>

View File

@ -23,8 +23,6 @@
#include "gui/partwidgetbase.h"
#include <kdebug.h>
class Partition;
class QPaintEvent;

View File

@ -22,7 +22,6 @@
#include "core/partition.h"
#include <kdebug.h>
#include <cmath>
const qint32 PartWidgetBase::m_Spacing = 2;

View File

@ -29,8 +29,6 @@
#include "util/capacity.h"
#include <kdebug.h>
/** Creates a new ResizeDialog
@param parent pointer to the parent widget
@param device the Device the Partition to resize is on

View File

@ -19,8 +19,6 @@
#include "gui/sizedetailswidget.h"
#include <kdebug.h>
#include <limits>
SizeDetailsWidget::SizeDetailsWidget(QWidget* parent) :

View File

@ -24,7 +24,6 @@
#include "ui_sizedetailswidgetbase.h"
#include <QWidget>
#include <qdebug.h>
/** Details widget for the SizeDetailsBase
@author Volker Lanz <vl@fidra.de>

View File

@ -29,8 +29,6 @@
#include "util/capacity.h"
#include <kdebug.h>
#include <config.h>
static double sectorsToDialogUnit(const Device& d, qint64 v);

View File

@ -24,7 +24,6 @@
#include "ui_sizedialogwidgetbase.h"
#include <QWidget>
#include <qdebug.h>
/** Central widget for the SizeDialogBase
@author Volker Lanz <vl@fidra.de>

View File

@ -27,7 +27,6 @@
#include "util/helpers.h"
#include "util/htmlreport.h"
#include <kdebug.h>
#include <kpushbutton.h>
#include <kiconloader.h>
#include <klocale.h>

View File

@ -22,7 +22,6 @@
#include "util/helpers.h"
#include <klocale.h>
#include <kdebug.h>
#include <QStyledItemDelegate>
#include <QPainter>

View File

@ -25,7 +25,6 @@
#include "util/helpers.h"
#include <kactioncollection.h>
#include <kdebug.h>
#include <kiconloader.h>
#include <kfiledialog.h>
#include <kmessagebox.h>
@ -35,6 +34,7 @@
#include <kio/copyjob.h>
#include <ktemporaryfile.h>
#include <QDebug>
#include <QFile>
#include <QTreeWidget>
#include <QTreeWidgetItem>
@ -163,7 +163,7 @@ void TreeLog::onNewLogMessage(Log::Level logLevel, const QString& s)
"dialog-error"
};
kDebug() << s;
qDebug() << s;
if (logLevel >= Config::minLogLevel())
{

View File

@ -29,8 +29,6 @@
#include <QWidget>
#include <kdebug.h>
class QTreeWidget;
/** A tree for formatted log output.

View File

@ -29,7 +29,6 @@
#include "util/report.h"
#include <klocale.h>
#include <kdebug.h>
/** Creates a new CopyFileSystemJob
@param targetdevice the Device the FileSystem is to be copied to

View File

@ -29,8 +29,9 @@
#include "util/report.h"
#include <QDebug>
#include <klocale.h>
#include <kdebug.h>
/** Creates a new DeleteFileSystemJob
@param d the Device the FileSystem to delete is on
@ -49,7 +50,7 @@ bool DeleteFileSystemJob::run(Report& parent)
if (device().deviceNode() != partition().devicePath())
{
kWarning() << "deviceNode: " << device().deviceNode() << ", partition path: " << partition().devicePath();
qWarning() << "deviceNode: " << device().deviceNode() << ", partition path: " << partition().devicePath();
return false;
}

View File

@ -29,8 +29,9 @@
#include "util/report.h"
#include <QDebug>
#include <klocale.h>
#include <kdebug.h>
/** Creates a new DeletePartitionJob
@param d the Device the Partition to delete is on
@ -49,7 +50,7 @@ bool DeletePartitionJob::run(Report& parent)
if (device().deviceNode() != partition().devicePath())
{
kWarning() << "deviceNode: " << device().deviceNode() << ", partition path: " << partition().devicePath();
qWarning() << "deviceNode: " << device().deviceNode() << ", partition path: " << partition().devicePath();
return false;
}

View File

@ -27,10 +27,10 @@
#include "util/report.h"
#include <QDebug>
#include <QIcon>
#include <QTime>
#include <kdebug.h>
#include <klocale.h>
#include <kiconloader.h>
@ -103,7 +103,7 @@ bool Job::copyBlocks(Report& report, CopyTarget& target, CopySource& source)
Q_ASSERT(lastBlock < blockSize);
if (lastBlock >= blockSize)
kWarning() << "lastBlock: " << lastBlock << ", blockSize: " << blockSize;
qWarning() << "lastBlock: " << lastBlock << ", blockSize: " << blockSize;
const qint64 lastBlockReadOffset = copyDir > 0 ? readOffset + blockSize * blocksCopied : source.firstSector();
const qint64 lastBlockWriteOffset = copyDir > 0 ? writeOffset + blockSize * blocksCopied : target.firstSector();

View File

@ -27,7 +27,6 @@
#include "util/report.h"
#include <klocale.h>
#include <kdebug.h>
/** Creates a new MoveFileSystemJob
@param d the Device the Partition to move is on

View File

@ -32,8 +32,9 @@
#include "util/report.h"
#include "util/capacity.h"
#include <QDebug>
#include <klocale.h>
#include <kdebug.h>
/** Creates a new ResizeFileSystemJob
@param d the Device the FileSystem to be resized is on
@ -62,7 +63,7 @@ bool ResizeFileSystemJob::run(Report& parent)
if (partition().fileSystem().firstSector() == -1 || partition().fileSystem().lastSector() == -1 || newLength() > partition().length())
{
kWarning() << "file system first sector: " << partition().fileSystem().firstSector() << ", last sector: " << partition().fileSystem().lastSector() << ", new length: " << newLength() << ", partition length: " << partition().length();
qWarning() << "file system first sector: " << partition().fileSystem().firstSector() << ", last sector: " << partition().fileSystem().lastSector() << ", new length: " << newLength() << ", partition length: " << partition().length();
return false;
}

View File

@ -35,7 +35,6 @@
#include "util/report.h"
#include <klocale.h>
#include <kdebug.h>
/** Creates a new RestoreFileSystemJob
@param targetdevice the Device the FileSystem is to be restored to

View File

@ -29,7 +29,6 @@
#include "util/report.h"
#include <kdebug.h>
#include <klocale.h>
/** Creates a new SetPartGeometryJob

View File

@ -29,8 +29,9 @@
#include "util/report.h"
#include <QDebug>
#include <klocale.h>
#include <kdebug.h>
/** Creates a new ShredFileSystemJob
@param d the Device the FileSystem is on
@ -54,7 +55,7 @@ bool ShredFileSystemJob::run(Report& parent)
if (device().deviceNode() != partition().devicePath())
{
kWarning() << "deviceNode: " << device().deviceNode() << ", partition path: " << partition().devicePath();
qWarning() << "deviceNode: " << device().deviceNode() << ", partition path: " << partition().devicePath();
return false;
}

View File

@ -28,7 +28,6 @@
#include <QString>
#include <kdebug.h>
#include <klocale.h>
/** Creates a new BackupOperation.

View File

@ -29,7 +29,6 @@
#include <QString>
#include <kdebug.h>
#include <klocale.h>
/** Creates a new CheckOperation.

View File

@ -33,9 +33,9 @@
#include "util/capacity.h"
#include "util/report.h"
#include <QDebug>
#include <QString>
#include <kdebug.h>
#include <klocale.h>
/** Creates a new CopyOperation.
@ -66,7 +66,7 @@ CopyOperation::CopyOperation(Device& targetdevice, Partition* copiedpartition, D
Q_ASSERT(dest);
if (dest == NULL)
kWarning() << "destination partition not found at sector " << copiedPartition().firstSector();
qWarning() << "destination partition not found at sector " << copiedPartition().firstSector();
if (dest && !dest->roles().has(PartitionRole::Unallocated))
{

View File

@ -31,7 +31,6 @@
#include <QString>
#include <kdebug.h>
#include <klocale.h>
/** Creates a new CreateFileSystemOperation.

View File

@ -27,7 +27,6 @@
#include <QString>
#include <kdebug.h>
#include <klocale.h>
/** Creates a new CreatePartitionTableOperation.

View File

@ -31,7 +31,6 @@
#include <QString>
#include <kdebug.h>
#include <klocale.h>
/** Creates a new DeleteOperation

View File

@ -36,7 +36,6 @@
#include <QString>
#include <kdebug.h>
#include <klocale.h>
/** Creates a new NewOperation.

View File

@ -26,10 +26,10 @@
#include "util/report.h"
#include <QDebug>
#include <QIcon>
#include <QString>
#include <kdebug.h>
#include <kiconloader.h>
#include <klocale.h>
@ -64,7 +64,7 @@ void Operation::removePreviewPartition(Device& device, Partition& p)
if (p.parent()->remove(&p))
device.partitionTable()->updateUnallocated(device);
else
kWarning() << "failed to remove partition " << p.deviceNode() << " at " << &p << " from preview.";
qWarning() << "failed to remove partition " << p.deviceNode() << " at " << &p << " from preview.";
}
/** @return text describing the Operation's current status */
@ -84,7 +84,7 @@ QString Operation::statusText() const
if (status() < 0 || static_cast<quint32>(status()) >= sizeof(s) / sizeof(s[0]))
{
kWarning() << "invalid status " << status();
qWarning() << "invalid status " << status();
return QString();
}
@ -108,7 +108,7 @@ QIcon Operation::statusIcon() const
if (status() < 0 || static_cast<quint32>(status()) >= sizeof(icons) / sizeof(icons[0]))
{
kWarning() << "invalid status " << status();
qWarning() << "invalid status " << status();
return QIcon();
}

View File

@ -35,9 +35,9 @@
#include "util/capacity.h"
#include "util/report.h"
#include <QDebug>
#include <QString>
#include <kdebug.h>
#include <klocale.h>
/** Creates a new ResizeOperation.
@ -234,7 +234,7 @@ QString ResizeOperation::description() const
return i18nc("@info/plain describe resize/move action", "Move partition <filename>%1</filename> to the right by %2 and shrink it from %3 to %4", partition().deviceNode(), moveDelta, origCapacity, newCapacity);
default:
kWarning() << "Could not determine what to do with partition " << partition().deviceNode() << ".";
qWarning() << "Could not determine what to do with partition " << partition().deviceNode() << ".";
break;
}

View File

@ -36,10 +36,10 @@
#include "util/capacity.h"
#include "util/report.h"
#include <QDebug>
#include <QString>
#include <QFileInfo>
#include <kdebug.h>
#include <klocale.h>
/** Creates a new RestoreOperation.
@ -69,7 +69,7 @@ RestoreOperation::RestoreOperation(Device& d, Partition* p, const QString& filen
Q_ASSERT(dest);
if (dest == NULL)
kWarning() << "destination partition not found at sector " << restorePartition().firstSector();
qWarning() << "destination partition not found at sector " << restorePartition().firstSector();
if (dest && !dest->roles().has(PartitionRole::Unallocated))
{

View File

@ -28,7 +28,6 @@
#include <QString>
#include <kdebug.h>
#include <klocale.h>
/** Creates a new SetFileSystemLabelOperation.

View File

@ -30,7 +30,6 @@
#include <QString>
#include <kdebug.h>
#include <klocale.h>
/** Creates a new SetPartFlagsOperation.

View File

@ -32,7 +32,6 @@
#include <QString>
#include <QStringList>
#include <kdebug.h>
#include <klocale.h>
#include <kpluginfactory.h>
#include <kaboutdata.h>

View File

@ -26,7 +26,6 @@
#include "util/report.h"
#include <klocale.h>
#include <kdebug.h>
DummyDevice::DummyDevice(const QString& device_node) :
CoreBackendDevice(device_node)

View File

@ -23,7 +23,6 @@
#include "util/report.h"
#include <klocale.h>
#include <kdebug.h>
DummyPartition::DummyPartition() :
CoreBackendPartition()

View File

@ -29,7 +29,6 @@
#include "util/report.h"
#include <klocale.h>
#include <kdebug.h>
#include <unistd.h>

View File

@ -41,8 +41,8 @@
#include <QString>
#include <QStringList>
#include <QDebug>
#include <kdebug.h>
#include <klocale.h>
#include <kmountpoint.h>
#include <kdiskfreespaceinfo.h>
@ -488,7 +488,7 @@ QList<Device*> LibPartedBackend::scanDevices()
const Solid::Block* solidBlock = solidDevice.as<Solid::Block>();
Device* d = scanDevice(solidBlock->device());
kWarning() << solidBlock->device();
qWarning() << solidBlock->device();
if (d != NULL)
{
@ -585,7 +585,7 @@ FileSystem::Type LibPartedBackend::detectFileSystem(PedPartition* pedPartition)
else if (s == "nilfs2") rval = FileSystem::Nilfs2;
else if (s == "LVM2_member") rval = FileSystem::Lvm2_PV;
else
kWarning() << "blkid: unknown file system type " << s << " on " << pedPath;
qWarning() << "blkid: unknown file system type " << s << " on " << pedPath;
}
blkid_put_cache(cache);

View File

@ -26,7 +26,6 @@
#include "util/report.h"
#include <klocale.h>
#include <kdebug.h>
#include <unistd.h>

View File

@ -23,7 +23,6 @@
#include "util/report.h"
#include <klocale.h>
#include <kdebug.h>
LibPartedPartition::LibPartedPartition(PedPartition* ped_partition) :
CoreBackendPartition(),

View File

@ -33,7 +33,6 @@
#include "util/externalcommand.h"
#include <klocale.h>
#include <kdebug.h>
#include <unistd.h>

View File

@ -24,7 +24,8 @@
#include <kglobal.h>
#include <klocale.h>
#include <kdebug.h>
#include <QDebug>
#include <config.h>
@ -91,7 +92,7 @@ qint64 Capacity::unitFactor(Unit from, Unit to)
if (from > to)
{
kWarning() << "from: " << from << ", to: " << to;
qWarning() << "from: " << from << ", to: " << to;
return 1;
}

View File

@ -21,11 +21,12 @@
#include "util/report.h"
#include <cstdlib>
#include <QString>
#include <QStringList>
#include <KLocale>
#include <KDebug>
/** Creates a new ExternalCommand instance without Report.
@param cmd the command to run

View File

@ -31,7 +31,6 @@
#include <kcomponentdata.h>
#include <kstandarddirs.h>
#include <kcmdlineargs.h>
#include <kdebug.h>
#include <kmenu.h>
#include <kstringhandler.h>