Commit 06e6d513 authored by Alexander Potashev's avatar Alexander Potashev

lgpl: Change kDebug() to qDebug()

parent d7471d18
......@@ -14,7 +14,14 @@ add_library(kolourpaint_lgpl SHARED ${kolourpaint_lgpl_SRCS})
set(kolourpaint_lgpl_version 5)
target_link_libraries(kolourpaint_lgpl KF5::KDELibs4Support)
target_link_libraries(kolourpaint_lgpl
KF5::KDELibs4Support
KF5::I18n
KF5::GuiAddons
KF5::WidgetsAddons
KF5::KIOCore
Qt5::Widgets
)
set_target_properties(kolourpaint_lgpl
PROPERTIES
......
......@@ -35,9 +35,9 @@
#include <QMouseEvent>
#include <QPainter>
#include <QImage>
#include <QDebug>
#include <KColorMimeData>
#include <KDebug>
class kpColorCellsBase::kpColorCellsBasePrivate
......@@ -135,7 +135,7 @@ void kpColorCellsBase::setRowColumnCounts (int rows, int columns)
const int oldRows = rowCount (), oldCols = columnCount ();
const int newRows = rows, newCols = columns;
#if DEBUG_KP_COLOR_CELLS_BASE
kDebug () << "oldRows=" << oldRows << "oldCols=" << oldCols
qDebug () << "oldRows=" << oldRows << "oldCols=" << oldCols
<< "newRows=" << newRows << "newCols=" << newCols;
#endif
......@@ -381,7 +381,7 @@ int kpColorCellsBase::positionToCell(const QPoint &pos, bool ignoreBorders,
const int r = indexAt (pos).row (), c = indexAt (pos).column ();
#if DEBUG_KP_COLOR_CELLS_BASE
kDebug () << "r=" << r << "c=" << c;
qDebug () << "r=" << r << "c=" << c;
#endif
if (r == -1 || c == -1)
......@@ -419,14 +419,14 @@ void kpColorCellsBase::mouseMoveEvent( QMouseEvent *e )
if (cell != -1)
{
#if DEBUG_KP_COLOR_CELLS_BASE
kDebug () << "beginning drag from cell=" << cell
qDebug () << "beginning drag from cell=" << cell
<< "color: isValid=" << d->colors [cell].isValid ()
<< " rgba=" << (int *) d->colors [cell].rgba();
#endif
Q_ASSERT (d->colors[cell].isValid());
KColorMimeData::createDrag(d->colors[cell], this)->start(Qt::CopyAction | Qt::MoveAction);
#if DEBUG_KP_COLOR_CELLS_BASE
kDebug () << "finished drag";
qDebug () << "finished drag";
#endif
}
}
......@@ -457,7 +457,7 @@ static void SetDropAction (QWidget *self, QDropEvent *event)
void kpColorCellsBase::dragEnterEvent( QDragEnterEvent *event)
{
#if DEBUG_KP_COLOR_CELLS_BASE
kDebug () << "kpColorCellsBase::dragEnterEvent() acceptDrags="
qDebug () << "kpColorCellsBase::dragEnterEvent() acceptDrags="
<< d->acceptDrags
<< " canDecode=" << KColorMimeData::canDecode(event->mimeData())
<< endl;
......@@ -471,7 +471,7 @@ void kpColorCellsBase::dragEnterEvent( QDragEnterEvent *event)
void kpColorCellsBase::dragMoveEvent (QDragMoveEvent *event)
{
#if DEBUG_KP_COLOR_CELLS_BASE
kDebug () << "kpColorCellsBase::dragMoveEvent() acceptDrags="
qDebug () << "kpColorCellsBase::dragMoveEvent() acceptDrags="
<< d->acceptDrags
<< " canDecode=" << KColorMimeData::canDecode(event->mimeData())
<< endl;
......@@ -490,7 +490,7 @@ void kpColorCellsBase::dropEvent( QDropEvent *event)
positionToCell (d->mousePos, true) :
-1;
#if DEBUG_KP_COLOR_CELLS_BASE
kDebug () << "kpColorCellsBase::dropEvent()"
qDebug () << "kpColorCellsBase::dropEvent()"
<< "color: rgba=" << (const int *) c.rgba () << "isValid=" << c.isValid()
<< "source=" << event->source () << "dragSourceCell=" << dragSourceCell;
#endif
......@@ -499,7 +499,7 @@ void kpColorCellsBase::dropEvent( QDropEvent *event)
int cell = positionToCell(event->pos(), true, true/*allow empty cell*/);
#if DEBUG_KP_COLOR_CELLS_BASE
kDebug () << "\tcell=" << cell;
qDebug () << "\tcell=" << cell;
#endif
// TODO: I believe kdelibs forgets to do this.
if (cell == -1)
......@@ -513,7 +513,7 @@ void kpColorCellsBase::dropEvent( QDropEvent *event)
setColor(cell,c);
#if DEBUG_KP_COLOR_CELLS_BASE
kDebug () << "\tdropAction=" << event->dropAction ()
qDebug () << "\tdropAction=" << event->dropAction ()
<< "destOldColor.rgba=" << (const int *) destOldColor.rgba ();
#endif
if (event->dropAction () == Qt::MoveAction && dragSourceCell != -1) {
......
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