Commit 3e35566e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use directly qCDebug

parent 2a06e093
Pipeline #84548 passed with stage
in 38 seconds
......@@ -23,7 +23,7 @@
#include "cttask.h"
#include "ctvariable.h"
#include "logging.h"
#include "kcm_cron_debug.h"
CrontabPrinter::CrontabPrinter(CrontabWidget *crontabWidget)
: mCrontabWidget(crontabWidget)
......@@ -41,7 +41,7 @@ CrontabPrinter::~CrontabPrinter()
bool CrontabPrinter::start()
{
logDebug() << "Printing selection...";
qCDebug(KCM_CRON_LOG) << "Printing selection...";
if (!mPrinter) {
mPrinter = new QPrinter();
......@@ -59,7 +59,7 @@ bool CrontabPrinter::start()
auto printDialog = new QPrintDialog(mPrinter, nullptr);
printDialog->setEnabledOptions(QAbstractPrintDialog::PrintToFile);
if (printDialog->exec() == QDialog::Rejected) {
logDebug() << "Printing canceled";
qCDebug(KCM_CRON_LOG) << "Printing canceled";
delete printDialog;
return false;
}
......@@ -226,7 +226,7 @@ void CrontabPrinter::finish()
void CrontabPrinter::printPageNumber()
{
logDebug() << "Printing page number...";
qCDebug(KCM_CRON_LOG) << "Printing page number...";
mPainter->translate(0, -mCurrentRowPosition);
mPrintView->moveTo(QPoint(0, mPrintView->height()));
......@@ -349,12 +349,12 @@ QList<int> CrontabPrinter::findColumnWidths(const QList<QStringList> &contents,
int columnWidthSum = 0;
for (int width : std::as_const(columnWidths)) {
logDebug() << "Column : " << width;
qCDebug(KCM_CRON_LOG) << "Column : " << width;
columnWidthSum += width;
}
if (columnWidthSum >= pageWidth) {
logDebug() << "The printing could be out of the page";
qCDebug(KCM_CRON_LOG) << "The printing could be out of the page";
return columnWidths;
}
......
......@@ -39,7 +39,7 @@
#include "kcmCron.h"
#include "logging.h"
#include "kcm_cron_debug.h"
class CTGlobalCron;
......@@ -58,13 +58,13 @@ CrontabWidget::CrontabWidget(QWidget *parent, CTHost *ctHost)
initialize();
logDebug() << "Clipboard Status " << hasClipboardContent();
qCDebug(KCM_CRON_LOG) << "Clipboard Status " << hasClipboardContent();
mTasksWidget->setFocus();
QTreeWidgetItem *item = mTasksWidget->treeWidget()->topLevelItem(0);
if (item != nullptr) {
logDebug() << "First item found" << mTasksWidget->treeWidget()->topLevelItemCount();
qCDebug(KCM_CRON_LOG) << "First item found" << mTasksWidget->treeWidget()->topLevelItemCount();
item->setSelected(true);
}
......@@ -154,9 +154,9 @@ void CrontabWidget::initialize()
{
auto layout = new QVBoxLayout(this);
logDebug() << "Begin view refresh";
qCDebug(KCM_CRON_LOG) << "Begin view refresh";
logDebug() << "Creating Tasks list...";
qCDebug(KCM_CRON_LOG) << "Creating Tasks list...";
QHBoxLayout *cronSelector = createCronSelector();
layout->addLayout(cronSelector);
......@@ -184,7 +184,7 @@ void CrontabWidget::refreshCron()
mVariablesWidget->refreshVariables(ctCron);
if (ctCron->isMultiUserCron() && !ctHost()->isRootUser()) {
logDebug() << "Disabling view...";
qCDebug(KCM_CRON_LOG) << "Disabling view...";
mTasksWidget->treeWidget()->setEnabled(false);
mVariablesWidget->treeWidget()->setEnabled(false);
......@@ -194,7 +194,7 @@ void CrontabWidget::refreshCron()
togglePasteAction(false);
mTasksWidget->toggleRunNowAction(false);
} else {
logDebug() << "Enabling view...";
qCDebug(KCM_CRON_LOG) << "Enabling view...";
mTasksWidget->treeWidget()->setEnabled(true);
mVariablesWidget->treeWidget()->setEnabled(true);
......@@ -215,7 +215,7 @@ void CrontabWidget::copy()
QString clipboardText;
if (mTasksWidget->treeWidget()->hasFocus()) {
logDebug() << "Tasks copying";
qCDebug(KCM_CRON_LOG) << "Tasks copying";
const QList<TaskWidget *> tasksWidget = mTasksWidget->selectedTasksWidget();
for (TaskWidget *taskWidget : tasksWidget) {
......@@ -227,7 +227,7 @@ void CrontabWidget::copy()
}
if (mVariablesWidget->treeWidget()->hasFocus()) {
logDebug() << "Variables copying";
qCDebug(KCM_CRON_LOG) << "Variables copying";
const QList<VariableWidget *> variablesWidget = mVariablesWidget->selectedVariablesWidget();
for (VariableWidget *variableWidget : variablesWidget) {
......@@ -241,30 +241,30 @@ void CrontabWidget::copy()
QApplication::clipboard()->setText(clipboardText, QClipboard::Clipboard);
QApplication::clipboard()->setText(clipboardText, QClipboard::Selection);
logDebug() << "Clipboard Status " << hasClipboardContent();
qCDebug(KCM_CRON_LOG) << "Clipboard Status " << hasClipboardContent();
togglePasteAction(hasClipboardContent());
}
void CrontabWidget::cut()
{
logDebug() << "Cut content";
qCDebug(KCM_CRON_LOG) << "Cut content";
copy();
if (mTasksWidget->treeWidget()->hasFocus()) {
logDebug() << "Tasks cutting";
qCDebug(KCM_CRON_LOG) << "Tasks cutting";
mTasksWidget->deleteSelection();
}
if (mVariablesWidget->treeWidget()->hasFocus()) {
logDebug() << "Variables cutting";
qCDebug(KCM_CRON_LOG) << "Variables cutting";
mVariablesWidget->deleteSelection();
}
}
void CrontabWidget::paste()
{
logDebug() << "Paste content";
qCDebug(KCM_CRON_LOG) << "Paste content";
if (mTasksWidget->treeWidget()->hasFocus()) {
for (CTTask *task : std::as_const(mClipboardTasks)) {
......@@ -288,7 +288,7 @@ CTCron *CrontabWidget::currentCron() const
}
if (mOtherUsers->currentIndex() == mOtherUsers->count() - 1) {
logDebug() << "Using Global Cron";
qCDebug(KCM_CRON_LOG) << "Using Global Cron";
return mCtGlobalCron;
}
......@@ -320,7 +320,7 @@ void CrontabWidget::checkOtherUsers()
void CrontabWidget::setupActions()
{
logDebug() << "Setup actions";
qCDebug(KCM_CRON_LOG) << "Setup actions";
// Edit menu
mCutAction = KStandardAction::cut(this, SLOT(cut()), this);
......@@ -328,7 +328,7 @@ void CrontabWidget::setupActions()
mPasteAction = KStandardAction::paste(this, SLOT(paste()), this);
togglePasteAction(false);
logDebug() << "Actions initialized";
qCDebug(KCM_CRON_LOG) << "Actions initialized";
}
QList<QAction *> CrontabWidget::cutCopyPasteActions()
......@@ -366,7 +366,7 @@ void CrontabWidget::print()
CrontabPrinter printer(this);
if (!printer.start()) {
logDebug() << "Unable to start printer";
qCDebug(KCM_CRON_LOG) << "Unable to start printer";
return;
}
printer.printTasks();
......
......@@ -15,12 +15,12 @@
#include "cttask.h"
#include "ctvariable.h"
#include "logging.h"
#include "kcm_cron_debug.h"
CTGlobalCron::CTGlobalCron(CTHost *_ctHost)
: CTCron()
{
logDebug() << "Initializing CTGlobalCron";
qCDebug(KCM_CRON_LOG) << "Initializing CTGlobalCron";
d->multiUserCron = true;
d->systemCron = false;
......@@ -37,7 +37,7 @@ CTGlobalCron::~CTGlobalCron()
QList<CTTask *> CTGlobalCron::tasks() const
{
logDebug() << "Global Cron Tasks";
qCDebug(KCM_CRON_LOG) << "Global Cron Tasks";
QList<CTTask *> tasks;
const auto crons = mCtHost->mCrons;
......@@ -57,7 +57,7 @@ QList<CTTask *> CTGlobalCron::tasks() const
QList<CTVariable *> CTGlobalCron::variables() const
{
logDebug() << "Global Cron Variables";
qCDebug(KCM_CRON_LOG) << "Global Cron Variables";
QList<CTVariable *> variables;
const auto crons = mCtHost->mCrons;
......@@ -76,7 +76,7 @@ QList<CTVariable *> CTGlobalCron::variables() const
void CTGlobalCron::addTask(CTTask *task)
{
logDebug() << "Global Cron addTask";
qCDebug(KCM_CRON_LOG) << "Global Cron addTask";
CTCron *actualCron = mCtHost->findUserCron(task->userLogin);
actualCron->addTask(task);
......@@ -84,7 +84,7 @@ void CTGlobalCron::addTask(CTTask *task)
void CTGlobalCron::addVariable(CTVariable *variable)
{
logDebug() << "Global Cron addVariable";
qCDebug(KCM_CRON_LOG) << "Global Cron addVariable";
CTCron *actualCron = mCtHost->findUserCron(variable->userLogin);
actualCron->addVariable(variable);
......@@ -92,7 +92,7 @@ void CTGlobalCron::addVariable(CTVariable *variable)
void CTGlobalCron::modifyTask(CTTask *task)
{
logDebug() << "Global Cron modifyTask";
qCDebug(KCM_CRON_LOG) << "Global Cron modifyTask";
CTCron *actualCron = mCtHost->findCronContaining(task);
......@@ -112,7 +112,7 @@ void CTGlobalCron::modifyTask(CTTask *task)
void CTGlobalCron::modifyVariable(CTVariable *variable)
{
logDebug() << "Global Cron modifyVariable";
qCDebug(KCM_CRON_LOG) << "Global Cron modifyVariable";
CTCron *actualCron = mCtHost->findCronContaining(variable);
......@@ -132,7 +132,7 @@ void CTGlobalCron::modifyVariable(CTVariable *variable)
void CTGlobalCron::removeTask(CTTask *task)
{
logDebug() << "Global Cron removeTask";
qCDebug(KCM_CRON_LOG) << "Global Cron removeTask";
CTCron *actualCron = mCtHost->findCronContaining(task);
actualCron->removeTask(task);
......@@ -140,7 +140,7 @@ void CTGlobalCron::removeTask(CTTask *task)
void CTGlobalCron::removeVariable(CTVariable *variable)
{
logDebug() << "Global Cron removeVariable";
qCDebug(KCM_CRON_LOG) << "Global Cron removeVariable";
CTCron *actualCron = mCtHost->findCronContaining(variable);
actualCron->removeVariable(variable);
......
......@@ -17,7 +17,7 @@
#include "cttask.h"
#include "ctvariable.h"
#include "logging.h"
#include "kcm_cron_debug.h"
CTSystemCron::CTSystemCron(const QString &crontabBinary)
: CTCron()
......
......@@ -25,7 +25,7 @@
#include <pwd.h> // pwd, getpwnam(), getpwuid()
#include <unistd.h> // getuid(), unlink()
#include "logging.h"
#include "kcm_cron_debug.h"
CommandLineStatus CommandLine::execute()
{
......@@ -97,7 +97,7 @@ CTCron::CTCron(const QString &crontabBinary, const struct passwd *userInfos, boo
if (!initializeFromUserInfos(userInfos)) {
ctInitializationError.setErrorMessage(i18n("No password entry found for uid '%1'", getuid()));
logDebug() << "Error in crontab creation of" << userInfos->pw_name;
qCDebug(KCM_CRON_LOG) << "Error in crontab creation of" << userInfos->pw_name;
return;
}
......@@ -106,9 +106,9 @@ CTCron::CTCron(const QString &crontabBinary, const struct passwd *userInfos, boo
if (commandLineStatus.exitCode == 0) {
this->parseFile(d->tmpFileName);
} else {
logDebug() << "Error when executing command" << commandLineStatus.commandLine;
logDebug() << "Standard output :" << commandLineStatus.standardOutput;
logDebug() << "Standard error :" << commandLineStatus.standardError;
qCDebug(KCM_CRON_LOG) << "Error when executing command" << commandLineStatus.commandLine;
qCDebug(KCM_CRON_LOG) << "Standard output :" << commandLineStatus.standardOutput;
qCDebug(KCM_CRON_LOG) << "Standard error :" << commandLineStatus.standardError;
}
d->initialTaskCount = d->task.size();
......@@ -138,7 +138,7 @@ CTCron &CTCron::operator=(const CTCron &source)
}
if (source.isSystemCron()) {
logDebug() << "Affect the system cron";
qCDebug(KCM_CRON_LOG) << "Affect the system cron";
}
d->variable.clear();
......@@ -258,7 +258,7 @@ bool CTCron::saveToFile(const QString &fileName)
return false;
}
// logDebug() << exportCron();
// qCDebug(KCM_CRON_LOG) << exportCron();
QTextStream out(&file);
out << exportCron();
......@@ -401,7 +401,7 @@ void CTCron::addTask(CTTask *task)
task->setSystemCrontab(false);
}
logDebug() << "Adding task" << task->comment << " user : " << task->userLogin;
qCDebug(KCM_CRON_LOG) << "Adding task" << task->comment << " user : " << task->userLogin;
d->task.append(task);
}
......@@ -414,7 +414,7 @@ void CTCron::addVariable(CTVariable *variable)
variable->userLogin = d->userLogin;
}
logDebug() << "Adding variable" << variable->variable << " user : " << variable->userLogin;
qCDebug(KCM_CRON_LOG) << "Adding variable" << variable->variable << " user : " << variable->userLogin;
d->variable.append(variable);
}
......
......@@ -22,7 +22,7 @@
#include "ctSystemCron.h"
#include "ctcron.h"
#include "logging.h"
#include "kcm_cron_debug.h"
CTHost::CTHost(const QString &cronBinary, CTInitializationError &ctInitializationError)
{
......@@ -125,7 +125,7 @@ bool CTHost::allowDeny(char *name)
CTSaveStatus CTHost::save()
{
if (!isRootUser()) {
logDebug() << "Save current user cron";
qCDebug(KCM_CRON_LOG) << "Save current user cron";
CTCron *ctCron = findCurrentUserCron();
return ctCron->save();
......@@ -199,7 +199,7 @@ CTCron *CTHost::findCurrentUserCron() const
}
}
logDebug() << "Unable to find the current user Cron. Please report this bug and your crontab config to the developers";
qCDebug(KCM_CRON_LOG) << "Unable to find the current user Cron. Please report this bug and your crontab config to the developers";
return nullptr;
}
......@@ -211,7 +211,7 @@ CTCron *CTHost::findSystemCron() const
}
}
logDebug() << "Unable to find the system Cron. Please report this bug and your crontab config to the developers";
qCDebug(KCM_CRON_LOG) << "Unable to find the system Cron. Please report this bug and your crontab config to the developers";
return nullptr;
}
......@@ -223,7 +223,7 @@ CTCron *CTHost::findUserCron(const QString &userLogin) const
}
}
logDebug() << "Unable to find the user Cron " << userLogin << ". Please report this bug and your crontab config to the developers";
qCDebug(KCM_CRON_LOG) << "Unable to find the user Cron " << userLogin << ". Please report this bug and your crontab config to the developers";
return nullptr;
}
......@@ -235,7 +235,7 @@ CTCron *CTHost::findCronContaining(CTTask *ctTask) const
}
}
logDebug() << "Unable to find the cron of this task. Please report this bug and your crontab config to the developers";
qCDebug(KCM_CRON_LOG) << "Unable to find the cron of this task. Please report this bug and your crontab config to the developers";
return nullptr;
}
......@@ -247,7 +247,7 @@ CTCron *CTHost::findCronContaining(CTVariable *ctVariable) const
}
}
logDebug() << "Unable to find the cron of this variable. Please report this bug and your crontab config to the developers";
qCDebug(KCM_CRON_LOG) << "Unable to find the cron of this variable. Please report this bug and your crontab config to the developers";
return nullptr;
}
......
......@@ -15,7 +15,7 @@
#include "ctHelper.h"
#include "logging.h"
#include "kcm_cron_debug.h"
CTTask::CTTask(const QString &tokenString, const QString &_comment, const QString &_userLogin, bool _systemCrontab)
: mSystemCrontab(_systemCrontab)
......@@ -59,7 +59,7 @@ CTTask::CTTask(const QString &tokenString, const QString &_comment, const QStrin
int spacePos(tokStr.indexOf(QRegExp(QLatin1String("[ \t]"))));
// If reboot bypass initialize functions so no keys selected in modify task
if (!reboot) {
// logDebug() << "Line : " << tokStr;
// qCDebug(KCM_CRON_LOG) << "Line : " << tokStr;
minute.initialize(tokStr.mid(0, spacePos));
while (isSpace(tokStr, spacePos + 1)) {
......@@ -384,7 +384,7 @@ QIcon CTTask::commandIcon() const
QUrl commandPath = QUrl::fromLocalFile(completeCommandPath());
QMimeType mimeType = QMimeDatabase().mimeTypeForUrl(commandPath);
// logDebug() << mimeType->name();
// qCDebug(KCM_CRON_LOG) << mimeType->name();
if (mimeType.name() == QLatin1String("application/x-executable") || mimeType.name() == QLatin1String("application/octet-stream")) {
return QIcon::fromTheme(commandPath.fileName(), QIcon::fromTheme(QLatin1String("system-run")));
}
......
......@@ -10,7 +10,7 @@
#include <KLocalizedString>
#include "logging.h"
#include "kcm_cron_debug.h"
CTUnit::CTUnit(int _min, int _max, const QString &tokStr)
{
......
/*
KSystemLog, a system log viewer tool
SPDX-FileCopyrightText: 2007 Nicolas Ternisien
nicolas.ternisien@gmail.com
SPDX-License-Identifier: GPL-2.0-or-later
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the
Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#pragma once
#include "kcm_cron_debug.h"
#define logDebug() qCDebug(KCM_CRON_LOG)
......@@ -20,7 +20,7 @@
#include "taskEditorDialog.h"
#include "taskWidget.h"
#include "logging.h"
#include "kcm_cron_debug.h"
/**
* Construct tasks folder from branch.
......@@ -77,7 +77,7 @@ GenericListWidget::GenericListWidget(CrontabWidget *crontabWidget, const QString
mainLayout->addLayout(treeLayout);
logDebug() << "Generic list created";
qCDebug(KCM_CRON_LOG) << "Generic list created";
connect(treeWidget(), &QTreeWidget::itemDoubleClicked, this, &GenericListWidget::modifySelection);
}
......
......@@ -22,7 +22,7 @@
#include "ctcron.h"
#include "cthost.h"
#include "cttask.h"
#include "logging.h"
#include "kcm_cron_debug.h"
K_PLUGIN_FACTORY(KCMCronFactory, registerPlugin<KCMCron>();)
......@@ -56,7 +56,7 @@ KCMCron::KCMCron(QWidget *parent, const QVariantList & /*args*/)
mCrontabWidget = new CrontabWidget(this, mCtHost);
logDebug() << "Crontab Widget initialized";
qCDebug(KCM_CRON_LOG) << "Crontab Widget initialized";
connect(mCrontabWidget->tasksWidget(), SIGNAL(taskModified(bool)), this, SIGNAL(changed(bool)));
connect(mCrontabWidget->variablesWidget(), SIGNAL(variableModified(bool)), this, SIGNAL(changed(bool)));
......@@ -82,14 +82,14 @@ KCMCron::~KCMCron()
void KCMCron::load()
{
logDebug() << "Calling load";
qCDebug(KCM_CRON_LOG) << "Calling load";
mCtHost->cancel();
}
void KCMCron::save()
{
logDebug() << "Saving crontab...";
qCDebug(KCM_CRON_LOG) << "Saving crontab...";
CTSaveStatus saveStatus = mCtHost->save();
if (saveStatus.isError()) {
......@@ -99,7 +99,7 @@ void KCMCron::save()
void KCMCron::defaults()
{
logDebug() << "Loading defaults";
qCDebug(KCM_CRON_LOG) << "Loading defaults";
mCtHost->cancel();
}
......
......@@ -30,7 +30,7 @@
#include "ctcron.h"
#include "cthost.h"
#include "cttask.h"
#include "logging.h"
#include "kcm_cron_debug.h"
#include "crontabWidget.h"
......@@ -359,12 +359,12 @@ bool TaskEditorDialog::canReduceMinutesGroup()
void TaskEditorDialog::emptyMinutesGroup()
{
logDebug() << "Empty minutes layout";
qCDebug(KCM_CRON_LOG) << "Empty minutes layout";
for (int minuteIndex = 0; minuteIndex <= minuteTotal; ++minuteIndex) {
mMinutesLayout->removeWidget(mMinuteButtons[minuteIndex]);
mMinuteButtons[minuteIndex]->hide();
logDebug() << "Layout count" << mMinutesLayout->count();
qCDebug(KCM_CRON_LOG) << "Layout count" << mMinutesLayout->count();
}
mMinutesLayout->removeItem(mMinutesPreselectionLayout);
......@@ -384,7 +384,7 @@ void TaskEditorDialog::increaseMinutesGroup()
*/
emptyMinutesGroup();
logDebug() << "Show all minutes";
qCDebug(KCM_CRON_LOG) << "Show all minutes";
int minuteIndex = 0;
for (int row = 0; row < (minuteTotal + 1) / minutePerColumn; ++row) {
......@@ -402,7 +402,7 @@ void TaskEditorDialog::increaseMinutesGroup()
void TaskEditorDialog::reduceMinutesGroup()
{
logDebug() << "Reducing view";
qCDebug(KCM_CRON_LOG) << "Reducing view";
emptyMinutesGroup();
......@@ -420,7 +420,7 @@ void TaskEditorDialog::reduceMinutesGroup()
nextRow = 1;
}
} else {
logDebug() << "Reducing id" << minuteIndex;
qCDebug(KCM_CRON_LOG) << "Reducing id" << minuteIndex;
mCtTask->minute.setEnabled(minuteIndex, false);
mMinuteButtons[minuteIndex]->setChecked(false);
}
......@@ -446,7 +446,7 @@ NumberPushButton *TaskEditorDialog::createMinuteButton(int minuteIndex)
void TaskEditorDialog::createMinutesGroup(QWidget *main)
{
logDebug() << "Creating minutes group";
qCDebug(KCM_CRON_LOG) << "Creating minutes group";
mMinutesGroup = new QGroupBox(i18n("Minutes"), main);
......@@ -487,7 +487,7 @@ void TaskEditorDialog::createMinutesGroup(QWidget *main)
reduceMinutesGroup();
}
logDebug() << "Minutes group created";
qCDebug(KCM_CRON_LOG) << "Minutes group created";
}
NumberPushButton *TaskEditorDialog::createHourButton(QGroupBox *hoursGroup, int hour)
......@@ -505,7 +505,7 @@ NumberPushButton *TaskEditorDialog::createHourButton(QGroupBox *hoursGroup, int
QGroupBox *TaskEditorDialog::createHoursGroup(QWidget *main)
{
logDebug() << "Creating hours group";
qCDebug(KCM_CRON_LOG) << "Creating hours group";
auto hoursGroup = new QGroupBox(i18n("Hours"), main);
auto hoursLayout = new QGridLayout(hoursGroup); // 5 x 7
......@@ -536,7 +536,7 @@ QGroupBox *TaskEditorDialog::createHoursGroup(QWidget *main)
connect(mAllHours, &SetOrClearAllButton::clicked, this, &TaskEditorDialog::slotAllHours);
connect(mAllHours, &SetOrClearAllButton::clicked, this, &TaskEditorDialog::slotWizard);
logDebug() << "Create hours group";
qCDebug(KCM_CRON_LOG) << "Create hours group";
return hoursGroup;
}
......@@ -720,7 +720,7 @@ bool TaskEditorDialog::checkCommand()
QString path = pathCommand.at(0);
QString binaryCommand = pathCommand.at(1);
logDebug() << "Looking for " << binaryCommand << "in" << path;
qCDebug(KCM_CRON_LOG) << "Looking for " << binaryCommand << "in" << path;
bool found = false;
bool exec = false;
......@@ -983,7 +983,7 @@ void TaskEditorDialog::slotMinutesPreselection(int index)
{
QVariant itemData = mMinutesPreselection->itemData(index);
int step = itemData.toInt();
logDebug() << "Selected step " << step;
qCDebug(KCM_CRON_LOG) << "Selected step " << step;