Commit cf7bde75 authored by Thomas Zander's avatar Thomas Zander

Thanks to the new kDebug stuff, which is based on qDebug, we no longer

need to pass an endline and there will be a space placed between
arguments automatically.
This means that everywhere we added those manually we get duplicates, so
lets get rid of those.

oh; here is the perl script I used; (regexps rock!)

#!/usr/bin/perl -ni

s/(kDebug\s*\(.*?)(\s*<<\s*endl\s*;)/$1;/;
while(s/(kDebug\s*\(.*)((\\n|\s+)\")/$1"/s) {}
print $_;

svn path=/trunk/koffice/; revision=694641
parent 6e2d316c
......@@ -254,7 +254,7 @@ void Viewport::resetLayout()
int resizeW = viewW;
int resizeH = viewH;
// kDebug() << "viewH: " << viewH << endl
// kDebug() <<"viewH:" << viewH << endl
// << "docH: " << docH << endl
// << "viewW: " << viewW << endl
// << "docW: " << docW << endl;
......@@ -324,8 +324,8 @@ void Viewport::resetLayout()
m_canvas->setGeometry( moveX, moveY, resizeW, resizeH );
}
// kDebug() << "View port geom: " << geometry() << endl;
// kDebug() << "Canvas widget geom: " << m_canvas->geometry() << endl;
// kDebug() <<"View port geom:" << geometry();
// kDebug() <<"Canvas widget geom:" << m_canvas->geometry();
}
#include "KoCanvasController_p.moc"
......@@ -297,7 +297,7 @@ void KoPathShape::paintDebug( QPainter &painter )
}
}
painter.restore();
kDebug(30006) << "nop = " << i << endl;
kDebug(30006) <<"nop =" << i;
}
void KoPathShape::debugPath()
......@@ -308,7 +308,7 @@ void KoPathShape::debugPath()
KoSubpath::const_iterator it( ( *pathIt )->begin() );
for ( ; it != ( *pathIt )->end(); ++it )
{
kDebug(30006) << "p:" << ( *pathIt ) << "," << *it << "," << ( *it )->point() << "," << ( *it )->properties() << "," << ( *it )->group() << endl;
kDebug(30006) <<"p:" << ( *pathIt ) <<"," << *it <<"," << ( *it )->point() <<"," << ( *it )->properties() <<"," << ( *it )->group();
}
}
}
......@@ -559,7 +559,7 @@ int KoPathShape::arcToCurve( double rx, double ry, double startAngle, double swe
//center berechnen
QPointF center( startpoint - QPointF( cossa * rx, -sinsa * ry ) );
kDebug(30006) << "kappa" << kappa << "parts" << parts << endl;;
kDebug(30006) <<"kappa" << kappa <<"parts" << parts;;
for ( int part = 0; part < parts; ++part )
{
......
......@@ -40,10 +40,13 @@
#include "KoParameterChangeStrategy.h"
#include "KoPathPointMoveStrategy.h"
#include "KoPathPointRubberSelectStrategy.h"
#include <KIcon>
#include <kdebug.h>
#include <klocale.h>
#include <kiconloader.h>
#include <QKeyEvent>
#include <QAction>
#include <QGridLayout>
#include <QButtonGroup>
#include <QToolButton>
......@@ -51,11 +54,14 @@
KoPathTool::KoPathTool(KoCanvasBase *canvas)
: KoTool(canvas)
, m_activeHandle( 0 )
, m_activeHandle( 0 )
, m_handleRadius( 3 )
, m_pointSelection( this )
, m_pointSelection( this )
, m_currentStrategy(0)
{
QAction *action = new QAction(KIcon("pathpoint-corner"), i18n("Corner point"), this);
addAction("pathpoint-corner", action);
//connect(action
}
KoPathTool::~KoPathTool() {
......@@ -632,7 +638,7 @@ void KoPathTool::selectPoints( const QRectF &rect, bool clearSelection )
}
void KoPathTool::repaint( const QRectF &repaintRect ) {
//kDebug(30006) << "KoPathTool::repaint(" << repaintRect << ")" << m_handleRadius;
//kDebug(30006) <<"KoPathTool::repaint(" << repaintRect <<")" << m_handleRadius;
m_canvas->updateCanvas( repaintRect.adjusted( -m_handleRadius, -m_handleRadius, m_handleRadius, m_handleRadius ) );
}
......
......@@ -194,7 +194,7 @@ void KoShapeContainer::paint(QPainter &painter, const KoViewConverter &converter
painter.setClipPath(m.map(outline()));
foreach (KoShape *shape, sortedObjects) {
//kDebug(30006) << "KoShapeContainer::painting shape: " << shape->shapeId() << ", " << shape->boundingRect() << endl;
//kDebug(30006) <<"KoShapeContainer::painting shape:" << shape->shapeId() <<"," << shape->boundingRect();
if(! shape->isVisible())
continue;
if(! childClipped(shape) ) // the shapeManager will have to draw those, or else we can't do clipRects
......
......@@ -80,7 +80,7 @@ void KoShapeRegistry::init() {
KoShapeFactory * factory = factories[i];
if ( factory->odfNameSpace().isEmpty() || factory->odfElementNames().isEmpty() )
{
kDebug(30006) << "Shape factory " << factory->id() << " does not have OdfNamespace defined, ignoring" << endl;
kDebug(30006) <<"Shape factory" << factory->id() <<" does not have OdfNamespace defined, ignoring";
}
else {
foreach( QString elementName, factory->odfElementNames() ) {
......@@ -91,7 +91,7 @@ void KoShapeRegistry::init() {
d->factoryMap[p].insert( factory->loadingPriority(), factory );
kDebug(30006) << "Inserting factory " << factory->id() << " for "
kDebug(30006) <<"Inserting factory" << factory->id() <<" for"
<< p << " with priority "
<< factory->loadingPriority() << " into factoryMap making "
<< d->factoryMap[p].size() << " entries. " << endl;
......@@ -115,7 +115,7 @@ KoShapeRegistry* KoShapeRegistry::instance()
KoShape * KoShapeRegistry::createShapeFromOdf(const KoXmlElement & e, KoShapeLoadingContext & context) const
{
kDebug(30006) << "Going to check for " << e.namespaceURI() << ":" << e.tagName() << endl;
kDebug(30006) <<"Going to check for" << e.namespaceURI() <<":" << e.tagName();
// If the element is in a frame, the frame is already added by the
// application and we only want to create a shape from the
......@@ -141,7 +141,7 @@ KoShape * KoShapeRegistry::createShapeFromOdf(const KoXmlElement & e, KoShapeLoa
KoShape * KoShapeRegistry::createShapeInternal( const KoXmlElement & element, KoShapeLoadingContext & context ) const
{
QPair<QString, QString> p = QPair<QString, QString>(element.namespaceURI(), element.tagName());
kDebug(30006) << p << endl;
kDebug(30006) << p;
if ( !d->factoryMap.contains( p ) ) return 0;
......
......@@ -105,7 +105,7 @@ KoShapeShearStrategy::KoShapeShearStrategy( KoTool *tool, KoCanvasBase *canvas,
double currentAngle = atan2( edge.y(), edge.x() ) / M_PI * 180;
m_initialSelectionAngle = currentAngle - angle;
kDebug(30006) << " PREsol.x=" << m_solidPoint.x() << " sol.y=" << m_solidPoint.y() <<endl;
kDebug(30006) <<" PREsol.x=" << m_solidPoint.x() <<" sol.y=" << m_solidPoint.y();
m_solidPoint = canvas->shapeManager()->selection()->transformationMatrix(0).map( m_solidPoint );
// use crossproduct of top edge and left edge of selection bounding rect
......
......@@ -375,7 +375,7 @@ void KoSvgPathParser::parseSvg( const QString &s, bool process )
{
// when svg parser is used for a parsing an odf path an unknown command
// can be encountered, so we stop parsing here
kDebug() << "KoSvgPathParser::parseSVG(): unknown command \"" << command << "\"" << endl;
kDebug() <<"KoSvgPathParser::parseSVG(): unknown command \"" << command <<"\"";
return;
}
}
......
......@@ -114,7 +114,7 @@ public:
toolsHash.insert(tool->id(), origHash.value(tool->id()));
continue;
}
kDebug(30006) << "Creating tool " << tool->id() << ". Activated on: " << tool->activationShapeId() << ", prio:" << tool->priority() << endl;
kDebug(30006) <<"Creating tool" << tool->id() <<". Activated on:" << tool->activationShapeId() <<", prio:" << tool->priority();
KoTool *tl = tool->createTool(controller->canvas());
uniqueToolIds.insert(tl, tool->uniqueId());
toolsHash.insert(tool->id(), tl);
......@@ -337,8 +337,8 @@ void KoToolManager::postSwitchTool() {
bool first = true;
foreach(CanvasData *data, list) {
if(first)
kDebug(30006) << "Canvas " << canvasCount++ << endl;
kDebug(30006) << " +- Tool: " << data->activeToolId << (data == d->canvasData?" *":"") << endl;
kDebug(30006) <<"Canvas" << canvasCount++;
kDebug(30006) <<" +- Tool:" << data->activeToolId << (data == d->canvasData?" *":"");
first = false;
}
}
......
......@@ -47,11 +47,11 @@ KoShapeAlignCommand::KoShapeAlignCommand( const QList<KoShape*> &shapes, Align a
QRectF bRect;
foreach( KoShape *shape, shapes ) {
// if(dynamic_cast<KoShapeGroup*> (shape))
// kDebug() << "Found Group\n";
// kDebug() <<"Found Group";
// else if(dynamic_cast<KoShapeContainer*> (shape))
// kDebug() << "Found Container\n";
// kDebug() <<"Found Container";
// else
// kDebug() << "Found shape\n";
// kDebug() <<"Found shape";
position = shape->position();
previousPositions << position;
bRect = shape->boundingRect();
......@@ -77,7 +77,7 @@ KoShapeAlignCommand::KoShapeAlignCommand( const QList<KoShape*> &shapes, Align a
break;
};
newPositions << position + delta;
//kDebug() << "-> moving " << position.x() << "," << position.y() << " to " <<
//kDebug() <<"-> moving" << position.x() <<"," << position.y() <<" to" <<
// (position + delta).x() << ", " << (position+delta).y() << endl;
}
d->command = new KoShapeMoveCommand(shapes, previousPositions, newPositions);
......
......@@ -198,7 +198,7 @@ void KoCsvImportDialog::fillTable( )
int maxColumn = 1;
row = column = 1;
QTextStream inputStream(m_fileArray, QIODevice::ReadOnly);
kDebug(30501) << "Encoding: " << m_codec->name() << endl;
kDebug(30501) <<"Encoding:" << m_codec->name();
inputStream.setCodec( m_codec );
const int delimiterLength = m_delimiter.size();
......@@ -553,7 +553,7 @@ void KoCsvImportDialog::genericDelimiterChanged( const QString & )
void KoCsvImportDialog::formatChanged( const QString& newValue )
{
//kDebug(30501) << "KoCsvImportDialog::formatChanged:" << newValue << endl;
//kDebug(30501) <<"KoCsvImportDialog::formatChanged:" << newValue;
for ( int i = 0; i < m_dialog->m_sheet->numSelections(); ++i )
{
Q3TableSelection select ( m_dialog->m_sheet->selection( i ) );
......@@ -578,7 +578,7 @@ void KoCsvImportDialog::delimiterClicked(int id)
else if (id == group->id(m_dialog->m_radioSemicolon))
m_delimiter = ";";
kDebug(30501) << "Delimiter \"" << m_delimiter << "\" selected." << endl;
kDebug(30501) <<"Delimiter \"" << m_delimiter <<"\" selected.";
fillTable();
}
......@@ -636,7 +636,7 @@ void KoCsvImportDialog::ignoreDuplicatesChanged(int)
QTextCodec* KoCsvImportDialog::getCodec(void) const
{
const QString strCodec( KGlobal::charsets()->encodingForName( m_dialog->comboBoxEncoding->currentText() ) );
kDebug(30501) << "Encoding: " << strCodec << endl;
kDebug(30501) <<"Encoding:" << strCodec;
bool ok = false;
QTextCodec* codec = QTextCodec::codecForName( strCodec.toUtf8() );
......
......@@ -85,7 +85,7 @@ QPixmap KoImageData::pixmap() {
if(d->image.isNull() && d->tempImageFile) {
d->tempImageFile->open();
d->image.load(d->tempImageFile, 0);
// kDebug() << " orig: " << d->image.width() << "x" << d->image.height() << endl;
// kDebug() <<" orig:" << d->image.width() <<"x" << d->image.height();
d->tempImageFile->close();
d->imageSize.setWidth( DM_TO_POINT(d->image.width() / (double) d->image.dotsPerMeterX() * 10.0) );
d->imageSize.setHeight( DM_TO_POINT(d->image.height() / (double) d->image.dotsPerMeterY() * 10.0) );
......@@ -107,7 +107,7 @@ QPixmap KoImageData::pixmap() {
multiplier = 100;
int width = qMin(d->image.width(), qRound(d->imageSize.width() * multiplier / 72.));
int height = qMin(d->image.height(), qRound(d->imageSize.height() * multiplier / 72.));
// kDebug() << " image: " << width << "x" << height << endl;
// kDebug() <<" image:" << width <<"x" << height;
QImage scaled = d->image.scaled(width, height);
if(d->tempImageFile) // free memory
......
......@@ -61,7 +61,7 @@ void KoLayoutVisitor::visit(QWidget *widget) {
item.label = label;
item.x = label->mapToGlobal(QPoint(0,0)).x();
// QPoint pos = label->mapToGlobal(QPoint(0,0));
// kDebug() << "Found label: " << label->text() << " at " << pos << endl;
// kDebug() <<"Found label:" << label->text() <<" at" << pos;
d->addItem(item);
}
......@@ -78,7 +78,7 @@ void KoLayoutVisitor::relayout() {
public:
Layouter() : x(-20), right(0) {}
void add(const Item &item) {
//kDebug() << "relayout::add " << item.label->text() << endl;
//kDebug() <<"relayout::add" << item.label->text();
QGridLayout *layout = 0;
foreach ( QGridLayout *l, item.label->parentWidget()->findChildren<QGridLayout*>()) {
......@@ -115,7 +115,7 @@ void KoLayoutVisitor::relayout() {
foreach(QGridLayout* layout, column.keys()) {
QLabel *label = column[layout];
//kDebug() << "altering 1 layout (" << label->text() << ")\n";
//kDebug() <<"altering 1 layout (" << label->text() <<")";
int index = layout->indexOf(label);
int row, column, rowSpan, columnSpan;
layout->getItemPosition(index, &row, &column, &rowSpan, &columnSpan);
......
......@@ -33,7 +33,7 @@ public:
}
void paste() {
kDebug() << "Paste!\n";
kDebug() <<"Paste!";
if(! canvas->toolProxy()->paste()) {
// means paste failed
// TODO find a shape that can be created to hold the relevant content and load it.
......
......@@ -71,10 +71,10 @@ public:
QList<KoShape*> shapes = parent->shapesOnPage(pageNumber);
const int progressPart = 50 / shapes.count();
foreach(KoShape *shape, shapes) {
kDebug(30004) << "Calling waitUntilReady on shape (" << shape << ")\n";
kDebug(30004) <<"Calling waitUntilReady on shape (" << shape <<")";
if(! stop)
shape->waitUntilReady();
kDebug(30004) << " done\n";
kDebug(30004) <<" done";
updater.setProgress(updater.progress() + progressPart);
}
updater.setProgress(100);
......
......@@ -92,7 +92,7 @@ int KoSelectAction::plug(QWidget* widget, int index)
// This function is copied from KActionMenu::plug
if (!KAuthorized::authorizeKAction(name()))
return -1;
kDebug(129) << "KAction::plug( " << widget << ", " << index << " )" << endl; // remove -- ellis
kDebug(129) <<"KAction::plug(" << widget <<"," << index <<" )"; // remove -- ellis
if ( widget->inherits("QPopupMenu") )
{
Q3PopupMenu* menu = static_cast<Q3PopupMenu*>( widget );
......
......@@ -295,7 +295,7 @@ void KoTemplateCreateDia::slotOk() {
while ( KIO::NetAccess::exists( dest, true, this ) );
}
bool ignore = false;
kDebug(30004) << "Trying to create template: " << d->m_name->text() << "URL=" << ".source/"+file+ext << " ICON=" << tmpIcon << endl;
kDebug(30004) <<"Trying to create template:" << d->m_name->text() <<"URL=" <<".source/"+file+ext <<" ICON=" << tmpIcon;
KoTemplate *t=new KoTemplate(d->m_name->text(), QString(), ".source/"+file+ext, tmpIcon, "", "", false, true);
if(!group->add(t)) {
KoTemplate *existingTemplate=group->find(d->m_name->text());
......@@ -482,7 +482,7 @@ void KoTemplateCreateDia::updatePixmap() {
d->m_preview->setPixmap(m_pixmap);
else if(d->m_custom->isChecked() && !d->m_customFile.isEmpty()) {
if(d->m_customPixmap.isNull()) {
kDebug(30004) << "Trying to load picture " << d->m_customFile << endl;
kDebug(30004) <<"Trying to load picture" << d->m_customFile;
// use the code in KoTemplate to load the image... hacky, I know :)
KoTemplate t("foo", "bar", QString(), d->m_customFile);
d->m_customPixmap=t.loadPicture(d->m_tree->componentData());
......
......@@ -56,7 +56,7 @@ KoToolBox::~KoToolBox() {
}
void KoToolBox::addButton(QAbstractButton *button, const QString &section, int priority, int buttonGroupId) {
//kDebug(30004) << "Adding button: " << section << ", prio " << priority << ", group: " << buttonGroupId << endl;
//kDebug(30004) <<"Adding button:" << section <<", prio" << priority <<", group:" << buttonGroupId;
QMultiMap<int, QAbstractButton*> buttons = m_buttons[section];
buttons.insert(priority, button);
......
......@@ -690,7 +690,7 @@ QSize KoToolButton::minimumSize() const
void KoToolButton::colorSelected( const QColor& color )
{
kDebug(30004) << "selected::: " << color.name() << endl;
kDebug(30004) <<"selected:::" << color.name();
}
void KoToolButton::drawButton(QPainter *_painter)
......@@ -820,7 +820,7 @@ bool KoToolButton::eventFilter( QObject* o, QEvent* e )
if ( o == m_popup ) {
if ( e->type() == QEvent::MouseButtonPress )
if ( hitArrow( mapFromGlobal( static_cast<QMouseEvent*>( e )->globalPos() ) ) ) {
kDebug() << "KoToolButton::eventFilter-------------->" << endl;
kDebug() <<"KoToolButton::eventFilter-------------->";
m_popup->close();
m_arrowPressed = false;
return true;
......@@ -847,7 +847,7 @@ void KoToolButton::init()
m_popup->installEventFilter( this );
ARROW_WIDTH = style().pixelMetric(QStyle::PM_MenuButtonIndicator) + 4;
kDebug() << "##################### Arrow: " << ARROW_WIDTH << endl;
kDebug() <<"##################### Arrow:" << ARROW_WIDTH;
}
void KoToolButton::buttonShift( int& dx, int& dy )
......
......@@ -653,7 +653,7 @@ void KoUniColorChooser::slotBSelected(bool s)
void KoUniColorChooser::updateSelectorsR()
{
//kDebug() << "R selected" << endl;
//kDebug() <<"R selected";
quint8 data[4];
data[2] = m_RIn->value();
......@@ -692,7 +692,7 @@ void KoUniColorChooser::updateSelectorsR()
void KoUniColorChooser::updateSelectorsG()
{
//kDebug() << "G selected" << endl;
//kDebug() <<"G selected";
quint8 data[4];
data[2] = 255;
......@@ -731,7 +731,7 @@ void KoUniColorChooser::updateSelectorsG()
void KoUniColorChooser::updateSelectorsB()
{
//kDebug() << "B selected" << endl;
//kDebug() <<"B selected";
quint8 data[4];
data[2] = 0;
......
......@@ -80,7 +80,7 @@ KoUnitDoubleSpinBox::KoUnitDoubleSpinBox( QWidget *parent,
QValidator::State KoUnitDoubleSpinBox::validate(QString &input, int &pos) const
{
kDebug(30004) << "KoUnitDoubleSpinBox::validate : " << input << " at " << pos << endl;
kDebug(30004) <<"KoUnitDoubleSpinBox::validate :" << input <<" at" << pos;
QRegExp regexp ("([ a-zA-Z]+)$"); // Letters or spaces at end
const int res = input.indexOf( regexp );
......@@ -88,7 +88,7 @@ QValidator::State KoUnitDoubleSpinBox::validate(QString &input, int &pos) const
if ( res == -1 )
{
// Nothing like an unit? The user is probably editing the unit
kDebug(30004) << "Intermediate (no unit)" << endl;
kDebug(30004) <<"Intermediate (no unit)";
return QValidator::Intermediate;
}
......@@ -96,7 +96,7 @@ QValidator::State KoUnitDoubleSpinBox::validate(QString &input, int &pos) const
const QString number ( input.left( res ).trimmed() );
const QString unitName ( regexp.cap( 1 ).trimmed().toLower() );
kDebug(30004) << "Split:" << number << ":" << unitName << ":" << endl;
kDebug(30004) <<"Split:" << number <<":" << unitName <<":";
const double value = valueFromText( number );
double newVal = 0.0;
......@@ -109,7 +109,7 @@ QValidator::State KoUnitDoubleSpinBox::validate(QString &input, int &pos) const
else
{
// Probably the user is trying to edit the unit
kDebug(30004) << "Intermediate (unknown unit)" << endl;
kDebug(30004) <<"Intermediate (unknown unit)";
return QValidator::Intermediate;
}
}
......@@ -185,7 +185,7 @@ void KoUnitDoubleSpinBox::setMinMaxStep( double min, double max, double step )
QString KoUnitDoubleSpinBox::textFromValue( double value ) const
{
//kDebug(30004) << "textFromValue: " << QString::number( value, 'f', 12 ) << " => " << num << endl;
//kDebug(30004) <<"textFromValue:" << QString::number( value, 'f', 12 ) <<" =>" << num;
//const QString num ( QString( "%1%2").arg( KGlobal::locale()->formatNumber( value, d->precision ), KoUnit::unitName( m_unit ) ) );
//const QString num ( QString( "%1").arg( KGlobal::locale()->formatNumber( value, d->precision )) );
return KGlobal::locale()->formatNumber( value, d->precision );
......@@ -203,7 +203,7 @@ double KoUnitDoubleSpinBox::valueFromText( const QString& str ) const
bool ok;
const double dbl = KGlobal::locale()->readNumber( str2, &ok );
if ( ok )
kDebug(30004) << "valueFromText:" << str << ": => :" << str2 << ": => " << QString::number( dbl, 'f', 12 ) << endl;
kDebug(30004) <<"valueFromText:" << str <<": => :" << str2 <<": =>" << QString::number( dbl, 'f', 12 );
else
kWarning(30004) << "valueFromText error:" << str << ": => :" << str2 << ":" << endl;
return dbl;
......
......@@ -176,7 +176,7 @@ void KoZoomAction::sliderValueChanged(int value)
void KoZoomAction::numberValueChanged()
{
kDebug(30004) << "number widget has changed to " << d->number->text() << endl;
kDebug(30004) <<"number widget has changed to" << d->number->text();
double zoom = d->number->text().toDouble()/100.0;
setZoom(zoom);
......
......@@ -42,7 +42,7 @@ void KoZoomHandler::setZoomAndResolution( int zoom, int dpiX, int dpiY )
m_resolutionX = POINT_TO_INCH( static_cast<double>(dpiX) );
m_resolutionY = POINT_TO_INCH( static_cast<double>(dpiY) );
setZoom( zoom / 100.0 );
/*kDebug(32500) << "KoZoomHandler::setZoomAndResolution " << zoom << " " << dpiX << "," << dpiY
/*kDebug(32500) <<"KoZoomHandler::setZoomAndResolution" << zoom <<"" << dpiX <<"," << dpiY
<< " m_resolutionX=" << m_resolutionX
<< " m_zoomedResolutionX=" << m_zoomedResolutionX
<< " m_resolutionY=" << m_resolutionY
......
......@@ -302,7 +302,7 @@ void KoScriptManagerDialog::slotAccepted()
QFile f(file);
if( f.open(QIODevice::WriteOnly) )
if( Kross::Manager::self().actionCollection()->writeXml(&f) )
kDebug()<<"KoScriptManagerDialog: Successfully saved file: "<<file<<endl;
kDebug()<<"KoScriptManagerDialog: Successfully saved file:"<<file;
f.close();
}
}
......
......@@ -204,7 +204,7 @@ void KoScriptManagerAddScriptWidget::showEvent(QShowEvent* event)
bool KoScriptManagerAddScriptWidget::accept()
{
kDebug()<<"ScriptManagerAddScriptWidget::accept()"<<endl;
kDebug()<<"ScriptManagerAddScriptWidget::accept()";
Q_ASSERT( d->editor );
Q_ASSERT( d->editor->action() );
Q_ASSERT( d->wizard );
......@@ -289,7 +289,7 @@ bool KoScriptManagerAddWizard::invokeWidgetMethod(const char* member)
Q_ASSERT( item );
bool ok = true;
QMetaObject::invokeMethod(item->widget(), member, Q_RETURN_ARG(bool,ok));
kDebug()<<"ScriptManagerAddWizard::invokeWidgetMethod object="<<item->widget()->objectName()<<" member="<<member<<" ok="<<ok<<endl;
kDebug()<<"ScriptManagerAddWizard::invokeWidgetMethod object="<<item->widget()->objectName()<<" member="<<member<<" ok="<<ok;
return ok;
}
......
......@@ -168,7 +168,7 @@ void KoScriptingDocker::slotEnabledChanged(const QString& actionname)
void KoScriptingDocker::slotDoubleClicked()
{
//kDebug()<<"KoScriptingDocker::slotDoubleClicked()"<<endl;
//kDebug()<<"KoScriptingDocker::slotDoubleClicked()";
d->view->slotRun();
}
......
......@@ -177,7 +177,7 @@ void KoScriptingPart::slotShowScriptManager()
void KoScriptingPart::slotStarted(Kross::Action* action)
{
kDebug(32010) << "KoScriptingPart::slotStarted action=" << action->objectName() << endl;
kDebug(32010) <<"KoScriptingPart::slotStarted action=" << action->objectName();
KoMainWindow* mainwin = dynamic_cast< KoMainWindow* >( qApp->activeWindow() );
KoView* view = d->module ? d->module->view() : 0;
if( view && mainwin && view->shell() == mainwin && view == mainwin->rootView() ) {
......@@ -191,7 +191,7 @@ void KoScriptingPart::slotStarted(Kross::Action* action)
void KoScriptingPart::slotFinished(Kross::Action* action)
{
kDebug(32010) << "KoScriptingPart::slotFinished action=" << action->objectName() << endl;
kDebug(32010) <<"KoScriptingPart::slotFinished action=" << action->objectName();
disconnect(action, SIGNAL(finished(Kross::Action*)), this, SLOT(slotFinished(Kross::Action*)));
if( d->module && d->module == action->object( d->module->objectName() ) ) {
//d->view->document()->setModified(true);
......@@ -202,7 +202,7 @@ void KoScriptingPart::slotFinished(Kross::Action* action)
void KoScriptingPart::slotFinalized(Kross::Action* action)
{
kDebug(32010) << "KoScriptingPart::slotFinalized action=" << action->objectName() << endl;
kDebug(32010) <<"KoScriptingPart::slotFinalized action=" << action->objectName();
disconnect(action, SIGNAL(finalized(Kross::Action*)), this, SLOT(slotFinalized(Kross::Action*)));
d->actions.removeAll(action);
if( d->module && d->module == action->object( d->module->objectName() ) ) {
......
......@@ -146,7 +146,7 @@ bool KoPAPageBase::loadOdf( const KoXmlElement &element, KoShapeLoadingContext &
KoXmlElement child;
forEachElement( child, element )
{
kDebug() << "loading shape " << child.localName() << endl;
kDebug() <<"loading shape" << child.localName();
KoShape * shape = KoShapeRegistry::instance()->createShapeFromOdf( child, loadingContext );
if ( shape ) {
......
......@@ -313,7 +313,7 @@ Editor::changeSetInternal(Set *set, bool preservePrevSelection, const QByteArray
//store prev. selection for this prop set
if (d->currentItem)
d->set->setPrevSelection( d->currentItem->property()->name() );
kDebug() << d->set->prevSelection() << endl;
kDebug() << d->set->prevSelection();
}
if (!d->setListLater_set) {
d->setListLater_set = true;
......
......@@ -279,11 +279,11 @@ EditorItem::EditorItem(Editor *editor, EditorItem *parent, Property *property, Q
int oldHeight = it.current()->height();
int textHeight = srt.height()+KPROPEDITOR_ITEM_MARGIN;
int textLines = textHeight / d->baseRowHeight + (((textHeight % d->baseRowHeight) > 0) ? 1 : 0);
kDebug() << " textLines: " << textLines << endl;
kDebug() <<" textLines:" << textLines;
if (textLines != newNumLines) {
dynamic_cast<EditorItem*>(it.current())->setHeight(newNumLines * d->baseRowHeight);
}
kDebug() << it.current()->text(0) << ": " << oldHeight << " -> " << newHeight << endl;
kDebug() << it.current()->text(0) <<":" << oldHeight <<" ->" << newHeight;
}
*/
}
......
......@@ -89,7 +89,7 @@ ComboBox::setValue(const QVariant &value, bool emitChange)
if (!m_setValueEnabled)
return;
int idx = property()->listData()->keys.indexOf( value.toString() );
kDebug() << "********** " <<idx << " " <<value.toString()<<endl;
kDebug() <<"**********" <<idx <<"" <<value.toString();
if (idx>=0 && idx<m_edit->count()) {
m_edit->setCurrentIndex(idx);
}
......
......@@ -112,7 +112,7 @@ Test::Test()
m_set->addProperty(new Property("LineStyle", 3, "Line Style", "", LineStyle), group);
m_set->addProperty(new Property("SizePolicy", sizePolicy(), "Size Policy"), group);
// kDebug() << m_set->groupNames() << endl;
// kDebug() << m_set->groupNames();
Editor *edit = new Editor(this,true/*autosync*/);
setCentralWidget(edit);
......
......@@ -175,7 +175,7 @@ QRectF KoTextDocumentLayout::frameBoundingRect(QTextFrame *frame) const {
}
int KoTextDocumentLayout::hitTest(const QPointF &point, Qt::HitTestAccuracy accuracy) const {
// kDebug() << "hitTest[" << point.x() << "," << point.y() << "]" << endl;
// kDebug() <<"hitTest[" << point.x() <<"," << point.y() <<"]";
QTextBlock block = document()->begin();
int position = -1;
while(block.isValid()) {
......@@ -188,7 +188,7 @@ int KoTextDocumentLayout::hitTest(const QPointF &point, Qt::HitTestAccuracy accu
for(int i=0; i < layout->lineCount(); i++) {
QTextLine line = layout->lineAt(i);
updateTabsForLine(block, i);
// kDebug() << " + line[" << line.textStart() << "]: " << line.y() << "-" << line.height() << endl;
// kDebug() <<" + line[" << line.textStart() <<"]:" << line.y() <<"-" << line.height();
if(point.y() > line.y() + line.height()) {
position = line.textStart() + line.textLength();
continue;
......@@ -291,7 +291,7 @@ void KoTextDocumentLayout::interruptLayout() {
void KoTextDocumentLayout::layout() {
d->scheduled = false;
//kDebug() << "KoTextDocumentLayout::layout" << endl;
//kDebug() <<"KoTextDocumentLayout::layout";
class End {
public:
End(LayoutState *state) { m_state = state; }
......
......@@ -99,7 +99,7 @@ void KoTextLocator::updatePosition(const QTextDocument *document, QTextInlineObj
d->dirty = true;
d->document = document;
d->cursorPosition = posInDocument;
//kDebug() << "KoTextLocator page: " << pageNumber() << ", chapter: " << chapter() << ", '" << word() << "'" << endl;
//kDebug() <<"KoTextLocator page:" << pageNumber() <<", chapter:" << chapter() <<", '" << word() <<"'";
}
}
......
......@@ -82,7 +82,7 @@ QList<KoShape*> KoTextShapeContainerModel::iterator() const {
}