summaryrefslogtreecommitdiffstats
path: root/kspread/dialogs/kspread_dlg_layout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kspread/dialogs/kspread_dlg_layout.cpp')
-rw-r--r--kspread/dialogs/kspread_dlg_layout.cpp84
1 files changed, 42 insertions, 42 deletions
diff --git a/kspread/dialogs/kspread_dlg_layout.cpp b/kspread/dialogs/kspread_dlg_layout.cpp
index ad876b3b..ff4719c6 100644
--- a/kspread/dialogs/kspread_dlg_layout.cpp
+++ b/kspread/dialogs/kspread_dlg_layout.cpp
@@ -76,14 +76,14 @@ using namespace KSpread;
PatternSelect::PatternSelect( TQWidget *parent, const char * )
: TQFrame( parent )
{
- penStyle = Qt::NoPen;
+ penStyle = TQt::NoPen;
penWidth = 1;
penColor = colorGroup().text();
selected = false;
undefined = false;
}
-void PatternSelect::setPattern( const TQColor &_color, int _width, Qt::PenStyle _style )
+void PatternSelect::setPattern( const TQColor &_color, int _width, TQt::PenStyle _style )
{
penStyle = _style;
penColor = _color;
@@ -154,7 +154,7 @@ GeneralTab::GeneralTab( TQWidget* parent, CellFormatDialog * dlg )
TQGridLayout * layout = new TQGridLayout( this, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "layout");
TQGroupBox * groupBox = new TQGroupBox( this, "groupBox1" );
- groupBox->setColumnLayout(0, Qt::Vertical );
+ groupBox->setColumnLayout(0, TQt::Vertical );
groupBox->setTitle( i18n( "Style" ) );
groupBox->layout()->setSpacing( KDialog::spacingHint() );
groupBox->layout()->setMargin( KDialog::marginHint() );
@@ -2531,7 +2531,7 @@ double CellFormatPagePosition::getSizeWidth() const
BorderButton::BorderButton( TQWidget *parent, const char *_name ) : TQPushButton(parent,_name)
{
- penStyle = Qt::NoPen;
+ penStyle = TQt::NoPen;
penWidth = 1;
penColor = colorGroup().text();
setToggleButton( true );
@@ -2547,7 +2547,7 @@ void BorderButton::mousePressEvent( TQMouseEvent * )
void BorderButton::setUndefined()
{
- setPenStyle(Qt::SolidLine );
+ setPenStyle(TQt::SolidLine );
setPenWidth(1);
setColor(colorGroup().midlight());
}
@@ -2557,7 +2557,7 @@ void BorderButton::unselect()
{
setOn(false);
setPenWidth(1);
- setPenStyle(Qt::NoPen);
+ setPenStyle(TQt::NoPen);
setColor( colorGroup().text() );
setChanged(true);
}
@@ -2646,7 +2646,7 @@ CellFormatPageBorder::CellFormatPageBorder( TQWidget* parent, CellFormatDialog *
style->setEnabled(false);
size->setEnabled(false);
- preview->setPattern( black , 1, Qt::SolidLine );
+ preview->setPattern( black , 1, TQt::SolidLine );
this->resize( 400, 400 );
}
@@ -2859,16 +2859,16 @@ void CellFormatPageBorder::InitializeBorderButtons()
void CellFormatPageBorder::InitializePatterns()
{
- pattern[0]->setPattern( black, 1, Qt::DotLine );
- pattern[1]->setPattern( black, 1, Qt::DashLine );
- pattern[2]->setPattern( black, 1, Qt::SolidLine );
- pattern[3]->setPattern( black, 1, Qt::DashDotLine );
- pattern[4]->setPattern( black, 1, Qt::DashDotDotLine );
- pattern[5]->setPattern( black, 2, Qt::SolidLine );
- pattern[6]->setPattern( black, 3, Qt::SolidLine );
- pattern[7]->setPattern( black, 4, Qt::SolidLine );
- pattern[8]->setPattern( black, 5, Qt::SolidLine );
- pattern[9]->setPattern( black, 1, Qt::NoPen );
+ pattern[0]->setPattern( black, 1, TQt::DotLine );
+ pattern[1]->setPattern( black, 1, TQt::DashLine );
+ pattern[2]->setPattern( black, 1, TQt::SolidLine );
+ pattern[3]->setPattern( black, 1, TQt::DashDotLine );
+ pattern[4]->setPattern( black, 1, TQt::DashDotDotLine );
+ pattern[5]->setPattern( black, 2, TQt::SolidLine );
+ pattern[6]->setPattern( black, 3, TQt::SolidLine );
+ pattern[7]->setPattern( black, 4, TQt::SolidLine );
+ pattern[8]->setPattern( black, 5, TQt::SolidLine );
+ pattern[9]->setPattern( black, 1, TQt::NoPen );
slotSetColorButton( black );
}
@@ -2919,7 +2919,7 @@ void CellFormatPageBorder::cutomize_chosen_slot()
style->setEnabled( false );
size->setEnabled( false );
pattern[2]->slotSelect();
- preview->setPattern( black , 1, Qt::SolidLine );
+ preview->setPattern( black , 1, TQt::SolidLine );
}
}
@@ -2936,26 +2936,26 @@ void CellFormatPageBorder::slotChangeStyle(int)
int penSize = size->currentText().toInt();
if ( !penSize)
{
- preview->setPattern( preview->getColor(), penSize, Qt::NoPen );
+ preview->setPattern( preview->getColor(), penSize, TQt::NoPen );
}
else
{
switch(index)
{
case 0:
- preview->setPattern( preview->getColor(), penSize, Qt::DotLine );
+ preview->setPattern( preview->getColor(), penSize, TQt::DotLine );
break;
case 1:
- preview->setPattern( preview->getColor(), penSize, Qt::DashLine );
+ preview->setPattern( preview->getColor(), penSize, TQt::DashLine );
break;
case 2:
- preview->setPattern( preview->getColor(), penSize, Qt::DashDotLine );
+ preview->setPattern( preview->getColor(), penSize, TQt::DashDotLine );
break;
case 3:
- preview->setPattern( preview->getColor(), penSize, Qt::DashDotDotLine );
+ preview->setPattern( preview->getColor(), penSize, TQt::DashDotDotLine );
break;
case 4:
- preview->setPattern( preview->getColor(), penSize, Qt::SolidLine );
+ preview->setPattern( preview->getColor(), penSize, TQt::SolidLine );
break;
default:
kdDebug(36001)<<"Error in combobox\n";
@@ -3239,7 +3239,7 @@ void CellFormatPageBorder::changeState( BorderButton *_p)
else
{
_p->setPenWidth(1);
- _p->setPenStyle(Qt::NoPen);
+ _p->setPenStyle(TQt::NoPen);
_p->setColor( colorGroup().text() );
}
@@ -3496,12 +3496,12 @@ if (rect.contains(TQPoint(_ev->x(),_ev->y())))
BrushSelect::BrushSelect( TQWidget *parent, const char * ) : TQFrame( parent )
{
- brushStyle = Qt::NoBrush;
+ brushStyle = TQt::NoBrush;
brushColor = TQt::red;
selected = false;
}
-void BrushSelect::setPattern( const TQColor &_color,Qt::BrushStyle _style )
+void BrushSelect::setPattern( const TQColor &_color,TQt::BrushStyle _style )
{
brushStyle = _style;
brushColor = _color;
@@ -3720,21 +3720,21 @@ CellFormatPagePattern::CellFormatPagePattern( TQWidget* parent, CellFormatDialog
connect( brush15, TQT_SIGNAL( clicked( BrushSelect* ) ),
this, TQT_SLOT( slotUnselect2( BrushSelect* ) ) );
- brush1->setPattern( TQt::red,Qt::VerPattern );
- brush2->setPattern( TQt::red,Qt::HorPattern );
- brush3->setPattern( TQt::red,Qt::Dense1Pattern );
- brush4->setPattern( TQt::red,Qt::Dense2Pattern );
- brush5->setPattern( TQt::red,Qt::Dense3Pattern );
- brush6->setPattern( TQt::red,Qt::Dense4Pattern );
- brush7->setPattern( TQt::red,Qt::Dense5Pattern );
- brush8->setPattern( TQt::red,Qt::Dense6Pattern );
- brush9->setPattern( TQt::red,Qt::Dense7Pattern );
- brush10->setPattern( TQt::red,Qt::CrossPattern );
- brush11->setPattern( TQt::red,Qt::BDiagPattern );
- brush12->setPattern( TQt::red,Qt::FDiagPattern );
- brush13->setPattern( TQt::red,Qt::VerPattern );
- brush14->setPattern( TQt::red,Qt::DiagCrossPattern );
- brush15->setPattern( TQt::red,Qt::NoBrush );
+ brush1->setPattern( TQt::red,TQt::VerPattern );
+ brush2->setPattern( TQt::red,TQt::HorPattern );
+ brush3->setPattern( TQt::red,TQt::Dense1Pattern );
+ brush4->setPattern( TQt::red,TQt::Dense2Pattern );
+ brush5->setPattern( TQt::red,TQt::Dense3Pattern );
+ brush6->setPattern( TQt::red,TQt::Dense4Pattern );
+ brush7->setPattern( TQt::red,TQt::Dense5Pattern );
+ brush8->setPattern( TQt::red,TQt::Dense6Pattern );
+ brush9->setPattern( TQt::red,TQt::Dense7Pattern );
+ brush10->setPattern( TQt::red,TQt::CrossPattern );
+ brush11->setPattern( TQt::red,TQt::BDiagPattern );
+ brush12->setPattern( TQt::red,TQt::FDiagPattern );
+ brush13->setPattern( TQt::red,TQt::VerPattern );
+ brush14->setPattern( TQt::red,TQt::DiagCrossPattern );
+ brush15->setPattern( TQt::red,TQt::NoBrush );
current->setPattern(dlg->brushColor,dlg->brushStyle);
current->slotSelect();