Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/11/head
Michele Calgaro 1 year ago
parent 6f3f1d2a67
commit 417a964d44
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -106,7 +106,7 @@ TBarcodeDlg::TBarcodeDlg(TQWidget *parent, const char *name )
TQVBoxLayout* layout = new TQVBoxLayout( this, 6, 6 ); TQVBoxLayout* layout = new TQVBoxLayout( this, 6, 6 );
TQGroupBox* gb = new TQGroupBox( i18n("TBarcode"), this ); TQGroupBox* gb = new TQGroupBox( i18n("TBarcode"), this );
gb->setColumnLayout(0, Qt::Vertical ); gb->setColumnLayout(0, TQt::Vertical );
gb->layout()->setSpacing( 6 ); gb->layout()->setSpacing( 6 );
gb->layout()->setMargin( 11 ); gb->layout()->setMargin( 11 );
gb->setEnabled( Barkode::haveTBarcode() || Barkode::haveTBarcode2() ); gb->setEnabled( Barkode::haveTBarcode() || Barkode::haveTBarcode2() );
@ -252,7 +252,7 @@ PDF417BarcodeDlg::PDF417BarcodeDlg(TQWidget *parent, const char *name )
TQVBoxLayout* layout = new TQVBoxLayout( this, 6, 6 ); TQVBoxLayout* layout = new TQVBoxLayout( this, 6, 6 );
TQGroupBox* gpdf = new TQGroupBox( i18n("PDF417"), this ); TQGroupBox* gpdf = new TQGroupBox( i18n("PDF417"), this );
gpdf->setColumnLayout(0, Qt::Vertical ); gpdf->setColumnLayout(0, TQt::Vertical );
gpdf->layout()->setSpacing( 6 ); gpdf->layout()->setSpacing( 6 );
gpdf->layout()->setMargin( 11 ); gpdf->layout()->setMargin( 11 );
gpdf->setEnabled( Barkode::haveTBarcode() || Barkode::havePDFBarcode() ); gpdf->setEnabled( Barkode::haveTBarcode() || Barkode::havePDFBarcode() );
@ -360,7 +360,7 @@ SequenceDlg::SequenceDlg( TQWidget *parent, const char *name )
TQVBoxLayout* main = new TQVBoxLayout( this, 6, 6 ); TQVBoxLayout* main = new TQVBoxLayout( this, 6, 6 );
TQButtonGroup* group = new TQButtonGroup( i18n("Sequence"), this ); TQButtonGroup* group = new TQButtonGroup( i18n("Sequence"), this );
group->setColumnLayout(0, Qt::Vertical ); group->setColumnLayout(0, TQt::Vertical );
group->layout()->setSpacing( 6 ); group->layout()->setSpacing( 6 );
group->layout()->setMargin( 11 ); group->layout()->setMargin( 11 );
TQVBoxLayout* layout = new TQVBoxLayout( group->layout() ); TQVBoxLayout* layout = new TQVBoxLayout( group->layout() );
@ -438,7 +438,7 @@ ColorDlg::ColorDlg(TQWidget *parent, const char *name)
: TQVBox( parent, name ) : TQVBox( parent, name )
{ {
TQGroupBox* gb = new TQGroupBox( i18n("Colors"), this ); TQGroupBox* gb = new TQGroupBox( i18n("Colors"), this );
gb->setColumnLayout(0, Qt::Vertical ); gb->setColumnLayout(0, TQt::Vertical );
gb->layout()->setSpacing( 6 ); gb->layout()->setSpacing( 6 );
gb->layout()->setMargin( 11 ); gb->layout()->setMargin( 11 );
gb->setEnabled( Barkode::havePurePostscriptBarcode() ); gb->setEnabled( Barkode::havePurePostscriptBarcode() );

@ -217,7 +217,7 @@ void ConfigDialog::setupTab5()
TQVBoxLayout* tabLayout = new TQVBoxLayout( box, 11, 6 ); TQVBoxLayout* tabLayout = new TQVBoxLayout( box, 11, 6 );
TQButtonGroup* bg = new TQButtonGroup( i18n("On New Article"), box ); TQButtonGroup* bg = new TQButtonGroup( i18n("On New Article"), box );
bg->setColumnLayout(0, Qt::Vertical ); bg->setColumnLayout(0, TQt::Vertical );
bg->layout()->setSpacing( 6 ); bg->layout()->setSpacing( 6 );
bg->layout()->setMargin( 11 ); bg->layout()->setMargin( 11 );
TQGridLayout* bgLayout = new TQGridLayout( bg->layout() ); TQGridLayout* bgLayout = new TQGridLayout( bg->layout() );
@ -258,7 +258,7 @@ void ConfigDialog::setupTab5()
bgLayout->addWidget( onNewArticle4, 3, 1 ); bgLayout->addWidget( onNewArticle4, 3, 1 );
TQButtonGroup* bg2 = new TQButtonGroup( i18n("On New Group"), box ); TQButtonGroup* bg2 = new TQButtonGroup( i18n("On New Group"), box );
bg2->setColumnLayout(0, Qt::Vertical ); bg2->setColumnLayout(0, TQt::Vertical );
bg2->layout()->setSpacing( 6 ); bg2->layout()->setSpacing( 6 );
bg2->layout()->setMargin( 11 ); bg2->layout()->setMargin( 11 );
TQGridLayout* bg2Layout = new TQGridLayout( bg2->layout() ); TQGridLayout* bg2Layout = new TQGridLayout( bg2->layout() );

@ -162,7 +162,7 @@ void CSVImportDlg::createPage2()
groupCSV = new TQGroupBox( i18n("CSV File"), hboxFrame ); groupCSV = new TQGroupBox( i18n("CSV File"), hboxFrame );
groupFixed = new TQGroupBox( i18n("Fixed Field Width File"), hboxFrame ); groupFixed = new TQGroupBox( i18n("Fixed Field Width File"), hboxFrame );
groupCSV->setColumnLayout(0, Qt::Vertical ); groupCSV->setColumnLayout(0, TQt::Vertical );
groupCSV->layout()->setSpacing( 6 ); groupCSV->layout()->setSpacing( 6 );
groupCSV->layout()->setMargin( 11 ); groupCSV->layout()->setMargin( 11 );
@ -195,7 +195,7 @@ void CSVImportDlg::createPage2()
vbox->addLayout( grid ); vbox->addLayout( grid );
vbox->addItem( spacer1 ); vbox->addItem( spacer1 );
groupFixed->setColumnLayout(0, Qt::Horizontal ); groupFixed->setColumnLayout(0, TQt::Horizontal );
groupFixed->layout()->setSpacing( 6 ); groupFixed->layout()->setSpacing( 6 );
groupFixed->layout()->setMargin( 11 ); groupFixed->layout()->setMargin( 11 );
TQHBoxLayout* groupFixedLayout = new TQHBoxLayout( groupFixed->layout() ); TQHBoxLayout* groupFixedLayout = new TQHBoxLayout( groupFixed->layout() );

@ -207,7 +207,7 @@ DefinitionDialog::DefinitionDialog( TQWidget* parent, const char* name, bool mo
l = new TQLabel( this ); l = new TQLabel( this );
setExtension( l ); setExtension( l );
setOrientation(Qt::Vertical ); setOrientation(TQt::Vertical );
connect( buttonCancel, TQT_SIGNAL( clicked() ), this, TQT_SLOT( reject() ) ); connect( buttonCancel, TQT_SIGNAL( clicked() ), this, TQT_SLOT( reject() ) );
connect( buttonAdd, TQT_SIGNAL( clicked() ), this, TQT_SLOT( add() ) ); connect( buttonAdd, TQT_SIGNAL( clicked() ), this, TQT_SLOT( add() ) );

@ -67,7 +67,7 @@ void DocumentItem::loadXML (TQDomElement* element)
m_rect.setHeight( element->attribute( "height_mm", "-1" ).toInt() ); m_rect.setHeight( element->attribute( "height_mm", "-1" ).toInt() );
m_pen.setColor( readXMLColor( element, "line-color", TQt::black ) ); m_pen.setColor( readXMLColor( element, "line-color", TQt::black ) );
m_pen.setStyle( (Qt::PenStyle)element->attribute( "line-style", "0" ).toInt() ); m_pen.setStyle( (TQt::PenStyle)element->attribute( "line-style", "0" ).toInt() );
m_pen.setWidth( element->attribute( "line-width", "1" ).toInt() ); m_pen.setWidth( element->attribute( "line-width", "1" ).toInt() );
m_border = (bool)element->attribute( "line-visible", "1" ).toInt(); m_border = (bool)element->attribute( "line-visible", "1" ).toInt();
m_z = element->attribute( "z", "0" ).toInt(); m_z = element->attribute( "z", "0" ).toInt();

@ -44,7 +44,7 @@ KBarcode::KBarcode( TQWidget *parent, const char *name, WFlags f)
DSMainWindow( parent, name, f ) DSMainWindow( parent, name, f )
{ {
TQGroupBox* w = new TQGroupBox( this ); TQGroupBox* w = new TQGroupBox( this );
w->setColumnLayout(0, Qt::Vertical ); w->setColumnLayout(0, TQt::Vertical );
TQVBoxLayout* layout = new TQVBoxLayout( w->layout() ); TQVBoxLayout* layout = new TQVBoxLayout( w->layout() );
setCentralWidget( w ); setCentralWidget( w );

@ -44,7 +44,7 @@ MultiLineEditor::MultiLineEditor( TokenProvider* token, TQWidget *parent, const
//editor->setText( text, "" ); //editor->setText( text, "" );
editor->setFocus(); editor->setFocus();
TQDockArea* area = new TQDockArea( Qt::Horizontal, TQDockArea::Normal, this ); TQDockArea* area = new TQDockArea( TQt::Horizontal, TQDockArea::Normal, this );
toolBar = new TDEToolBar( area ); toolBar = new TDEToolBar( area );
tool2Bar = new TDEToolBar( area ); tool2Bar = new TDEToolBar( area );
tool3Bar = new TDEToolBar( area ); tool3Bar = new TDEToolBar( area );

@ -81,8 +81,8 @@ MyCanvasView::MyCanvasView( Definition* d, MyCanvas* c, TQWidget* parent, const
m_commov = 0; m_commov = 0;
canv = c; canv = c;
rulerv = new KRuler( Qt::Vertical, this ); rulerv = new KRuler( TQt::Vertical, this );
rulerh = new KRuler( Qt::Horizontal, this ); rulerh = new KRuler( TQt::Horizontal, this );
if( Measurements::measurementSystem() == Measurements::Metric ) { if( Measurements::measurementSystem() == Measurements::Metric ) {
rulerv->setRulerMetricStyle( KRuler::Millimetres ); rulerv->setRulerMetricStyle( KRuler::Millimetres );
rulerh->setRulerMetricStyle( KRuler::Millimetres ); rulerh->setRulerMetricStyle( KRuler::Millimetres );
@ -157,7 +157,7 @@ void MyCanvasView::contentsMouseMoveEvent(TQMouseEvent* e)
updateCursor( e->pos() ); updateCursor( e->pos() );
// if no mouse button is pressed bail out now // if no mouse button is pressed bail out now
if( !(e->state() & Qt::LeftButton ) ) { if( !(e->state() & TQt::LeftButton ) ) {
(void)updateCursor( e->pos(), true ); (void)updateCursor( e->pos(), true );
return; return;
} }
@ -258,13 +258,13 @@ void MyCanvasView::contentsMousePressEvent(TQMouseEvent* e)
delta_pt=TQPoint(e->x() - old.x(),e->y() - old.y()); delta_pt=TQPoint(e->x() - old.x(),e->y() - old.y());
} }
if( e->button() == Qt::RightButton && getActive() ) if( e->button() == TQt::RightButton && getActive() )
emit showContextMenu( e->globalPos() ); emit showContextMenu( e->globalPos() );
} }
void MyCanvasView::contentsMouseReleaseEvent(TQMouseEvent* e) void MyCanvasView::contentsMouseReleaseEvent(TQMouseEvent* e)
{ {
if( e->button() != Qt::LeftButton || getSelected().isEmpty() ) if( e->button() != TQt::LeftButton || getSelected().isEmpty() )
return; return;
if( m_commov ) { if( m_commov ) {

@ -54,7 +54,7 @@ NewLabel::NewLabel( TQWidget* parent, const char* name, bool change, WFlags fl
TQGroupBox* group1 = new TQGroupBox( this ); TQGroupBox* group1 = new TQGroupBox( this );
group1->setTitle( i18n( "Label" ) ); group1->setTitle( i18n( "Label" ) );
group1->setColumnLayout(0, Qt::Vertical ); group1->setColumnLayout(0, TQt::Vertical );
group1->layout()->setSpacing( 6 ); group1->layout()->setSpacing( 6 );
group1->layout()->setMargin( 11 ); group1->layout()->setMargin( 11 );
TQGridLayout* group1Layout = new TQGridLayout( group1->layout() ); TQGridLayout* group1Layout = new TQGridLayout( group1->layout() );

@ -521,7 +521,7 @@ SqlWidget::SqlWidget( bool showlabel, TQWidget* parent, const char* name )
TQGroupBox* groupDatabase = new TQGroupBox( this ); TQGroupBox* groupDatabase = new TQGroupBox( this );
groupDatabase->setTitle( i18n( "Database Settings" ) ); groupDatabase->setTitle( i18n( "Database Settings" ) );
groupDatabase->setColumnLayout(0, Qt::Vertical ); groupDatabase->setColumnLayout(0, TQt::Vertical );
groupDatabase->layout()->setSpacing( 6 ); groupDatabase->layout()->setSpacing( 6 );
groupDatabase->layout()->setMargin( 11 ); groupDatabase->layout()->setMargin( 11 );
TQVBoxLayout* groupDatabaseLayout = new TQVBoxLayout( groupDatabase->layout() ); TQVBoxLayout* groupDatabaseLayout = new TQVBoxLayout( groupDatabase->layout() );

@ -41,7 +41,7 @@ TextLineEditor::TextLineEditor( TokenProvider* token, TQWidget *parent, const ch
editor->setFocus(); editor->setFocus();
TQDockArea* area = new TQDockArea( Qt::Horizontal, TQDockArea::Normal, this ); TQDockArea* area = new TQDockArea( TQt::Horizontal, TQDockArea::Normal, this );
toolBar = new TDEToolBar( area ); toolBar = new TDEToolBar( area );
tool2Bar = new TDEToolBar( area ); tool2Bar = new TDEToolBar( area );
tool3Bar = new TDEToolBar( area ); tool3Bar = new TDEToolBar( area );

Loading…
Cancel
Save