diff options
Diffstat (limited to 'lib/kotext')
-rw-r--r-- | lib/kotext/KoAutoFormatDia.cpp | 4 | ||||
-rw-r--r-- | lib/kotext/KoBorder.cpp | 14 | ||||
-rw-r--r-- | lib/kotext/KoChangeCaseDia.cpp | 2 | ||||
-rw-r--r-- | lib/kotext/KoFontDiaPreview.cpp | 2 | ||||
-rw-r--r-- | lib/kotext/KoHighlightingTab.cpp | 2 | ||||
-rw-r--r-- | lib/kotext/KoParagDia.cpp | 22 | ||||
-rw-r--r-- | lib/kotext/KoSearchDia.cpp | 8 | ||||
-rw-r--r-- | lib/kotext/KoTextParag.cpp | 2 | ||||
-rw-r--r-- | lib/kotext/KoTextView.cpp | 4 | ||||
-rw-r--r-- | lib/kotext/KoVariable.cpp | 36 | ||||
-rw-r--r-- | lib/kotext/tests/kobordertest.cpp | 2 |
11 files changed, 49 insertions, 49 deletions
diff --git a/lib/kotext/KoAutoFormatDia.cpp b/lib/kotext/KoAutoFormatDia.cpp index 6b48af1f..5b548756 100644 --- a/lib/kotext/KoAutoFormatDia.cpp +++ b/lib/kotext/KoAutoFormatDia.cpp @@ -44,8 +44,8 @@ KoAutoFormatLineEdit::KoAutoFormatLineEdit ( TQWidget * parent, const char * nam void KoAutoFormatLineEdit::keyPressEvent ( TQKeyEvent *ke ) { - if( ke->key() == Qt::Key_Return || - ke->key() == Qt::Key_Enter ) + if( ke->key() == TQt::Key_Return || + ke->key() == TQt::Key_Enter ) { emit keyReturnPressed(); return; diff --git a/lib/kotext/KoBorder.cpp b/lib/kotext/KoBorder.cpp index 5c7461e6..b1d04f1b 100644 --- a/lib/kotext/KoBorder.cpp +++ b/lib/kotext/KoBorder.cpp @@ -27,16 +27,16 @@ #include <float.h> static const struct BorderStyle { - Qt::PenStyle penStyle; + TQt::PenStyle penStyle; TQCString oasisName; TQCString uiStringStyle; } s_borderStyles[] = { - { Qt::SolidLine, "solid", "_________" }, // SOLID - { Qt::DashLine, "dashed", "___ ___ __" }, // DASH - { Qt::DotLine, "dotted", "_ _ _ _ _ _" }, // DOT - { Qt::DashDotLine, "dot-dash", "___ _ ___ _" }, // DASH_DOT - { Qt::DashDotDotLine, "dot-dot-dash", "___ _ _ ___" }, // DASH_DOT_DOT - { Qt::SolidLine, "double", "===========" } // DOUBLE_LINE + { TQt::SolidLine, "solid", "_________" }, // SOLID + { TQt::DashLine, "dashed", "___ ___ __" }, // DASH + { TQt::DotLine, "dotted", "_ _ _ _ _ _" }, // DOT + { TQt::DashDotLine, "dot-dash", "___ _ ___ _" }, // DASH_DOT + { TQt::DashDotDotLine, "dot-dot-dash", "___ _ _ ___" }, // DASH_DOT_DOT + { TQt::SolidLine, "double", "===========" } // DOUBLE_LINE }; KoBorder::KoBorder() diff --git a/lib/kotext/KoChangeCaseDia.cpp b/lib/kotext/KoChangeCaseDia.cpp index a7cff7c2..6bffac9b 100644 --- a/lib/kotext/KoChangeCaseDia.cpp +++ b/lib/kotext/KoChangeCaseDia.cpp @@ -34,7 +34,7 @@ KoChangeCaseDia::KoChangeCaseDia( TQWidget *parent, const char *name ) setCaption( i18n("Change Case") ); TQVBox *page = makeVBoxMainWidget(); - TQButtonGroup *grp = new TQButtonGroup( 1, Qt::Horizontal, i18n( "Case" ),page ); + TQButtonGroup *grp = new TQButtonGroup( 1, TQt::Horizontal, i18n( "Case" ),page ); grp->setRadioButtonExclusive( TRUE ); grp->layout(); m_upperCase=new TQRadioButton( i18n("&Uppercase"), grp ); diff --git a/lib/kotext/KoFontDiaPreview.cpp b/lib/kotext/KoFontDiaPreview.cpp index adf7594d..b8ae8846 100644 --- a/lib/kotext/KoFontDiaPreview.cpp +++ b/lib/kotext/KoFontDiaPreview.cpp @@ -392,7 +392,7 @@ void KoFontDiaPreview::drawUnderlineWave( int x, int y, int width, int thickness p->save(); int offset = 2 * thickness; TQPen pen(color, thickness, TQt::SolidLine); - pen.setCapStyle(Qt::RoundCap); + pen.setCapStyle(TQt::RoundCap); p->setPen(pen); double anc=acos(1.0-2*(static_cast<double>(offset-(x)%offset)/static_cast<double>(offset)))/3.1415*180; int pos=1; diff --git a/lib/kotext/KoHighlightingTab.cpp b/lib/kotext/KoHighlightingTab.cpp index ab7b0577..405887bf 100644 --- a/lib/kotext/KoHighlightingTab.cpp +++ b/lib/kotext/KoHighlightingTab.cpp @@ -39,7 +39,7 @@ KoHighlightingTab::KoHighlightingTab( TQWidget* parent, const char* name, WFlags strikethroughStyleKComboBox->insertStringList( KoTextFormat::strikeOutTypeList() ); strikethroughLineStyleKComboBox->insertStringList( KoTextFormat::strikeOutStyleList() ); - capitalisationButtonGroup->setColumnLayout( 3, Qt::Horizontal ); + capitalisationButtonGroup->setColumnLayout( 3, TQt::Horizontal ); TQStringList attributes = KoTextFormat::fontAttributeList(); for ( TQStringList::Iterator it = attributes.begin(); it != attributes.end(); ++it ) { capitalisationButtonGroup->insert( new TQRadioButton( *it, capitalisationButtonGroup ) ); diff --git a/lib/kotext/KoParagDia.cpp b/lib/kotext/KoParagDia.cpp index 5e038a98..826c44a5 100644 --- a/lib/kotext/KoParagDia.cpp +++ b/lib/kotext/KoParagDia.cpp @@ -747,22 +747,22 @@ TQPen KoBorderPreview::setBorderPen( KoBorder _brd ) switch ( _brd.getStyle() ) { case KoBorder::SOLID: - pen.setStyle( Qt::SolidLine ); + pen.setStyle( TQt::SolidLine ); break; case KoBorder::DASH: - pen.setStyle( Qt::DashLine ); + pen.setStyle( TQt::DashLine ); break; case KoBorder::DOT: - pen.setStyle( Qt::DotLine ); + pen.setStyle( TQt::DotLine ); break; case KoBorder::DASH_DOT: - pen.setStyle( Qt::DashDotLine ); + pen.setStyle( TQt::DashDotLine ); break; case KoBorder::DASH_DOT_DOT: - pen.setStyle( Qt::DashDotDotLine ); + pen.setStyle( TQt::DashDotDotLine ); break; case KoBorder::DOUBLE_LINE: - pen.setStyle( Qt::SolidLine ); + pen.setStyle( TQt::SolidLine ); break; } @@ -1600,7 +1600,7 @@ KoParagCounterWidget::KoParagCounterWidget( bool disableAll, TQWidget * parent, gNumbering = new TQButtonGroup( this, "numberingGroup" ); gNumbering->setTitle( i18n( "Numbering" ) ); - gNumbering->setColumnLayout(0, Qt::Vertical ); + gNumbering->setColumnLayout(0, TQt::Vertical ); gNumbering->layout()->setSpacing( 0 ); gNumbering->layout()->setMargin( 0 ); TQHBoxLayout *numberingGroupLayout = new TQHBoxLayout( gNumbering->layout() ); @@ -1724,8 +1724,8 @@ KoTabulatorsLineEdit::KoTabulatorsLineEdit( TQWidget *parent, double lower, doub void KoTabulatorsLineEdit::keyPressEvent ( TQKeyEvent *ke ) { - if( ke->key() == Qt::Key_Return || - ke->key() == Qt::Key_Enter ) + if( ke->key() == TQt::Key_Return || + ke->key() == TQt::Key_Enter ) { emit keyReturnPressed(); return; @@ -1765,7 +1765,7 @@ KoParagTabulatorsWidget::KoParagTabulatorsWidget( KoUnit::Unit unit, double fram gPosition = new TQGroupBox( this, "gPosition" ); gPosition->setTitle( i18n( "Po&sition" ) ); - gPosition->setColumnLayout(0, Qt::Vertical ); + gPosition->setColumnLayout(0, TQt::Vertical ); gPosition->layout()->setSpacing( 0 ); gPosition->layout()->setMargin( 0 ); TQVBoxLayout* GroupBox2Layout = new TQVBoxLayout( gPosition->layout() ); @@ -1793,7 +1793,7 @@ KoParagTabulatorsWidget::KoParagTabulatorsWidget( KoUnit::Unit unit, double fram bgAlign = new TQButtonGroup( this ); bgAlign->setTitle( i18n( "Alignment" ) ); - bgAlign->setColumnLayout(0, Qt::Vertical ); + bgAlign->setColumnLayout(0, TQt::Vertical ); bgAlign->layout()->setSpacing( 0 ); bgAlign->layout()->setMargin( 0 ); TQVBoxLayout* ButtonGroup1Layout = new TQVBoxLayout( bgAlign->layout() ); diff --git a/lib/kotext/KoSearchDia.cpp b/lib/kotext/KoSearchDia.cpp index 55a4c56b..4e81463d 100644 --- a/lib/kotext/KoSearchDia.cpp +++ b/lib/kotext/KoSearchDia.cpp @@ -603,25 +603,25 @@ KoFormatDia::KoFormatDia( TQWidget* parent, const TQString & _caption, KoSearchC - TQButtonGroup *grpBold = new TQButtonGroup( 1, Qt::Vertical, page ); + TQButtonGroup *grpBold = new TQButtonGroup( 1, TQt::Vertical, page ); grpBold->setRadioButtonExclusive( TRUE ); grpBold->layout(); m_boldYes=new TQRadioButton( i18n("Yes"), grpBold ); m_boldNo=new TQRadioButton( i18n("No"), grpBold ); - TQButtonGroup *grpItalic = new TQButtonGroup( 1, Qt::Vertical, page ); + TQButtonGroup *grpItalic = new TQButtonGroup( 1, TQt::Vertical, page ); grpItalic->setRadioButtonExclusive( TRUE ); grpItalic->layout(); m_italicYes=new TQRadioButton( i18n("Yes"), grpItalic ); m_italicNo=new TQRadioButton( i18n("No"), grpItalic ); - TQButtonGroup *grpShadow = new TQButtonGroup( 1, Qt::Vertical, page ); + TQButtonGroup *grpShadow = new TQButtonGroup( 1, TQt::Vertical, page ); grpShadow->setRadioButtonExclusive( TRUE ); grpShadow->layout(); m_shadowYes=new TQRadioButton( i18n("Yes"), grpShadow ); m_shadowNo=new TQRadioButton( i18n("No"), grpShadow ); - TQButtonGroup *grpWordByWord = new TQButtonGroup( 1, Qt::Vertical, page ); + TQButtonGroup *grpWordByWord = new TQButtonGroup( 1, TQt::Vertical, page ); grpWordByWord->setRadioButtonExclusive( TRUE ); grpWordByWord->layout(); m_wordByWordYes=new TQRadioButton( i18n("Yes"), grpWordByWord ); diff --git a/lib/kotext/KoTextParag.cpp b/lib/kotext/KoTextParag.cpp index c4042779..b3e92c9e 100644 --- a/lib/kotext/KoTextParag.cpp +++ b/lib/kotext/KoTextParag.cpp @@ -2565,7 +2565,7 @@ void KoTextParag::drawFontEffects( TQPainter * p, KoTextFormat *format, KoTextZo p->save(); int offset = 2 * dim; TQPen pen(col, dim, TQt::SolidLine); - pen.setCapStyle(Qt::RoundCap); + pen.setCapStyle(TQt::RoundCap); p->setPen(pen); Q_ASSERT(offset); double anc=acos(1.0-2*(static_cast<double>(offset-(startX)%offset)/static_cast<double>(offset)))/3.1415*180; diff --git a/lib/kotext/KoTextView.cpp b/lib/kotext/KoTextView.cpp index b7608827..d70f9f72 100644 --- a/lib/kotext/KoTextView.cpp +++ b/lib/kotext/KoTextView.cpp @@ -702,7 +702,7 @@ bool KoTextView::handleMousePressEvent( TQMouseEvent *e, const TQPoint &iPoint, addParag = placeCursor( iPoint, insertDirectCursor&& isReadWrite() ); ensureCursorVisible(); - if ( e->button() != Qt::LeftButton ) + if ( e->button() != TQt::LeftButton ) { showCursor(); return addParag; @@ -847,7 +847,7 @@ void KoTextView::tripleClickTimeout() void KoTextView::handleMouseTripleClickEvent( TQMouseEvent*ev, const TQPoint& /* Currently unused */ ) { - if ( ev->button() != Qt::LeftButton) + if ( ev->button() != TQt::LeftButton) { showCursor(); return; diff --git a/lib/kotext/KoVariable.cpp b/lib/kotext/KoVariable.cpp index fb1b6c1c..0c55f52e 100644 --- a/lib/kotext/KoVariable.cpp +++ b/lib/kotext/KoVariable.cpp @@ -125,13 +125,13 @@ void KoVariableSettings::saveOasis( KoXmlWriter &settingsWriter ) const // style:page-number in the first parag of a page (see KoTextParag), or // style:first-page-number in style:page-layout, for spreadsheets etc. if ( d->m_lastPrintingDate.isValid()) - settingsWriter.addConfigItem("lastPrintingDate", d->m_lastPrintingDate.toString(Qt::ISODate)); + settingsWriter.addConfigItem("lastPrintingDate", d->m_lastPrintingDate.toString(TQt::ISODate)); if ( d->m_creationDate.isValid()) - settingsWriter.addConfigItem("creationDate", d->m_creationDate.toString(Qt::ISODate)); + settingsWriter.addConfigItem("creationDate", d->m_creationDate.toString(TQt::ISODate)); if ( d->m_modificationDate.isValid()) - settingsWriter.addConfigItem("modificationDate", d->m_modificationDate.toString(Qt::ISODate)); + settingsWriter.addConfigItem("modificationDate", d->m_modificationDate.toString(TQt::ISODate)); settingsWriter.endElement(); // config:config-item-set } @@ -148,18 +148,18 @@ void KoVariableSettings::loadOasis(const KoOasisSettings&settingsDoc) TQString str = configurationSettings.parseConfigItemString( "lastPrintingDate" ); if ( !str.isEmpty() ) - d->m_lastPrintingDate = TQDateTime::fromString( str, Qt::ISODate ); + d->m_lastPrintingDate = TQDateTime::fromString( str, TQt::ISODate ); else d->m_lastPrintingDate.setTime_t(0); // 1970-01-01 00:00:00.000 locale time str = configurationSettings.parseConfigItemString( "creationDate" ); if ( !str.isEmpty() ) { - d->m_creationDate = TQDateTime::fromString( str, Qt::ISODate ); + d->m_creationDate = TQDateTime::fromString( str, TQt::ISODate ); } str = configurationSettings.parseConfigItemString( "modificationDate" ); if ( !str.isEmpty() ) - d->m_modificationDate = TQDateTime::fromString( str, Qt::ISODate ); + d->m_modificationDate = TQDateTime::fromString( str, TQt::ISODate ); // m_startingPageNumber isn't loaded from OASIS here. KWTextParag::loadOasis does it. } @@ -179,13 +179,13 @@ void KoVariableSettings::save( TQDomElement &parentElem ) elem.setAttribute("displayfieldcode", (int)m_displayFieldCode); if ( d->m_lastPrintingDate.isValid()) - elem.setAttribute("lastPrintingDate", d->m_lastPrintingDate.toString(Qt::ISODate)); + elem.setAttribute("lastPrintingDate", d->m_lastPrintingDate.toString(TQt::ISODate)); if ( d->m_creationDate.isValid()) - elem.setAttribute("creationDate", d->m_creationDate.toString(Qt::ISODate)); + elem.setAttribute("creationDate", d->m_creationDate.toString(TQt::ISODate)); if ( d->m_modificationDate.isValid()) - elem.setAttribute("modificationDate", d->m_modificationDate.toString(Qt::ISODate)); + elem.setAttribute("modificationDate", d->m_modificationDate.toString(TQt::ISODate)); } void KoVariableSettings::load( TQDomElement &elem ) @@ -205,16 +205,16 @@ void KoVariableSettings::load( TQDomElement &elem ) m_displayFieldCode=(bool)e.attribute("displayfieldcode").toInt(); if (e.hasAttribute("lastPrintingDate")) - d->m_lastPrintingDate = TQDateTime::fromString( e.attribute( "lastPrintingDate" ), Qt::ISODate ); + d->m_lastPrintingDate = TQDateTime::fromString( e.attribute( "lastPrintingDate" ), TQt::ISODate ); else d->m_lastPrintingDate.setTime_t(0); // 1970-01-01 00:00:00.000 locale time if (e.hasAttribute("creationDate")) { - d->m_creationDate = TQDateTime::fromString( e.attribute( "creationDate" ), Qt::ISODate ); + d->m_creationDate = TQDateTime::fromString( e.attribute( "creationDate" ), TQt::ISODate ); } if (e.hasAttribute("modificationDate")) - d->m_modificationDate = TQDateTime::fromString( e.attribute( "modificationDate" ), Qt::ISODate ); + d->m_modificationDate = TQDateTime::fromString( e.attribute( "modificationDate" ), TQt::ISODate ); } } @@ -1292,7 +1292,7 @@ void KoDateVariable::saveOasis( KoXmlWriter& writer, KoSavingContext& context ) writer.startElement( "text:date" ); if ( m_subtype == VST_DATE_FIX ) { - writer.addAttribute( "text:date-value", m_varValue.toDate().toString( Qt::ISODate) ); + writer.addAttribute( "text:date-value", m_varValue.toDate().toString( TQt::ISODate) ); writer.addAttribute( "text:fixed", "true" ); } break; @@ -1340,7 +1340,7 @@ void KoDateVariable::loadOasis( const TQDomElement &elem, KoOasisContext& /*cont const TQString dateValue = elem.attributeNS( KoXmlNS::text, "date-value", TQString()); TQDateTime dt; if ( !dateValue.isEmpty() ) // avoid TQDate warning - dt = TQDate::fromString(dateValue, Qt::ISODate); + dt = TQDate::fromString(dateValue, TQt::ISODate); bool fixed = (elem.hasAttributeNS( KoXmlNS::text, "fixed") && elem.attributeNS( KoXmlNS::text, "fixed", TQString())=="true"); if (!dt.isValid()) @@ -1540,7 +1540,7 @@ void KoTimeVariable::loadOasis( const TQDomElement &elem, KoOasisContext& /*cont if ( localName == "time" ) // current (or fixed) time { // Use TQDateTime to work around a possible problem of TQTime::fromString in TQt 3.2.2 - TQDateTime dt(TQDateTime::fromString(elem.attributeNS( KoXmlNS::text, "time-value", TQString()), Qt::ISODate)); + TQDateTime dt(TQDateTime::fromString(elem.attributeNS( KoXmlNS::text, "time-value", TQString()), TQt::ISODate)); bool fixed = (elem.hasAttributeNS( KoXmlNS::text, "fixed") && elem.attributeNS( KoXmlNS::text, "fixed", TQString())=="true"); if (!dt.isValid()) @@ -1563,7 +1563,7 @@ void KoTimeVariable::saveOasis( KoXmlWriter& writer, KoSavingContext& context ) if (m_subtype == VST_TIME_FIX ) { writer.addAttribute( "text:fixed", "true" ); - writer.addAttribute( "text:time-value", m_varValue.toTime().toString( Qt::ISODate ) ); + writer.addAttribute( "text:time-value", m_varValue.toTime().toString( TQt::ISODate ) ); } TQString value( m_varFormat->formatProperties() ); @@ -2527,7 +2527,7 @@ void KoNoteVariable::loadOasis( const TQDomElement &elem, KoOasisContext& /*cont if ( localName == "annotation" && elem.namespaceURI() == KoXmlNS::office ) { TQDomElement date = KoDom::namedItemNS( elem, KoXmlNS::dc, "date" ); - m_createdNoteDate = TQDate::fromString( date.text(), Qt::ISODate ); + m_createdNoteDate = TQDate::fromString( date.text(), TQt::ISODate ); TQDomNode text = KoDom::namedItemNS( elem, KoXmlNS::text, "p" ); for ( ; !text.isNull(); text = text.nextSibling() ) { @@ -2546,7 +2546,7 @@ void KoNoteVariable::saveOasis( KoXmlWriter& writer, KoSavingContext& /*context* // <office:annotation><dc:date>2004-11-10</dc:date><text:p/><text:p>---- 10/11/2004, 16:18 ----</text:p><text:p>dfgsdfsdfg</text:p><text:p>---- 10/11/2004, 16:18 ----</text:p><text:p/><text:p>---- 10/11/2004, 16:18 ----</text:p><text:p>gs</text:p><text:p>---- 10/11/2004, 16:18 ----</text:p><text:p>fg</text:p></office:annotation> writer.startElement( "office:annotation" ); writer.startElement( "dc:date" ); - writer.addTextNode( m_createdNoteDate.toString(Qt::ISODate) ); + writer.addTextNode( m_createdNoteDate.toString(TQt::ISODate) ); writer.endElement(); TQStringList text = TQStringList::split( "\n", m_varValue.toString() ); for ( TQStringList::Iterator it = text.begin(); it != text.end(); ++it ) { diff --git a/lib/kotext/tests/kobordertest.cpp b/lib/kotext/tests/kobordertest.cpp index b19513e6..93f2293b 100644 --- a/lib/kotext/tests/kobordertest.cpp +++ b/lib/kotext/tests/kobordertest.cpp @@ -53,7 +53,7 @@ int main (int argc, char ** argv) KoZoomHandler* zh = new KoZoomHandler(); - TQGrid* grid = new TQGrid(2, Qt::Horizontal, 0L); // 2 columns + TQGrid* grid = new TQGrid(2, TQt::Horizontal, 0L); // 2 columns { // First square MyWidget* w = new MyWidget(zh, grid); |