summaryrefslogtreecommitdiffstats
path: root/filters/kspread
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-05 11:54:26 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-16 23:40:13 +0900
commitc8c5e11f05f023849896d09cf06917e9a2c016ca (patch)
treea62f00b0249b967528e115e2123b56d40633c17a /filters/kspread
parentc9973bfbf1091ef91f30b5ab456015676123aa47 (diff)
downloadkoffice-c8c5e11f.tar.gz
koffice-c8c5e11f.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit ef06f14f2475bd08d3ea2ceec54a7b2238f3554e)
Diffstat (limited to 'filters/kspread')
-rw-r--r--filters/kspread/csv/csvexportdialog.cpp2
-rw-r--r--filters/kspread/excel/sidewinder/excel.cpp4
-rw-r--r--filters/kspread/gnumeric/gnumericimport.cpp68
-rw-r--r--filters/kspread/gnumeric/status.html10
-rw-r--r--filters/kspread/opencalc/opencalcexport.cpp2
-rw-r--r--filters/kspread/opencalc/opencalcimport.cpp12
6 files changed, 49 insertions, 49 deletions
diff --git a/filters/kspread/csv/csvexportdialog.cpp b/filters/kspread/csv/csvexportdialog.cpp
index ebf1523ee..fe1a7c80b 100644
--- a/filters/kspread/csv/csvexportdialog.cpp
+++ b/filters/kspread/csv/csvexportdialog.cpp
@@ -68,7 +68,7 @@ CSVExportDialog::CSVExportDialog( TQWidget * parent )
m_dialog->comboBoxEncoding->insertStringList(encodings);
- setButtonBoxOrientation (Qt::Vertical );
+ setButtonBoxOrientation (TQt::Vertical );
setMainWidget(m_dialog);
diff --git a/filters/kspread/excel/sidewinder/excel.cpp b/filters/kspread/excel/sidewinder/excel.cpp
index b956384ec..3f7240f34 100644
--- a/filters/kspread/excel/sidewinder/excel.cpp
+++ b/filters/kspread/excel/sidewinder/excel.cpp
@@ -4662,8 +4662,8 @@ void XFRecord::dump( std::ostream& out ) const
out << " Format Index : " << formatIndex() << std::endl;
out << " Locked : " << (locked()?"Yes":"No") << std::endl;
out << " Formula Visibility : " << (formulaHidden()?"Hidden":"Visible") << std::endl;
- out << " Qt::Horizontal Align : " << horizontalAlignmentAsString() << std::endl;
- out << " Qt::Vertical Align : " << verticalAlignmentAsString() << std::endl;
+ out << " Horizontal Align : " << horizontalAlignmentAsString() << std::endl;
+ out << " Vertical Align : " << verticalAlignmentAsString() << std::endl;
out << " Text Wrap : " << ( textWrap() ? "yes" : "no" ) << std::endl;
out << " Rotation : " << rotationAngle() << std::endl;
out << " Stacked Letters : " << ( stackedLetters() ? "yes" : "no" ) << std::endl;
diff --git a/filters/kspread/gnumeric/gnumericimport.cpp b/filters/kspread/gnumeric/gnumericimport.cpp
index f437aad00..4b037ad15 100644
--- a/filters/kspread/gnumeric/gnumericimport.cpp
+++ b/filters/kspread/gnumeric/gnumericimport.cpp
@@ -488,63 +488,63 @@ void convertToPen( TQPen & pen, int style )
case 0:
break;
case 1:
- pen.setStyle( Qt::SolidLine );
+ pen.setStyle( TQt::SolidLine );
pen.setWidth( 1 );
break;
case 2:
- pen.setStyle( Qt::SolidLine );
+ pen.setStyle( TQt::SolidLine );
pen.setWidth( 2 );
break;
case 3:
- pen.setStyle( Qt::DashLine );
+ pen.setStyle( TQt::DashLine );
pen.setWidth( 1 );
break;
case 4:
// width should be 1 but otherwise it would be the same as 7
- pen.setStyle( Qt::DotLine );
+ pen.setStyle( TQt::DotLine );
pen.setWidth( 2 );
break;
case 5:
- pen.setStyle( Qt::SolidLine );
+ pen.setStyle( TQt::SolidLine );
pen.setWidth( 3 );
break;
case 6:
// TODO should be double
- pen.setStyle( Qt::SolidLine );
+ pen.setStyle( TQt::SolidLine );
pen.setWidth( 1 );
break;
case 7:
// very thin dots => no match in KSpread
- pen.setStyle( Qt::DotLine );
+ pen.setStyle( TQt::DotLine );
pen.setWidth( 1 );
break;
case 8:
- pen.setStyle( Qt::DashLine );
+ pen.setStyle( TQt::DashLine );
pen.setWidth( 2 );
break;
case 9:
- pen.setStyle( Qt::DashDotLine );
+ pen.setStyle( TQt::DashDotLine );
pen.setWidth( 1 );
break;
case 10:
- pen.setStyle( Qt::DashDotLine );
+ pen.setStyle( TQt::DashDotLine );
pen.setWidth( 2 );
break;
case 11:
- pen.setStyle( Qt::DashDotDotLine );
+ pen.setStyle( TQt::DashDotDotLine );
pen.setWidth( 1 );
break;
case 12:
- pen.setStyle( Qt::DashDotDotLine );
+ pen.setStyle( TQt::DashDotDotLine );
pen.setWidth( 2 );
break;
case 13:
// TODO: long dash, short dash, long dash,...
- pen.setStyle( Qt::DashDotLine );
+ pen.setStyle( TQt::DashDotLine );
pen.setWidth( 3 );
break;
default:
- pen.setStyle( Qt::SolidLine );
+ pen.setStyle( TQt::SolidLine );
pen.setWidth( 1 );
}
}
@@ -1178,7 +1178,7 @@ void GNUMERICFilter::setStyleInfo(TQDomNode * sheet, Sheet * table)
else if (shade == "1")
{
/* 1 Solid */
- //kspread_cell->format()->setBackGroundBrushStyle(Qt::SolidPattern);
+ //kspread_cell->format()->setBackGroundBrushStyle(TQt::SolidPattern);
//This is as empty
/* What should this be? */
@@ -1186,86 +1186,86 @@ void GNUMERICFilter::setStyleInfo(TQDomNode * sheet, Sheet * table)
else if (shade == "2")
{
/* 2 75% */
- kspread_cell->format()->setBackGroundBrushStyle(Qt::Dense2Pattern);
+ kspread_cell->format()->setBackGroundBrushStyle(TQt::Dense2Pattern);
}
else if (shade == "3")
{
/* 3 50% */
- kspread_cell->format()->setBackGroundBrushStyle(Qt::Dense4Pattern);
+ kspread_cell->format()->setBackGroundBrushStyle(TQt::Dense4Pattern);
}
else if (shade == "4")
{
- kspread_cell->format()->setBackGroundBrushStyle(Qt::Dense5Pattern);
+ kspread_cell->format()->setBackGroundBrushStyle(TQt::Dense5Pattern);
/* This should be 25%... All qt has is 37% */
/* 4 25% */
}
else if (shade == "5")
{
- kspread_cell->format()->setBackGroundBrushStyle(Qt::Dense6Pattern);
+ kspread_cell->format()->setBackGroundBrushStyle(TQt::Dense6Pattern);
/* 5 12.5% */
}
else if (shade == "6")
{
- kspread_cell->format()->setBackGroundBrushStyle(Qt::Dense7Pattern);
+ kspread_cell->format()->setBackGroundBrushStyle(TQt::Dense7Pattern);
/* 6 6.25% */
}
else if (shade == "7")
{
- kspread_cell->format()->setBackGroundBrushStyle(Qt::HorPattern);
+ kspread_cell->format()->setBackGroundBrushStyle(TQt::HorPattern);
/* 7 Horizontal Stripe */
}
else if (shade == "8")
{
- kspread_cell->format()->setBackGroundBrushStyle(Qt::VerPattern);
+ kspread_cell->format()->setBackGroundBrushStyle(TQt::VerPattern);
/* 8 Vertical Stripe */
}
else if (shade == "9")
{
- kspread_cell->format()->setBackGroundBrushStyle(Qt::BDiagPattern);
+ kspread_cell->format()->setBackGroundBrushStyle(TQt::BDiagPattern);
/* 9 Reverse Diagonal Stripe */
}
else if (shade == "10")
{
/* 10 Diagonal Stripe */
- kspread_cell->format()->setBackGroundBrushStyle(Qt::FDiagPattern);
+ kspread_cell->format()->setBackGroundBrushStyle(TQt::FDiagPattern);
}
else if (shade == "11")
{
/* 11 Diagonal Crosshatch */
- kspread_cell->format()->setBackGroundBrushStyle(Qt::DiagCrossPattern);
+ kspread_cell->format()->setBackGroundBrushStyle(TQt::DiagCrossPattern);
}
else if (shade == "12")
{
/* 12 Thick Diagonal Crosshatch TODO!*/
- kspread_cell->format()->setBackGroundBrushStyle(Qt::DiagCrossPattern);
+ kspread_cell->format()->setBackGroundBrushStyle(TQt::DiagCrossPattern);
}
else if (shade == "13")
{
/* 13 Thin Horizontal Stripe TODO: wrong: this is thick!*/
- kspread_cell->format()->setBackGroundBrushStyle(Qt::HorPattern);
+ kspread_cell->format()->setBackGroundBrushStyle(TQt::HorPattern);
}
else if (shade == "14")
{
- kspread_cell->format()->setBackGroundBrushStyle(Qt::VerPattern);
+ kspread_cell->format()->setBackGroundBrushStyle(TQt::VerPattern);
}
else if (shade == "15")
{
- kspread_cell->format()->setBackGroundBrushStyle(Qt::FDiagPattern);
+ kspread_cell->format()->setBackGroundBrushStyle(TQt::FDiagPattern);
}
else if (shade == "16")
{
/* 16 Thick Reverse Stripe TODO:*/
- kspread_cell->format()->setBackGroundBrushStyle(Qt::BDiagPattern);
+ kspread_cell->format()->setBackGroundBrushStyle(TQt::BDiagPattern);
}
else if (shade == "17")
{
- kspread_cell->format()->setBackGroundBrushStyle(Qt::DiagCrossPattern);
+ kspread_cell->format()->setBackGroundBrushStyle(TQt::DiagCrossPattern);
}
else if (shade == "18")
{
- kspread_cell->format()->setBackGroundBrushStyle(Qt::DiagCrossPattern);
+ kspread_cell->format()->setBackGroundBrushStyle(TQt::DiagCrossPattern);
}
else if (shade == "19")
{
@@ -1290,12 +1290,12 @@ void GNUMERICFilter::setStyleInfo(TQDomNode * sheet, Sheet * table)
else if (shade == "24")
{
/* 24 100% */
- kspread_cell->format()->setBackGroundBrushStyle(Qt::SolidPattern);
+ kspread_cell->format()->setBackGroundBrushStyle(TQt::SolidPattern);
}
else if (shade == "25")
{
/* 25 87.5% */
- kspread_cell->format()->setBackGroundBrushStyle(Qt::Dense2Pattern);
+ kspread_cell->format()->setBackGroundBrushStyle(TQt::Dense2Pattern);
}
}
diff --git a/filters/kspread/gnumeric/status.html b/filters/kspread/gnumeric/status.html
index a25cdf4b6..c6c9ef89a 100644
--- a/filters/kspread/gnumeric/status.html
+++ b/filters/kspread/gnumeric/status.html
@@ -39,7 +39,7 @@ KOffice filters status:&nbsp;&nbsp; GNUmeric (GNOME spreadsheet)</h1></center>
<tr BGCOLOR="#CCCCFF">
<td VALIGN=TOP><b><font size="+1">Features</font></b></td>
-<td>Vertical &amp;Qt::Horizontal Alignment, text wrapping, indention
+<td>Vertical &amp; Horizontal Alignment, text wrapping, indention
<br>Background, Patter &amp; Foreground color
<br>Fonts:
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
@@ -61,7 +61,7 @@ Family
<br>Page: size, orientation, borders, header and footer
<br>Border: color, style, width for all 6 types
<br>Background pattern: style, color
-<br>Cell Size:Qt::Horizontal &amp;Qt::Vertical&nbsp;
+<br>Cell Size: horizontal &amp; vertical&nbsp;
<br>Hidden Columns
<br>Default row heights and column widths
<br>Area name
@@ -81,7 +81,7 @@ Family
<tr BGCOLOR="#EEEEFF">
<td VALIGN=TOP><b><font size="+1">Todo</font></b></td>
-<td>Cell Size:Qt::Horizontal &amp;Qt::Vertical (Export) (kspread&nbsp; doesn't
+<td>Cell Size: horizontal &amp; vertical (Export) (kspread&nbsp; doesn't
support retriving the first "rowFormat" and colFormat".)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
@@ -194,7 +194,7 @@ Faure</a>&nbsp;&nbsp; <a href="mailto:trobin@kde.org">Werner Trobin</a></td>
<tr BGCOLOR="#CCCCFF">
<td VALIGN=TOP><b><font size="+1">Features</font></b></td>
-<td>Vertical &amp;Qt::Horizontal Alignment
+<td>Vertical &amp; Horizontal Alignment
<br>Background &amp; Foreground color
<br>Fonts:
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
@@ -208,7 +208,7 @@ Bold
<br>Multiple Sheets (Tables)
<br>Formulas!!! (ExprID)
<br>Selections
-<br>Cell Size:Qt::Horizontal &amp;Qt::Vertical
+<br>Cell Size: horizontal &amp; vertical
<br>Hidden columns/rows&nbsp;
<br>Selected Tab
<br>Paper layout
diff --git a/filters/kspread/opencalc/opencalcexport.cpp b/filters/kspread/opencalc/opencalcexport.cpp
index 2db60420f..8f8018c53 100644
--- a/filters/kspread/opencalc/opencalcexport.cpp
+++ b/filters/kspread/opencalc/opencalcexport.cpp
@@ -231,7 +231,7 @@ bool OpenCalcExport::exportDocInfo( KoStore * store, const Doc* ksdoc )
if ( dt.isValid() )
{
data = meta.createElement( "dc:date" );
- data.appendChild( meta.createTextNode( dt.toString( Qt::ISODate ) ) );
+ data.appendChild( meta.createTextNode( dt.toString( TQt::ISODate ) ) );
officeMeta.appendChild( data );
}
diff --git a/filters/kspread/opencalc/opencalcimport.cpp b/filters/kspread/opencalc/opencalcimport.cpp
index 6dc3216ed..2ccf31739 100644
--- a/filters/kspread/opencalc/opencalcimport.cpp
+++ b/filters/kspread/opencalc/opencalcimport.cpp
@@ -2017,17 +2017,17 @@ void OpenCalcImport::loadBorder( Format * layout, TQString const & borderDef, bP
kdDebug(30518) << "Borderstyle: " << s << endl;
if ( s == "solid" || s == "double" )
- pen.setStyle( Qt::SolidLine );
+ pen.setStyle( TQt::SolidLine );
else
{
#if 0
// TODO: not supported by oocalc
- pen.setStyle( Qt::DashLine );
- pen.setStyle( Qt::DotLine );
- pen.setStyle( Qt::DashDotLine );
- pen.setStyle( Qt::DashDotDotLine );
+ pen.setStyle( TQt::DashLine );
+ pen.setStyle( TQt::DotLine );
+ pen.setStyle( TQt::DashDotLine );
+ pen.setStyle( TQt::DashDotDotLine );
#endif
- pen.setStyle( Qt::SolidLine ); //default.
+ pen.setStyle( TQt::SolidLine ); //default.
}
++p2;