From b2d299e18d508ee11325edfb23a6a1b86955f670 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Tue, 13 May 2014 23:50:54 +0100 Subject: [PATCH] Port away from KDebug. Replace a few more kWarning() that were missed in the last commit. --- src/gui/mainwindow.cpp | 2 +- src/gui/partitionmanagerwidget.cpp | 32 +++++++++++++++--------------- src/gui/sizedialogbase.h | 2 +- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index 24f1f8a..a94451b 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -722,7 +722,7 @@ void MainWindow::onCreateNewPartitionTable() if (pmWidget().selectedDevice() == NULL) { - kWarning() << "selected device is null."; + qWarning() << "selected device is null."; return; } diff --git a/src/gui/partitionmanagerwidget.cpp b/src/gui/partitionmanagerwidget.cpp index 873d27c..9c508b4 100644 --- a/src/gui/partitionmanagerwidget.cpp +++ b/src/gui/partitionmanagerwidget.cpp @@ -394,7 +394,7 @@ void PartitionManagerWidget::onMountPartition() if (p == NULL) { - kWarning() << "no partition selected"; + qWarning() << "no partition selected"; return; } @@ -420,7 +420,7 @@ void PartitionManagerWidget::onMountPartition() if (parent != NULL) parent->checkChildrenMounted(); else - kWarning() << "parent is null"; + qWarning() << "parent is null"; } updatePartitions(); @@ -468,7 +468,7 @@ void PartitionManagerWidget::onNewPartition() if (selectedDevice() == NULL || selectedPartition() == NULL) { - kWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition(); + qWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition(); return; } @@ -476,7 +476,7 @@ void PartitionManagerWidget::onNewPartition() if (selectedDevice()->partitionTable() == NULL) { - kWarning() << "partition table on selected device is null"; + qWarning() << "partition table on selected device is null"; return; } @@ -501,7 +501,7 @@ void PartitionManagerWidget::onDeletePartition(bool shred) if (selectedDevice() == NULL || selectedPartition() == NULL) { - kWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition(); + qWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition(); return; } @@ -511,7 +511,7 @@ void PartitionManagerWidget::onDeletePartition(bool shred) if (selectedPartition()->parent() == NULL) { - kWarning() << "parent of selected partition is null."; + qWarning() << "parent of selected partition is null."; return; } @@ -557,7 +557,7 @@ void PartitionManagerWidget::onResizePartition() if (selectedDevice() == NULL || selectedPartition() == NULL) { - kWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition(); + qWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition(); return; } @@ -565,7 +565,7 @@ void PartitionManagerWidget::onResizePartition() if (selectedDevice()->partitionTable() == NULL) { - kWarning() << "partition table on selected device is null"; + qWarning() << "partition table on selected device is null"; return; } @@ -606,7 +606,7 @@ void PartitionManagerWidget::onCopyPartition() if (selectedPartition() == NULL) { - kWarning() << "selected partition: " << selectedPartition(); + qWarning() << "selected partition: " << selectedPartition(); return; } @@ -621,13 +621,13 @@ void PartitionManagerWidget::onPastePartition() if (selectedDevice() == NULL || selectedPartition() == NULL) { - kWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition(); + qWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition(); return; } if (clipboardPartition() == NULL) { - kWarning() << "no partition in the clipboard."; + qWarning() << "no partition in the clipboard."; return; } @@ -640,7 +640,7 @@ void PartitionManagerWidget::onPastePartition() if (dSource == NULL) { - kWarning() << "source partition is null."; + qWarning() << "source partition is null."; return; } @@ -659,7 +659,7 @@ bool PartitionManagerWidget::showInsertDialog(Partition& insertedPartition, qint if (selectedDevice() == NULL || selectedPartition() == NULL) { - kWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition(); + qWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition(); return false; } @@ -719,7 +719,7 @@ void PartitionManagerWidget::onCheckPartition() if (selectedDevice() == NULL || selectedPartition() == NULL) { - kWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition(); + qWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition(); return; } @@ -733,7 +733,7 @@ void PartitionManagerWidget::onBackupPartition() if (selectedDevice() == NULL || selectedPartition() == NULL) { - kWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition(); + qWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition(); return; } @@ -754,7 +754,7 @@ void PartitionManagerWidget::onRestorePartition() if (selectedDevice() == NULL || selectedPartition() == NULL) { - kWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition(); + qWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition(); return; } diff --git a/src/gui/sizedialogbase.h b/src/gui/sizedialogbase.h index 2d5b49b..7e75dde 100644 --- a/src/gui/sizedialogbase.h +++ b/src/gui/sizedialogbase.h @@ -24,7 +24,7 @@ #include "util/capacity.h" #include -#include +#include #include