Commit 9966eeb3 authored by Tomaz  Canabrava's avatar Tomaz Canabrava

Revert "Remove conditional debug output"

This reverts commit fff60307.
parent 22698552
......@@ -249,12 +249,14 @@ void kpTransformResizeScaleCommand::scaleSelectionRegionWithDocument ()
// public virtual [base kpCommand]
void kpTransformResizeScaleCommand::execute ()
{
#if DEBUG_KP_TOOL_RESIZE_SCALE_COMMAND
qCDebug(kpLogCommands) << "kpTransformResizeScaleCommand::execute() type="
<< (int) m_type
<< " oldWidth=" << m_oldWidth
<< " oldHeight=" << m_oldHeight
<< " newWidth=" << m_newWidth
<< " newHeight=" << m_newHeight;
#endif
if (m_oldWidth == m_newWidth && m_oldHeight == m_newHeight)
return;
......@@ -370,8 +372,10 @@ void kpTransformResizeScaleCommand::execute ()
// public virtual [base kpCommand]
void kpTransformResizeScaleCommand::unexecute ()
{
#if DEBUG_KP_TOOL_RESIZE_SCALE_COMMAND
qCDebug(kpLogCommands) << "kpTransformResizeScaleCommand::unexecute() type="
<< m_type;
#endif
if (m_oldWidth == m_newWidth && m_oldHeight == m_newHeight) {
return;
......
......@@ -35,7 +35,6 @@
#include "mainWindow/kpMainWindow.h"
#include "tools/kpTool.h"
#include "commands/tools/selection/kpToolSelectionCreateCommand.h"
#include "kpLogCategories.h"
kpCommandHistory::kpCommandHistory (bool doReadConfig, kpMainWindow *mainWindow)
......@@ -94,10 +93,14 @@ void kpCommandHistory::addCreateSelectionCommand (kpToolSelectionCreateCommand *
// public slot virtual [base KCommandHistory]
void kpCommandHistory::undo ()
{
#if DEBUG_KP_COMMAND_HISTORY
qCDebug(kpLogCommands) << "kpCommandHistory::undo() CALLED!";
#endif
if (m_mainWindow && m_mainWindow->toolHasBegunShape ())
{
#if DEBUG_KP_COMMAND_HISTORY
qCDebug(kpLogCommands) << "\thas begun shape - cancel draw";
#endif
m_mainWindow->tool ()->cancelShapeInternal ();
}
else {
......
This diff is collapsed.
......@@ -31,12 +31,11 @@
#include "commands/kpCommandSize.h"
#include "layers/selections/kpAbstractSelection.h"
#include "kpLogCategories.h"
#include <QImage>
#include <QPolygon>
#include <QString>
#include <QDebug>
// public static
kpCommandSize::SizeType kpCommandSize::PixmapSize (const QImage &image)
......@@ -58,11 +57,13 @@ kpCommandSize::SizeType kpCommandSize::PixmapSize (int width, int height, int de
kpCommandSize::SizeType ret =
static_cast<kpCommandSize::SizeType> (width) * height * roundedDepth / 8;
#if DEBUG_KP_COMMAND_SIZE && 0
qCDebug(kpLogCommands) << "kpCommandSize::PixmapSize() w=" << width
<< " h=" << height
<< " d=" << depth
<< " roundedDepth=" << roundedDepth
<< " ret=" << ret;
#endif
return ret;
}
......@@ -87,11 +88,13 @@ kpCommandSize::SizeType kpCommandSize::QImageSize (int width, int height, int de
kpCommandSize::SizeType ret =
static_cast<kpCommandSize::SizeType> (width) * height * roundedDepth / 8;
#if DEBUG_KP_COMMAND_SIZE && 0
qCDebug(kpLogCommands) << "kpCommandSize::QImageSize() w=" << width
<< " h=" << height
<< " d=" << depth
<< " roundedDepth=" << roundedDepth
<< " ret=" << ret;
#endif
return ret;
}
......@@ -126,9 +129,11 @@ kpCommandSize::SizeType kpCommandSize::SelectionSize (const kpAbstractSelection
// public static
kpCommandSize::SizeType kpCommandSize::StringSize (const QString &string)
{
#if DEBUG_KP_COMMAND_SIZE && 1
qCDebug(kpLogCommands) << "kpCommandSize::StringSize(" << string << ")"
<< " len=" << string.length ()
<< " sizeof(QChar)=" << sizeof (QChar);
#endif
return static_cast<SizeType> (static_cast<unsigned int> (string.length ()) * sizeof (QChar));
}
......@@ -136,9 +141,11 @@ kpCommandSize::SizeType kpCommandSize::StringSize (const QString &string)
// public static
kpCommandSize::SizeType kpCommandSize::PolygonSize (const QPolygon &points)
{
#if DEBUG_KP_COMMAND_SIZE && 1
qCDebug(kpLogCommands) << "kpCommandSize::PolygonSize() points.size="
<< points.size ()
<< " sizeof(QPoint)=" << sizeof (QPoint);
#endif
return static_cast<SizeType> (static_cast<unsigned int> (points.size ()) * sizeof (QPoint));
}
......
......@@ -35,7 +35,6 @@
#include <climits>
#include <QtAlgorithms>
#include "kpLogCategories.h"
//---------------------------------------------------------------------
......@@ -63,18 +62,26 @@ kpMacroCommand::~kpMacroCommand ()
// public virtual [base kpCommand]
kpCommandSize::SizeType kpMacroCommand::size () const
{
#if DEBUG_KP_COMMAND_HISTORY && 0
qCDebug(kpLogCommands) << "kpMacroCommand::size()";
#endif
SizeType s = 0;
#if DEBUG_KP_COMMAND_HISTORY && 0
qCDebug(kpLogCommands) << "\tcalculating:";
for (auto *cmd : m_commandList)
#endif
foreach (kpCommand *cmd, m_commandList)
{
#if DEBUG_KP_COMMAND_HISTORY && 0
qCDebug(kpLogCommands) << "\t\tcurrentSize=" << s << " + "
<< cmd->name () << ".size=" << cmd->size ();
#endif
s += cmd->size ();
}
#if DEBUG_KP_COMMAND_HISTORY && 0
qCDebug(kpLogCommands) << "\treturning " << s;
#endif
return s;
}
......@@ -83,7 +90,9 @@ kpCommandSize::SizeType kpMacroCommand::size () const
// public virtual [base kpCommand]
void kpMacroCommand::execute ()
{
#if DEBUG_KP_COMMAND_HISTORY
qCDebug(kpLogCommands) << "kpMacroCommand::execute()";
#endif
viewManager()->setQueueUpdates();
......@@ -91,7 +100,9 @@ void kpMacroCommand::execute ()
it != m_commandList.end ();
++it)
{
#if DEBUG_KP_COMMAND_HISTORY
qCDebug(kpLogCommands) << "\texecuting " << (*it)->name ();
#endif
(*it)->execute ();
}
......@@ -103,7 +114,9 @@ void kpMacroCommand::execute ()
// public virtual [base kpCommand]
void kpMacroCommand::unexecute ()
{
#if DEBUG_KP_COMMAND_HISTORY
qCDebug(kpLogCommands) << "kpMacroCommand::unexecute()";
#endif
viewManager()->setQueueUpdates();
......@@ -112,7 +125,9 @@ void kpMacroCommand::unexecute ()
while (it != m_commandList.end ())
{
#if DEBUG_KP_COMMAND_HISTORY
qCDebug(kpLogCommands) << "\tunexecuting " << (*it)->name ();
#endif
(*it)->unexecute ();
it--;
......
......@@ -36,7 +36,6 @@
#include "pixmapfx/kpPixmapFX.h"
#include "tools/kpTool.h"
#include "views/manager/kpViewManager.h"
#include "kpLogCategories.h"
#include <QRect>
......@@ -103,12 +102,16 @@ void kpToolFlowCommand::updateBoundingRect (const QPoint &point)
// public
void kpToolFlowCommand::updateBoundingRect (const QRect &rect)
{
#if DEBUG_KP_TOOL_FLOW_COMMAND & 0
qCDebug(kpLogCommands) << "kpToolFlowCommand::updateBoundingRect() existing="
<< d->boundingRect
<< " plus="
<< rect;
#endif
d->boundingRect = d->boundingRect.united (rect);
#if DEBUG_KP_TOOL_FLOW_COMMAND & 0
qCDebug(kpLogCommands) << "\tresult=" << d->boundingRect;
#endif
}
// public
......
......@@ -98,8 +98,10 @@ void kpToolFloodFillCommand::setFillEntireImage (bool yes)
// protected virtual [base kpCommand]
void kpToolFloodFillCommand::execute ()
{
#if DEBUG_KP_TOOL_FLOOD_FILL && 1
qCDebug(kpLogCommands) << "kpToolFloodFillCommand::execute() fillEntireImage="
<< d->fillEntireImage;
#endif
kpDocument *doc = document ();
Q_ASSERT (doc);
......@@ -125,7 +127,9 @@ void kpToolFloodFillCommand::execute ()
}
else
{
#if DEBUG_KP_TOOL_FLOOD_FILL && 1
qCDebug(kpLogCommands) << "\tinvalid boundingRect - must be NOP case";
#endif
}
}
}
......@@ -135,8 +139,10 @@ void kpToolFloodFillCommand::execute ()
// protected virtual [base kpCommand]
void kpToolFloodFillCommand::unexecute ()
{
#if DEBUG_KP_TOOL_FLOOD_FILL && 1
qCDebug(kpLogCommands) << "kpToolFloodFillCommand::unexecute() fillEntireImage="
<< d->fillEntireImage;
#endif
kpDocument *doc = document ();
Q_ASSERT (doc);
......
......@@ -65,7 +65,9 @@ kpCommandSize::SizeType kpToolImageSelectionTransparencyCommand::size () const
// public virtual [base kpCommand]
void kpToolImageSelectionTransparencyCommand::execute ()
{
#if DEBUG_KP_TOOL_SELECTION && 1
qCDebug(kpLogCommands) << "kpToolImageSelectionTransparencyCommand::execute()";
#endif
kpSetOverrideCursorSaver cursorSaver (Qt::WaitCursor);
......@@ -79,7 +81,9 @@ void kpToolImageSelectionTransparencyCommand::execute ()
// public virtual [base kpCommand]
void kpToolImageSelectionTransparencyCommand::unexecute ()
{
#if DEBUG_KP_TOOL_SELECTION && 1
qCDebug(kpLogCommands) << "kpToolImageSelectionTransparencyCommand::unexecute()";
#endif
kpSetOverrideCursorSaver cursorSaver (Qt::WaitCursor);
......
......@@ -94,18 +94,23 @@ void kpToolSelectionCreateCommand::setFromSelection (const kpAbstractSelection &
// public virtual [base kpCommand]
void kpToolSelectionCreateCommand::execute ()
{
#if DEBUG_KP_TOOL_SELECTION
qCDebug(kpLogCommands) << "kpToolSelectionCreateCommand::execute()";
#endif
kpDocument *doc = document ();
Q_ASSERT (doc);
if (m_fromSelection)
{
#if DEBUG_KP_TOOL_SELECTION
qCDebug(kpLogCommands) << "\tusing fromSelection";
qCDebug(kpLogCommands) << "\t\thave sel=" << doc->selection ();
auto *imageSel = dynamic_cast <kpAbstractImageSelection *> (m_fromSelection);
auto *textSel = dynamic_cast <kpTextSelection *> (m_fromSelection);
qCDebug(kpLogCommands) << "\t\thave sel=" << doc->selection () << endl;
#endif
kpAbstractImageSelection *imageSel =
dynamic_cast <kpAbstractImageSelection *> (m_fromSelection);
kpTextSelection *textSel =
dynamic_cast <kpTextSelection *> (m_fromSelection);
if (imageSel)
{
if (imageSel->transparency () != environ ()->imageSelectionTransparency ()) {
......
......@@ -72,7 +72,9 @@ kpCommandSize::SizeType kpToolSelectionDestroyCommand::size () const
// public virtual [base kpCommand]
void kpToolSelectionDestroyCommand::execute ()
{
#if DEBUG_KP_TOOL_SELECTION
qCDebug(kpLogCommands) << "kpToolSelectionDestroyCommand::execute () CALLED";
#endif
kpDocument *doc = document ();
Q_ASSERT (doc);
......@@ -101,7 +103,9 @@ void kpToolSelectionDestroyCommand::execute ()
// public virtual [base kpCommand]
void kpToolSelectionDestroyCommand::unexecute ()
{
#if DEBUG_KP_TOOL_SELECTION
qCDebug(kpLogCommands) << "kpToolSelectionDestroyCommand::unexecute () CALLED";
#endif
kpDocument *doc = document ();
Q_ASSERT (doc);
......@@ -110,7 +114,9 @@ void kpToolSelectionDestroyCommand::unexecute ()
{
// not error because it's possible that the user dragged out a new
// region (without pulling image), and then CTRL+Z
#if DEBUG_KP_TOOL_SELECTION
qCDebug(kpLogCommands) << "kpToolSelectionDestroyCommand::unexecute() already has sel region";
#endif
if (doc->selection ()->hasContent ())
{
......@@ -123,15 +129,20 @@ void kpToolSelectionDestroyCommand::unexecute ()
if (m_pushOntoDocument)
{
#if DEBUG_KP_TOOL_SELECTION
qCDebug(kpLogCommands) << "\tunpush oldDocImage onto doc first";
#endif
doc->setImageAt (m_oldDocImage, m_oldSelectionPtr->topLeft ());
}
#if DEBUG_KP_TOOL_SELECTION
qCDebug(kpLogCommands) << "\tsetting selection to: rect=" << m_oldSelectionPtr->boundingRect ()
<< " hasContent=" << m_oldSelectionPtr->hasContent ();
auto *imageSel = dynamic_cast <kpAbstractImageSelection *> (m_oldSelectionPtr);
auto *textSel = dynamic_cast <kpTextSelection *> (m_oldSelectionPtr);
#endif
kpAbstractImageSelection *imageSel =
dynamic_cast <kpAbstractImageSelection *> (m_oldSelectionPtr);
kpTextSelection *textSel =
dynamic_cast <kpTextSelection *> (m_oldSelectionPtr);
if (imageSel)
{
if (imageSel->transparency () != environ ()->imageSelectionTransparency ()) {
......
......@@ -82,7 +82,9 @@ kpCommandSize::SizeType kpToolSelectionMoveCommand::size () const
// public virtual [base kpCommand]
void kpToolSelectionMoveCommand::execute ()
{
#if DEBUG_KP_TOOL_SELECTION && 1
qCDebug(kpLogCommands) << "kpToolSelectionMoveCommand::execute()";
#endif
kpDocument *doc = document ();
Q_ASSERT (doc);
......@@ -112,7 +114,9 @@ void kpToolSelectionMoveCommand::execute ()
// public virtual [base kpCommand]
void kpToolSelectionMoveCommand::unexecute ()
{
#if DEBUG_KP_TOOL_SELECTION && 1
qCDebug(kpLogCommands) << "kpToolSelectionMoveCommand::unexecute()";
#endif
kpDocument *doc = document ();
Q_ASSERT (doc);
......@@ -129,7 +133,10 @@ void kpToolSelectionMoveCommand::unexecute ()
if (!m_oldDocumentImage.isNull ()) {
doc->setImageAt (m_oldDocumentImage, m_documentBoundingRect.topLeft ());
}
#if DEBUG_KP_TOOL_SELECTION && 1
qCDebug(kpLogCommands) << "\tmove to startPoint=" << m_startPoint;
#endif
sel->moveTo (m_startPoint);
environ ()->somethingBelowTheCursorChanged ();
......@@ -140,8 +147,10 @@ void kpToolSelectionMoveCommand::unexecute ()
// public
void kpToolSelectionMoveCommand::moveTo (const QPoint &point, bool moveLater)
{
#if DEBUG_KP_TOOL_SELECTION && 0
qCDebug(kpLogCommands) << "kpToolSelectionMoveCommand::moveTo" << point
<< " moveLater=" << moveLater;
#endif
if (!moveLater)
{
......@@ -171,7 +180,9 @@ void kpToolSelectionMoveCommand::moveTo (int x, int y, bool moveLater)
// public
void kpToolSelectionMoveCommand::copyOntoDocument ()
{
#if DEBUG_KP_TOOL_SELECTION
qCDebug(kpLogCommands) << "kpToolSelectionMoveCommand::copyOntoDocument()";
#endif
kpDocument *doc = document ();
Q_ASSERT (doc);
......
......@@ -46,8 +46,10 @@ kpToolSelectionPullFromDocumentCommand::kpToolSelectionPullFromDocumentCommand (
: kpAbstractSelectionContentCommand (originalSelBorder, name, environ),
m_backgroundColor (backgroundColor)
{
#if DEBUG_KP_TOOL_SELECTION && 1
qCDebug(kpLogCommands) << "kpToolSelectionPullFromDocumentCommand::<ctor>() environ="
<< environ;
#endif
}
kpToolSelectionPullFromDocumentCommand::~kpToolSelectionPullFromDocumentCommand () = default;
......@@ -56,7 +58,9 @@ kpToolSelectionPullFromDocumentCommand::~kpToolSelectionPullFromDocumentCommand
// public virtual [base kpCommand]
void kpToolSelectionPullFromDocumentCommand::execute ()
{
#if DEBUG_KP_TOOL_SELECTION && 1
qCDebug(kpLogCommands) << "kpToolSelectionPullFromDocumentCommand::execute()";
#endif
kpDocument *doc = document ();
Q_ASSERT (doc);
......@@ -116,7 +120,9 @@ void kpToolSelectionPullFromDocumentCommand::execute ()
// public virtual [base kpCommand]
void kpToolSelectionPullFromDocumentCommand::unexecute ()
{
#if DEBUG_KP_TOOL_SELECTION && 1
qCDebug(kpLogCommands) << "kpToolSelectionPullFromDocumentCommand::unexecute()";
#endif
kpDocument *doc = document ();
Q_ASSERT (doc);
......
......@@ -160,8 +160,10 @@ void kpToolSelectionResizeScaleCommand::killSmoothScaleTimer ()
// protected
void kpToolSelectionResizeScaleCommand::resizeScaleAndMove (bool delayed)
{
#if DEBUG_KP_TOOL_SELECTION
qCDebug(kpLogCommands) << "kpToolSelectionResizeScaleCommand::resizeScaleAndMove(delayed="
<< delayed << ")";
#endif
killSmoothScaleTimer ();
......@@ -208,9 +210,11 @@ void kpToolSelectionResizeScaleCommand::resizeScaleAndMove (bool delayed)
// public
void kpToolSelectionResizeScaleCommand::finalize ()
{
#if DEBUG_KP_TOOL_SELECTION
qCDebug(kpLogCommands) << "kpToolSelectionResizeScaleCommand::finalize()"
<< " smoothScaleTimer->isActive="
<< m_smoothScaleTimer->isActive ();
#endif
// Make sure the selection contains the final image and the timer won't
// fire afterwards.
......
......@@ -58,6 +58,7 @@ kpCommandSize::SizeType kpToolTextChangeStyleCommand::size () const
// public virtual [base kpCommand]
void kpToolTextChangeStyleCommand::execute ()
{
#if DEBUG_KP_TOOL_TEXT && 1
qCDebug(kpLogCommands) << "kpToolTextChangeStyleCommand::execute()"
<< " font=" << m_newTextStyle.fontFamily ()
<< " fontSize=" << m_newTextStyle.fontSize ()
......@@ -65,6 +66,7 @@ void kpToolTextChangeStyleCommand::execute ()
<< " isItalic=" << m_newTextStyle.isItalic ()
<< " isUnderline=" << m_newTextStyle.isUnderline ()
<< " isStrikeThru=" << m_newTextStyle.isStrikeThru ();
#endif
environ ()->setTextStyle (m_newTextStyle);
......@@ -76,6 +78,7 @@ void kpToolTextChangeStyleCommand::execute ()
// public virtual [base kpCommand]
void kpToolTextChangeStyleCommand::unexecute ()
{
#if DEBUG_KP_TOOL_TEXT && 1
qCDebug(kpLogCommands) << "kpToolTextChangeStyleCommand::unexecute()"
<< " font=" << m_newTextStyle.fontFamily ()
<< " fontSize=" << m_newTextStyle.fontSize ()
......@@ -83,6 +86,7 @@ void kpToolTextChangeStyleCommand::unexecute ()
<< " isItalic=" << m_newTextStyle.isItalic ()
<< " isUnderline=" << m_newTextStyle.isUnderline ()
<< " isStrikeThru=" << m_newTextStyle.isStrikeThru ();
#endif
environ ()->setTextStyle (m_oldTextStyle);
......
......@@ -44,8 +44,10 @@ kpToolTextGiveContentCommand::kpToolTextGiveContentCommand (
kpCommandEnvironment *environ)
: kpAbstractSelectionContentCommand (originalSelBorder, name, environ)
{
#if DEBUG_KP_TOOL_SELECTION && 1
qCDebug(kpLogCommands) << "kpToolTextGiveContentCommand::<ctor>() environ="
<< environ;
<< environ
#endif
}
kpToolTextGiveContentCommand::~kpToolTextGiveContentCommand () = default;
......@@ -54,7 +56,9 @@ kpToolTextGiveContentCommand::~kpToolTextGiveContentCommand () = default;
// public virtual [base kpCommand]
void kpToolTextGiveContentCommand::execute ()
{
#if DEBUG_KP_TOOL_SELECTION && 1
qCDebug(kpLogCommands) << "kpToolTextGiveContentCommand::execute()";
#endif
kpDocument *doc = document ();
Q_ASSERT (doc);
......@@ -120,7 +124,9 @@ void kpToolTextGiveContentCommand::execute ()
// public virtual [base kpCommand]
void kpToolTextGiveContentCommand::unexecute ()
{
#if DEBUG_KP_TOOL_SELECTION && 1
qCDebug(kpLogCommands) << "kpToolTextGiveContentCommand::unexecute()";
#endif
kpDocument *doc = document ();
Q_ASSERT (doc);
......
......@@ -84,7 +84,9 @@ static void setPixel (unsigned char *colorBitmap,
const QCursor *kpCursorLightCrossCreate ()
{
#if DEBUG_KP_CURSOR_LIGHT_CROSS
qCDebug(kpLogMisc) << "kpCursorLightCrossCreate() ";
#endif
const int side = 24;
const int byteSize = (side * side) / 8;
......
......@@ -78,7 +78,9 @@ kpEffectsDialog::kpEffectsDialog (bool actOnSelection,
m_settingsLayout (nullptr),
m_effectWidget (nullptr)
{
#if DEBUG_KP_EFFECTS_DIALOG
qCDebug(kpLogDialogs) << "kpEffectsDialog::kpEffectsDialog()";
#endif
const bool e = updatesEnabled ();
setUpdatesEnabled (false);
......@@ -139,10 +141,17 @@ kpEffectsDialog::kpEffectsDialog (bool actOnSelection,
resize (s_lastWidth, s_lastHeight);
#if DEBUG_KP_EFFECTS_DIALOG
qCDebug(kpLogDialogs) << "about to setUpdatesEnabled()";
#endif
// OPT: The preview pixmap gets recalculated here and then possibly
// again when QResizeEvent fires, when the dialog is shown.
setUpdatesEnabled (e);
#if DEBUG_KP_EFFECTS_DIALOG
qCDebug(kpLogDialogs) << endl
<< endl
<< endl;
#endif
}
kpEffectsDialog::~kpEffectsDialog ()
......@@ -276,16 +285,22 @@ void kpEffectsDialog::selectEffect (int which)
const bool e = updatesEnabled ();
setUpdatesEnabled (false);
#if DEBUG_KP_EFFECTS_DIALOG
qCDebug(kpLogDialogs) << "widget exists for effect #";
#endif
m_settingsGroupBox->setTitle (m_effectWidget->caption ());
// Show widget.
//
// Don't resize the whole dialog when doing this.
// This seems to work magically without any extra code with Qt4.
#if DEBUG_KP_EFFECTS_DIALOG
qCDebug(kpLogDialogs) << "addWidget";
#endif
m_settingsLayout->addWidget (m_effectWidget);
#if DEBUG_KP_EFFECTS_DIALOG
qCDebug(kpLogDialogs) << "show widget";
#endif
m_effectWidget->show ();
connect (m_effectWidget, &kpEffectWidgetBase::settingsChangedNoWaitCursor,
......@@ -295,19 +310,30 @@ void kpEffectsDialog::selectEffect (int which)
connect (m_effectWidget, &kpEffectWidgetBase::settingsChangedDelayed,
this, &kpEffectsDialog::slotDelayedUpdate);
#if DEBUG_KP_EFFECTS_DIALOG
qCDebug(kpLogDialogs) << "about to setUpdatesEnabled()";
#endif
setUpdatesEnabled (e);
}
qCDebug(kpLogDialogs) << "done";
#if DEBUG_KP_EFFECTS_DIALOG
qCDebug(kpLogDialogs) << "done"
<< endl
<< endl
<< endl;
#endif
}
// protected slot virtual [base kpTransformPreviewDialog]
void kpEffectsDialog::slotUpdate ()
{
#if DEBUG_KP_EFFECTS_DIALOG
qCDebug(kpLogDialogs) << "kpEffectsDialog::slotUpdate()"
<< " timerActive=" << m_delayedUpdateTimer->isActive ();
<< " timerActive=" << m_delayedUpdateTimer->isActive ()
<< endl;
#endif
m_delayedUpdateTimer->stop ();
......@@ -317,8 +343,11 @@ void kpEffectsDialog::slotUpdate ()
// protected slot virtual [base kpTransformPreviewDialog]
void kpEffectsDialog::slotUpdateWithWaitCursor ()
{
#if DEBUG_KP_EFFECTS_DIALOG
qCDebug(kpLogDialogs) << "kpEffectsDialog::slotUpdateWithWaitCursor()"
<< " timerActive=" << m_delayedUpdateTimer->isActive ();
<< " timerActive=" << m_delayedUpdateTimer->isActive ()
<< endl;
#endif
m_delayedUpdateTimer->stop ();
......@@ -329,11 +358,15 @@ void kpEffectsDialog::slotUpdateWithWaitCursor ()
// protected slot
void kpEffectsDialog::slotDelayedUpdate ()
{
#if DEBUG_KP_EFFECTS_DIALOG
qCDebug(kpLogDialogs) << "kpEffectsDialog::slotDelayedUpdate()"
<< " timerActive=" << m_delayedUpdateTimer->isActive ();
<< " timerActive=" << m_delayedUpdateTimer->isActive ()
<< endl;
#endif
m_delayedUpdateTimer->stop ();
// (single shot)
m_delayedUpdateTimer->start (400/*ms*/);
}
......@@ -565,9 +565,11 @@ bool kpDocumentMetaInfoDialog::isFieldsRowDeleteable (int row) const
// private
void kpDocumentMetaInfoDialog::fieldsDeleteRow (int r)
{
#if DEBUG_KP_DOCUMENT_META_INFO_DIALOG
qCDebug(kpLogDialogs) << "kpDocumentMetaInfoDialog::fieldsDeleteRow("
<< "row=" << r << ")"
<< " currentRow=" << d->fieldsTableWidget->currentRow ();
#endif