From: Laurent Montel Date: Mon, 6 Feb 2006 14:09:11 +0000 (+0000) Subject: deprecated-- X-Git-Tag: v3.80.2~184 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=592d941378a49c2b77fdc53f9cf38944621fd2c2;p=libqmvoc.git deprecated-- svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=506311 --- diff --git a/extdate/extdatepicker.cpp b/extdate/extdatepicker.cpp index 7987187..43e80c0 100644 --- a/extdate/extdatepicker.cpp +++ b/extdate/extdatepicker.cpp @@ -236,7 +236,7 @@ ExtDatePicker::resizeEvent(QResizeEvent* e) void ExtDatePicker::dateChangedSlot(const ExtDate &date) { - kdDebug(298) << "ExtDatePicker::dateChangedSlot: date changed (" << date.year() << "/" << date.month() << "/" << date.day() << ")." << endl; + kDebug(298) << "ExtDatePicker::dateChangedSlot: date changed (" << date.year() << "/" << date.month() << "/" << date.day() << ")." << endl; //must remain commented unless ExtDate gets added to kdelibs @@ -259,7 +259,7 @@ ExtDatePicker::dateChangedSlot(const ExtDate &date) void ExtDatePicker::tableClickedSlot() { - kdDebug(298) << "ExtDatePicker::tableClickedSlot: table clicked." << endl; + kDebug(298) << "ExtDatePicker::tableClickedSlot: table clicked." << endl; emit(dateSelected(table->getDate())); emit(tableClicked()); } @@ -286,7 +286,7 @@ ExtDatePicker::setDate(const ExtDate& date) } else { - kdDebug(298) << "ExtDatePicker::setDate: refusing to set invalid date." << endl; + kDebug(298) << "ExtDatePicker::setDate: refusing to set invalid date." << endl; return false; } } @@ -437,12 +437,12 @@ ExtDatePicker::lineEnterPressed() // ----- if(val->date(line->text(), temp)==QValidator::Acceptable) { - kdDebug(298) << "ExtDatePicker::lineEnterPressed: valid date entered." << endl; + kDebug(298) << "ExtDatePicker::lineEnterPressed: valid date entered." << endl; emit(dateEntered(temp)); setDate(temp); } else { KNotifyClient::beep(); - kdDebug(298) << "ExtDatePicker::lineEnterPressed: invalid date entered." << endl; + kDebug(298) << "ExtDatePicker::lineEnterPressed: invalid date entered." << endl; } } diff --git a/extdate/extdatetbl.cpp b/extdate/extdatetbl.cpp index 94b2921..391f0fa 100644 --- a/extdate/extdatetbl.cpp +++ b/extdate/extdatetbl.cpp @@ -131,7 +131,7 @@ ExtDateTable::ExtDateTable(QWidget *parent, ExtDate date_, const char* name, Qt: setFontSize(10); if(!date_.isValid()) { - kdDebug() << "ExtDateTable ctor: WARNING: Given date is invalid, using current date." << endl; + kDebug() << "ExtDateTable ctor: WARNING: Given date is invalid, using current date." << endl; date_=ExtDate::currentDate(); } setFocusPolicy( Qt::StrongFocus ); @@ -479,7 +479,7 @@ ExtDateTable::setDate(const ExtDate& date_) // ----- if(!date_.isValid()) { - kdDebug() << "ExtDateTable::setDate: refusing to set invalid date." << endl; + kDebug() << "ExtDateTable::setDate: refusing to set invalid date." << endl; return false; } if(date!=date_) @@ -495,7 +495,7 @@ ExtDateTable::setDate(const ExtDate& date_) d->calendar->setYMD(temp, d->calendar->year(date), d->calendar->month(date), 1); //temp.setYMD(date.year(), date.month(), 1); - //kdDebug() << "firstDayInWeek: " << temp.toString() << endl; + //kDebug() << "firstDayInWeek: " << temp.toString() << endl; firstday=temp.dayOfWeek(); numdays=d->calendar->daysInMonth(date); @@ -535,7 +535,7 @@ ExtDateTable::sizeHint() const return QSize(maxCell.width()*numCols()+2*frameWidth(), (maxCell.height()+2)*numRows()+2*frameWidth()); } else { - kdDebug() << "ExtDateTable::sizeHint: obscure failure - " << endl; + kDebug() << "ExtDateTable::sizeHint: obscure failure - " << endl; return QSize(-1, -1); } } diff --git a/extdate/extdatetime.cpp b/extdate/extdatetime.cpp index 3871048..f7c6d2f 100644 --- a/extdate/extdatetime.cpp +++ b/extdate/extdatetime.cpp @@ -963,7 +963,7 @@ int ExtDateTime::daysTo( const ExtDateTime &dt ) const \code ExtDateTime dt = ExtDateTime::currentDateTime(); ExtDateTime xmas( ExtDate(dt.date().year(),12,24), QTime(17,00) ); - kdDebug( ) << "There are " << dt.secsTo(xmas) << " seconds to Christmas" << endl; + kDebug( ) << "There are " << dt.secsTo(xmas) << " seconds to Christmas" << endl; \endcode \sa addSecs(), daysTo(), QTime::secsTo() diff --git a/extdate/extdatetimeedit.cpp b/extdate/extdatetimeedit.cpp index 1f322ad..47d0e10 100644 --- a/extdate/extdatetimeedit.cpp +++ b/extdate/extdatetimeedit.cpp @@ -105,7 +105,7 @@ void ExtDateEdit::highlightActiveField() { lineEdit()->setSelection( iStart, iLength ); // //DEBUG -// kdDebug() << "selected text: " << lineEdit()->selectedText() << endl; +// kDebug() << "selected text: " << lineEdit()->selectedText() << endl; } @@ -178,7 +178,7 @@ bool ExtDateEdit::focusNextPrevChild( bool next ) { if ( c == 'Y' ) NewField = 2; // //DEBUG -// kdDebug() << pos << " " << c << " " << NewField << endl; +// kDebug() << pos << " " << c << " " << NewField << endl; } @@ -195,7 +195,7 @@ void ExtDateEdit::invokeKey( Qt::Key k ) { void ExtDateEdit::focusInEvent( QFocusEvent *e ) { // //DEBUG -// kdDebug() << "focusInEvent()" << endl; +// kDebug() << "focusInEvent()" << endl; QSpinBox::focusInEvent(e); highlightActiveField(); @@ -230,7 +230,7 @@ edLineEdit::edLineEdit( QWidget *parent ) : QLineEdit( parent ) { void edLineEdit::mouseReleaseEvent( QMouseEvent * ) { // //DEBUG -// kdDebug() << "mousePressEvent()" << endl; +// kDebug() << "mousePressEvent()" << endl; //assumes no prefix/suffix! QString sdf = edParent->simpleDateFormat(); @@ -245,14 +245,14 @@ void edLineEdit::mouseReleaseEvent( QMouseEvent * ) { else if ( c == 'Y' ) edParent->setActiveField( 2 ); // //DEBUG -// kdDebug() << "ActiveField = " << edParent->activeField() << endl; +// kDebug() << "ActiveField = " << edParent->activeField() << endl; edParent->highlightActiveField(); } void edLineEdit::keyPressEvent( QKeyEvent *e ) { // //DEBUG -// kdDebug() << "keyPressEvent()" << endl; +// kDebug() << "keyPressEvent()" << endl; switch ( e->key() ) { case Qt::Key_Up: diff --git a/extdate/tests/edtedit_widget.cpp b/extdate/tests/edtedit_widget.cpp index d6bba18..e54eafd 100644 --- a/extdate/tests/edtedit_widget.cpp +++ b/extdate/tests/edtedit_widget.cpp @@ -40,8 +40,8 @@ EDTEdit::EDTEdit( QWidget *p=0, const char *name=0 ) : KMainWindow( p, name ) { EDTEdit::~EDTEdit() { //Output current date setting on exit - kdDebug() << "ExDateEdit: " << ed->date().toString() << endl; - kdDebug() << "ExDateTimeEdit: " << edt->date().toString() << endl; + kDebug() << "ExDateEdit: " << ed->date().toString() << endl; + kDebug() << "ExDateTimeEdit: " << edt->date().toString() << endl; } #include "edtedit_widget.moc" diff --git a/kdeeducore/keduvocdocument.cpp b/kdeeducore/keduvocdocument.cpp index f0243f1..71426b1 100644 --- a/kdeeducore/keduvocdocument.cpp +++ b/kdeeducore/keduvocdocument.cpp @@ -255,7 +255,7 @@ bool KEduVocDocument::saveAs(QObject *parent, const KUrl & url, FileType ft, con break; default: { - kdError() << "kvcotrainDoc::saveAs(): unknown filetype" << endl; + kError() << "kvcotrainDoc::saveAs(): unknown filetype" << endl; } break; } diff --git a/kdeeducore/keduvockvtmlwriter.cpp b/kdeeducore/keduvockvtmlwriter.cpp index b99e292..7f324f1 100644 --- a/kdeeducore/keduvockvtmlwriter.cpp +++ b/kdeeducore/keduvockvtmlwriter.cpp @@ -709,7 +709,7 @@ bool KEduVocKvtmlWriter::writeDoc(KEduVocDocument *doc, const QString &generator if (lm > (int) m_doc->m_lessonDescriptions.size() ) { // should not be - kdError() << "index of lesson member too high: " << lm << endl; + kError() << "index of lesson member too high: " << lm << endl; lm = 0; } ls.setNum (lm); diff --git a/kdeeducore/leitnersystemview.cpp b/kdeeducore/leitnersystemview.cpp index a2865bc..f940965 100644 --- a/kdeeducore/leitnersystemview.cpp +++ b/kdeeducore/leitnersystemview.cpp @@ -184,7 +184,7 @@ void LeitnerSystemView::calculateSize() void LeitnerSystemView::mousePressEvent(QMouseEvent* e) { - kdDebug() << "mouseClick" << endl; + kDebug() << "mouseClick" << endl; //if the user has clicked into a box if( e->y() > m_imageY && e->y() < m_imageY + 64 && e->x() < width() ) { diff --git a/kdeeduplot/kplotobject.cpp b/kdeeduplot/kplotobject.cpp index e197103..7de6323 100644 --- a/kdeeduplot/kplotobject.cpp +++ b/kdeeduplot/kplotobject.cpp @@ -42,7 +42,7 @@ KPlotObject::~KPlotObject() QPointF* KPlotObject::point( int index ) { if ( index < 0 || index >= pList.count() ) { - kdWarning() << "KPlotObject::object(): index " << index << " out of range!" << endl; + kWarning() << "KPlotObject::object(): index " << index << " out of range!" << endl; return 0; } return pList.at(index); @@ -56,7 +56,7 @@ void KPlotObject::addPoint( QPointF *p ) { void KPlotObject::removePoint( int index ) { if ( ( index < 0 ) || ( index >= pList.count() ) ) { - kdWarning() << "KPlotObject::removePoint(): index " << index << " out of range!" << endl; + kWarning() << "KPlotObject::removePoint(): index " << index << " out of range!" << endl; return; } diff --git a/kdeeduplot/kplotwidget.cpp b/kdeeduplot/kplotwidget.cpp index 70027ef..126429b 100644 --- a/kdeeduplot/kplotwidget.cpp +++ b/kdeeduplot/kplotwidget.cpp @@ -94,12 +94,12 @@ void KPlotWidget::setLimits( double x1, double x2, double y1, double y2 ) { void KPlotWidget::updateTickmarks() { // Determine the number and spacing of tickmarks for the current plot limits. if ( dataWidth() == 0.0 ) { - kdWarning() << "KPlotWidget::updateTickmarks(): X range [" << x() << ", " << x2() << "] invalid!" << endl; + kWarning() << "KPlotWidget::updateTickmarks(): X range [" << x() << ", " << x2() << "] invalid!" << endl; DataRect.setWidth( 1.0 ); return; } if ( dataHeight() == 0.0 ) { - kdWarning() << "KPlotWidget::updateTickmarks(): Y range [" << y() << ", " << y2() << "] invalid!" << endl; + kWarning() << "KPlotWidget::updateTickmarks(): Y range [" << y() << ", " << y2() << "] invalid!" << endl; DataRect.setHeight( 1.0 ); return; } @@ -171,7 +171,7 @@ void KPlotWidget::replaceObject( int i, KPlotObject *o ) { KPlotObject *KPlotWidget::object( int i ) { if ( i < 0 || i >= ObjectList.count() ) { - kdWarning() << "KPlotWidget::object(): index " << i << " out of range!" << endl; + kWarning() << "KPlotWidget::object(): index " << i << " out of range!" << endl; return 0; } return ObjectList.at(i); @@ -350,7 +350,7 @@ void KPlotWidget::drawObjects( QPainter *p ) { case KPlotObject::UNKNOWN_TYPE : default: - kdDebug() << "KPlotWidget::drawObjects(): Unknown object type: " << po->type() << endl; + kDebug() << "KPlotWidget::drawObjects(): Unknown object type: " << po->type() << endl; } } } diff --git a/kdeeduui/kdeeduglossary.cpp b/kdeeduui/kdeeduglossary.cpp index 300893c..af4f8db 100644 --- a/kdeeduui/kdeeduglossary.cpp +++ b/kdeeduui/kdeeduglossary.cpp @@ -73,7 +73,7 @@ bool Glossary::loadLayout( QDomDocument &Document, const KUrl& url ) if ( !layoutFile.exists() ) { - kdDebug() << "no such file: " << layoutFile.name() << endl; + kDebug() << "no such file: " << layoutFile.name() << endl; return false; } @@ -83,7 +83,7 @@ bool Glossary::loadLayout( QDomDocument &Document, const KUrl& url ) // check if document is well-formed if ( !Document.setContent( &layoutFile ) ) { - kdDebug() << "wrong xml of " << layoutFile.name() << endl; + kDebug() << "wrong xml of " << layoutFile.name() << endl; layoutFile.close(); return false; } @@ -120,7 +120,7 @@ void Glossary::setBackgroundPicture( const QString& filename ) void Glossary::fixImagePath() { - kdDebug() << "Glossary::fixImagePath()" << endl; + kDebug() << "Glossary::fixImagePath()" << endl; QList::iterator it = m_itemlist.begin(); const QList::iterator itEnd = m_itemlist.end(); QString imgtag = ""; @@ -322,8 +322,8 @@ void GlossaryDialog::addGlossary( Glossary* newgloss ) if ( newgloss->isEmpty() ) return; m_glossaries.append( newgloss ); - kdDebug() << "Count of the new glossary: " << newgloss->itemlist().count() << endl; - kdDebug() << "Number of glossaries: " << m_glossaries.count() << endl; + kDebug() << "Count of the new glossary: " << newgloss->itemlist().count() << endl; + kDebug() << "Number of glossaries: " << m_glossaries.count() << endl; updateTree(); } diff --git a/libscience/chemicaldataobject.cpp b/libscience/chemicaldataobject.cpp index ce02caf..1a79d65 100644 --- a/libscience/chemicaldataobject.cpp +++ b/libscience/chemicaldataobject.cpp @@ -47,7 +47,7 @@ ChemicalDataObject::ChemicalDataObject() : d(new ChemicalDataObjectPrivate()) bool ChemicalDataObject::operator==( const int v ) const { - kdDebug() << "ChemicalDataObject::operator==() with int" << endl; + kDebug() << "ChemicalDataObject::operator==() with int" << endl; if ( d->m_value.type() != QVariant::Int ) return false; @@ -56,7 +56,7 @@ bool ChemicalDataObject::operator==( const int v ) const bool ChemicalDataObject::operator==( const bool v ) const { - kdDebug() << "ChemicalDataObject::operator==() with bool" << endl; + kDebug() << "ChemicalDataObject::operator==() with bool" << endl; if ( d->m_value.type() != QVariant::Bool ) return false; @@ -65,7 +65,7 @@ bool ChemicalDataObject::operator==( const bool v ) const bool ChemicalDataObject::operator==( const double v ) const { - kdDebug() << "ChemicalDataObject::operator==() with double" << endl; + kDebug() << "ChemicalDataObject::operator==() with double" << endl; if ( d->m_value.type() != QVariant::Double ) return false; @@ -74,7 +74,7 @@ bool ChemicalDataObject::operator==( const double v ) const bool ChemicalDataObject::operator==( const QString& v ) const { - kdDebug() << "ChemicalDataObject::operator==() with QString" << endl; + kDebug() << "ChemicalDataObject::operator==() with QString" << endl; if ( d->m_value.type() != QVariant::String ) return false; diff --git a/libscience/isotopeparser.cpp b/libscience/isotopeparser.cpp index f76da7a..cff2582 100644 --- a/libscience/isotopeparser.cpp +++ b/libscience/isotopeparser.cpp @@ -118,7 +118,7 @@ bool IsotopeParser::startElement(const QString&, const QString &localName, const d->inExactMass = true; } } else if (d->inIsotope && localName == "bo:relativeAbundance") { - kdDebug() << "bo:relativeAbundance" << endl; + kDebug() << "bo:relativeAbundance" << endl; d->inAbundance = true; } return true; diff --git a/libscience/moleculeparser.cpp b/libscience/moleculeparser.cpp index 8a013a8..4c9a634 100644 --- a/libscience/moleculeparser.cpp +++ b/libscience/moleculeparser.cpp @@ -170,7 +170,7 @@ MoleculeParser::parseSubmolecule(double *_resultMass, *_resultMass = 0.0; _resultMap->clear(); while (parseTerm(&subMass, &subMap)) { - //kdDebug() << "Parsed a term, weight = " << subresult << endl; + //kDebug() << "Parsed a term, weight = " << subresult << endl; // Add the mass and composition of the submolecule to the total. *_resultMass += subMass; @@ -199,7 +199,7 @@ MoleculeParser::parseTerm(double *_resultMass, _resultMap->clear(); if (nextToken() == ELEMENT_TOKEN) { - //kdDebug() << "Parsed an element: " << m_elementVal->symbol() << endl; + //kDebug() << "Parsed an element: " << m_elementVal->symbol() << endl; *_resultMass = m_elementVal->dataAsVariant( ChemicalDataObject::mass ).toDouble(); _resultMap->add(m_elementVal, 1); @@ -214,7 +214,7 @@ MoleculeParser::parseTerm(double *_resultMass, // Must end in a ")". if (nextToken() == ')') { - //kdDebug() << "Parsed a submolecule. weight = " << *_result << endl; + //kDebug() << "Parsed a submolecule. weight = " << *_result << endl; getNextToken(); } else @@ -226,7 +226,7 @@ MoleculeParser::parseTerm(double *_resultMass, // Optional number. if (nextToken() == INT_TOKEN) { - //kdDebug() << "Parsed a number: " << intVal() << endl; + //kDebug() << "Parsed a number: " << intVal() << endl; *_resultMass *= intVal(); _resultMap->multiply(intVal()); @@ -234,7 +234,7 @@ MoleculeParser::parseTerm(double *_resultMass, getNextToken(); } - kdDebug() << "Weight of term = " << *_resultMass << endl; + kDebug() << "Weight of term = " << *_resultMass << endl; return true; } @@ -251,7 +251,7 @@ MoleculeParser::getNextToken() QString elementName; #if 0 - kdDebug() << "getNextToken(): Next character = " + kDebug() << "getNextToken(): Next character = " << nextChar() << endl; #endif @@ -288,11 +288,11 @@ MoleculeParser::getNextToken() Element * MoleculeParser::lookupElement( const QString& _name ) { - kdDebug() << "looking up " << _name << endl; + kDebug() << "looking up " << _name << endl; foreach( Element* e, m_elementList ){ if ( e->dataAsVariant(ChemicalDataObject::symbol) == _name ) { - kdDebug() << "Found element " << _name << endl; + kDebug() << "Found element " << _name << endl; return e; } } @@ -300,7 +300,7 @@ MoleculeParser::lookupElement( const QString& _name ) //if there is an error make m_error true. m_error = true; - kdDebug() << k_funcinfo << "no such element, parsing error!: " << _name << endl; + kDebug() << k_funcinfo << "no such element, parsing error!: " << _name << endl; return NULL; } diff --git a/libscience/parser.cpp b/libscience/parser.cpp index 42eb288..7a2d82d 100644 --- a/libscience/parser.cpp +++ b/libscience/parser.cpp @@ -139,8 +139,8 @@ Parser::parseSimpleFloat(double *_result) int Parser::getNextChar() { -// kdDebug() << "Parser::getNextChar(): char = " << m_nextChar << endl; -// kdDebug() << "m_str.size() " << m_str.size() << " with m_str: " << m_str << " and m_index: " << m_index << endl; +// kDebug() << "Parser::getNextChar(): char = " << m_nextChar << endl; +// kDebug() << "m_str.size() " << m_str.size() << " with m_str: " << m_str << " and m_index: " << m_index << endl; m_index++; diff --git a/libscience/tests/cmlspectest.cpp b/libscience/tests/cmlspectest.cpp index 9374002..0974c57 100644 --- a/libscience/tests/cmlspectest.cpp +++ b/libscience/tests/cmlspectest.cpp @@ -19,7 +19,7 @@ int main(int argc, char *argv[]) //X if ( e ) //X { //X ChemicalDataObject* o = e->data(); -//X kdDebug() << "Name: " << o->dictRef() << " " << o->valueAsString() << " errorMargin: " << e->errorMargin() << " parent Element: " << e->parentElementSymbol() << endl; +//X kDebug() << "Name: " << o->dictRef() << " " << o->valueAsString() << " errorMargin: " << e->errorMargin() << " parent Element: " << e->parentElementSymbol() << endl; //X } //X //X } diff --git a/libscience/tests/isotopereadingtest.cpp b/libscience/tests/isotopereadingtest.cpp index 92bc7d5..6cf5187 100644 --- a/libscience/tests/isotopereadingtest.cpp +++ b/libscience/tests/isotopereadingtest.cpp @@ -26,7 +26,7 @@ int main(int argc, char *argv[]) if ( e ) { ChemicalDataObject* o = e->data(); - kdDebug() << "Name: " << o->dictRef() << " " << o->valueAsString() << " errorMargin: " << e->errorMargin() << " parent Element: " << e->parentElementSymbol() << endl; + kDebug() << "Name: " << o->dictRef() << " " << o->valueAsString() << " errorMargin: " << e->errorMargin() << " parent Element: " << e->parentElementSymbol() << endl; } } diff --git a/libscience/tests/xmlreadingtest.cpp b/libscience/tests/xmlreadingtest.cpp index a0e77df..b9a89f8 100644 --- a/libscience/tests/xmlreadingtest.cpp +++ b/libscience/tests/xmlreadingtest.cpp @@ -29,14 +29,14 @@ int main(int argc, char *argv[]) //Test: Check if the string-comparison works //X if ( e->data( ChemicalDataObject::name ) == "Helium" ) -//X kdDebug() << "Mass: " << e->dataAsString( ChemicalDataObject::mass ) << endl; +//X kDebug() << "Mass: " << e->dataAsString( ChemicalDataObject::mass ) << endl; //Test: Check if the double-comparison works //X if ( e->data( ChemicalDataObject::mass ) == 4.002602 ) -//X kdDebug() << "Correct mass found" << endl; +//X kDebug() << "Correct mass found" << endl; //Test: Give me the name of the element -//X kdDebug() << "Name: " << e->dataAsString( ChemicalDataObject::name ) << endl; +//X kDebug() << "Name: " << e->dataAsString( ChemicalDataObject::name ) << endl; //Test: give me all data available foreach( ChemicalDataObject*o, list ){ @@ -45,7 +45,7 @@ int main(int argc, char *argv[]) QString unit = o->unitAsString(); if ( unit == "bo:noUnit" ) unit = ""; - kdDebug() << "Name: " << o->dictRef() << " " << o->valueAsString() <<" " << unit << endl; + kDebug() << "Name: " << o->dictRef() << " " << o->valueAsString() <<" " << unit << endl; } } }