diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-05 15:26:00 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-05 15:26:00 +0900 |
commit | 417a964d442752688aa697ef4b880f4bd2ce85a3 (patch) | |
tree | 0e7661b9f88b9089900a82b549118e14056278db | |
parent | 6f3f1d2a6769231049a653555ce5799f934e2a09 (diff) | |
download | kbarcode-417a964d442752688aa697ef4b880f4bd2ce85a3.tar.gz kbarcode-417a964d442752688aa697ef4b880f4bd2ce85a3.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r-- | kbarcode/barcodedialogs.cpp | 8 | ||||
-rw-r--r-- | kbarcode/configdialog.cpp | 4 | ||||
-rw-r--r-- | kbarcode/csvimportdlg.cpp | 4 | ||||
-rw-r--r-- | kbarcode/definitiondialog.cpp | 2 | ||||
-rw-r--r-- | kbarcode/documentitem.cpp | 2 | ||||
-rw-r--r-- | kbarcode/kbarcode.cpp | 2 | ||||
-rw-r--r-- | kbarcode/multilineeditdlg.cpp | 2 | ||||
-rw-r--r-- | kbarcode/mycanvasview.cpp | 10 | ||||
-rw-r--r-- | kbarcode/newlabel.cpp | 2 | ||||
-rw-r--r-- | kbarcode/sqltables.cpp | 2 | ||||
-rw-r--r-- | kbarcode/textlineedit.cpp | 2 |
11 files changed, 20 insertions, 20 deletions
diff --git a/kbarcode/barcodedialogs.cpp b/kbarcode/barcodedialogs.cpp index 22411c5..5426ca7 100644 --- a/kbarcode/barcodedialogs.cpp +++ b/kbarcode/barcodedialogs.cpp @@ -106,7 +106,7 @@ TBarcodeDlg::TBarcodeDlg(TQWidget *parent, const char *name ) TQVBoxLayout* layout = new TQVBoxLayout( this, 6, 6 ); TQGroupBox* gb = new TQGroupBox( i18n("TBarcode"), this ); - gb->setColumnLayout(0, Qt::Vertical ); + gb->setColumnLayout(0, TQt::Vertical ); gb->layout()->setSpacing( 6 ); gb->layout()->setMargin( 11 ); gb->setEnabled( Barkode::haveTBarcode() || Barkode::haveTBarcode2() ); @@ -252,7 +252,7 @@ PDF417BarcodeDlg::PDF417BarcodeDlg(TQWidget *parent, const char *name ) TQVBoxLayout* layout = new TQVBoxLayout( this, 6, 6 ); TQGroupBox* gpdf = new TQGroupBox( i18n("PDF417"), this ); - gpdf->setColumnLayout(0, Qt::Vertical ); + gpdf->setColumnLayout(0, TQt::Vertical ); gpdf->layout()->setSpacing( 6 ); gpdf->layout()->setMargin( 11 ); gpdf->setEnabled( Barkode::haveTBarcode() || Barkode::havePDFBarcode() ); @@ -360,7 +360,7 @@ SequenceDlg::SequenceDlg( TQWidget *parent, const char *name ) TQVBoxLayout* main = new TQVBoxLayout( this, 6, 6 ); TQButtonGroup* group = new TQButtonGroup( i18n("Sequence"), this ); - group->setColumnLayout(0, Qt::Vertical ); + group->setColumnLayout(0, TQt::Vertical ); group->layout()->setSpacing( 6 ); group->layout()->setMargin( 11 ); TQVBoxLayout* layout = new TQVBoxLayout( group->layout() ); @@ -438,7 +438,7 @@ ColorDlg::ColorDlg(TQWidget *parent, const char *name) : TQVBox( parent, name ) { TQGroupBox* gb = new TQGroupBox( i18n("Colors"), this ); - gb->setColumnLayout(0, Qt::Vertical ); + gb->setColumnLayout(0, TQt::Vertical ); gb->layout()->setSpacing( 6 ); gb->layout()->setMargin( 11 ); gb->setEnabled( Barkode::havePurePostscriptBarcode() ); diff --git a/kbarcode/configdialog.cpp b/kbarcode/configdialog.cpp index 3dd0ab4..c8b95a7 100644 --- a/kbarcode/configdialog.cpp +++ b/kbarcode/configdialog.cpp @@ -217,7 +217,7 @@ void ConfigDialog::setupTab5() TQVBoxLayout* tabLayout = new TQVBoxLayout( box, 11, 6 ); 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()->setMargin( 11 ); TQGridLayout* bgLayout = new TQGridLayout( bg->layout() ); @@ -258,7 +258,7 @@ void ConfigDialog::setupTab5() bgLayout->addWidget( onNewArticle4, 3, 1 ); 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()->setMargin( 11 ); TQGridLayout* bg2Layout = new TQGridLayout( bg2->layout() ); diff --git a/kbarcode/csvimportdlg.cpp b/kbarcode/csvimportdlg.cpp index f9ff561..551e220 100644 --- a/kbarcode/csvimportdlg.cpp +++ b/kbarcode/csvimportdlg.cpp @@ -162,7 +162,7 @@ void CSVImportDlg::createPage2() groupCSV = new TQGroupBox( i18n("CSV 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()->setMargin( 11 ); @@ -195,7 +195,7 @@ void CSVImportDlg::createPage2() vbox->addLayout( grid ); vbox->addItem( spacer1 ); - groupFixed->setColumnLayout(0, Qt::Horizontal ); + groupFixed->setColumnLayout(0, TQt::Horizontal ); groupFixed->layout()->setSpacing( 6 ); groupFixed->layout()->setMargin( 11 ); TQHBoxLayout* groupFixedLayout = new TQHBoxLayout( groupFixed->layout() ); diff --git a/kbarcode/definitiondialog.cpp b/kbarcode/definitiondialog.cpp index f06fe9c..ea9409e 100644 --- a/kbarcode/definitiondialog.cpp +++ b/kbarcode/definitiondialog.cpp @@ -207,7 +207,7 @@ DefinitionDialog::DefinitionDialog( TQWidget* parent, const char* name, bool mo l = new TQLabel( this ); setExtension( l ); - setOrientation(Qt::Vertical ); + setOrientation(TQt::Vertical ); connect( buttonCancel, TQT_SIGNAL( clicked() ), this, TQT_SLOT( reject() ) ); connect( buttonAdd, TQT_SIGNAL( clicked() ), this, TQT_SLOT( add() ) ); diff --git a/kbarcode/documentitem.cpp b/kbarcode/documentitem.cpp index 03f83e8..d98400f 100644 --- a/kbarcode/documentitem.cpp +++ b/kbarcode/documentitem.cpp @@ -67,7 +67,7 @@ void DocumentItem::loadXML (TQDomElement* element) m_rect.setHeight( element->attribute( "height_mm", "-1" ).toInt() ); 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_border = (bool)element->attribute( "line-visible", "1" ).toInt(); m_z = element->attribute( "z", "0" ).toInt(); diff --git a/kbarcode/kbarcode.cpp b/kbarcode/kbarcode.cpp index 2f864d4..64a5f41 100644 --- a/kbarcode/kbarcode.cpp +++ b/kbarcode/kbarcode.cpp @@ -44,7 +44,7 @@ KBarcode::KBarcode( TQWidget *parent, const char *name, WFlags f) DSMainWindow( parent, name, f ) { TQGroupBox* w = new TQGroupBox( this ); - w->setColumnLayout(0, Qt::Vertical ); + w->setColumnLayout(0, TQt::Vertical ); TQVBoxLayout* layout = new TQVBoxLayout( w->layout() ); setCentralWidget( w ); diff --git a/kbarcode/multilineeditdlg.cpp b/kbarcode/multilineeditdlg.cpp index 957a060..491175c 100644 --- a/kbarcode/multilineeditdlg.cpp +++ b/kbarcode/multilineeditdlg.cpp @@ -44,7 +44,7 @@ MultiLineEditor::MultiLineEditor( TokenProvider* token, TQWidget *parent, const //editor->setText( text, "" ); editor->setFocus(); - TQDockArea* area = new TQDockArea( Qt::Horizontal, TQDockArea::Normal, this ); + TQDockArea* area = new TQDockArea( TQt::Horizontal, TQDockArea::Normal, this ); toolBar = new TDEToolBar( area ); tool2Bar = new TDEToolBar( area ); tool3Bar = new TDEToolBar( area ); diff --git a/kbarcode/mycanvasview.cpp b/kbarcode/mycanvasview.cpp index 8657080..9dfdce6 100644 --- a/kbarcode/mycanvasview.cpp +++ b/kbarcode/mycanvasview.cpp @@ -81,8 +81,8 @@ MyCanvasView::MyCanvasView( Definition* d, MyCanvas* c, TQWidget* parent, const m_commov = 0; canv = c; - rulerv = new KRuler( Qt::Vertical, this ); - rulerh = new KRuler( Qt::Horizontal, this ); + rulerv = new KRuler( TQt::Vertical, this ); + rulerh = new KRuler( TQt::Horizontal, this ); if( Measurements::measurementSystem() == Measurements::Metric ) { rulerv->setRulerMetricStyle( KRuler::Millimetres ); rulerh->setRulerMetricStyle( KRuler::Millimetres ); @@ -157,7 +157,7 @@ void MyCanvasView::contentsMouseMoveEvent(TQMouseEvent* e) updateCursor( e->pos() ); // if no mouse button is pressed bail out now - if( !(e->state() & Qt::LeftButton ) ) { + if( !(e->state() & TQt::LeftButton ) ) { (void)updateCursor( e->pos(), true ); return; } @@ -258,13 +258,13 @@ void MyCanvasView::contentsMousePressEvent(TQMouseEvent* e) 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() ); } void MyCanvasView::contentsMouseReleaseEvent(TQMouseEvent* e) { - if( e->button() != Qt::LeftButton || getSelected().isEmpty() ) + if( e->button() != TQt::LeftButton || getSelected().isEmpty() ) return; if( m_commov ) { diff --git a/kbarcode/newlabel.cpp b/kbarcode/newlabel.cpp index ba86bc3..e4f6081 100644 --- a/kbarcode/newlabel.cpp +++ b/kbarcode/newlabel.cpp @@ -54,7 +54,7 @@ NewLabel::NewLabel( TQWidget* parent, const char* name, bool change, WFlags fl TQGroupBox* group1 = new TQGroupBox( this ); group1->setTitle( i18n( "Label" ) ); - group1->setColumnLayout(0, Qt::Vertical ); + group1->setColumnLayout(0, TQt::Vertical ); group1->layout()->setSpacing( 6 ); group1->layout()->setMargin( 11 ); TQGridLayout* group1Layout = new TQGridLayout( group1->layout() ); diff --git a/kbarcode/sqltables.cpp b/kbarcode/sqltables.cpp index 6a10b4a..baae883 100644 --- a/kbarcode/sqltables.cpp +++ b/kbarcode/sqltables.cpp @@ -521,7 +521,7 @@ SqlWidget::SqlWidget( bool showlabel, TQWidget* parent, const char* name ) TQGroupBox* groupDatabase = new TQGroupBox( this ); groupDatabase->setTitle( i18n( "Database Settings" ) ); - groupDatabase->setColumnLayout(0, Qt::Vertical ); + groupDatabase->setColumnLayout(0, TQt::Vertical ); groupDatabase->layout()->setSpacing( 6 ); groupDatabase->layout()->setMargin( 11 ); TQVBoxLayout* groupDatabaseLayout = new TQVBoxLayout( groupDatabase->layout() ); diff --git a/kbarcode/textlineedit.cpp b/kbarcode/textlineedit.cpp index a0c561e..d350112 100644 --- a/kbarcode/textlineedit.cpp +++ b/kbarcode/textlineedit.cpp @@ -41,7 +41,7 @@ TextLineEditor::TextLineEditor( TokenProvider* token, TQWidget *parent, const ch editor->setFocus(); - TQDockArea* area = new TQDockArea( Qt::Horizontal, TQDockArea::Normal, this ); + TQDockArea* area = new TQDockArea( TQt::Horizontal, TQDockArea::Normal, this ); toolBar = new TDEToolBar( area ); tool2Bar = new TDEToolBar( area ); tool3Bar = new TDEToolBar( area ); |