rename the following methods:

tqparent parent
tqmask mask


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kbarcode@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 12 years ago
parent 33038ab0e8
commit e295fa9ed9

@ -12,10 +12,10 @@
K_EXPORT_COMPONENT_FACTORY(kfile_kbarcode, KGenericFactory<KBarcodePlugin>( "kfile_kbarcode" ));
KBarcodePlugin::KBarcodePlugin(TQObject *tqparent, const char *name,
KBarcodePlugin::KBarcodePlugin(TQObject *parent, const char *name,
const TQStringList &args)
: KFilePlugin(tqparent, name, args)
: KFilePlugin(parent, name, args)
{
KFileMimeTypeInfo* info = addMimeTypeInfo( "application/kbarcode-label" );

@ -15,7 +15,7 @@ class KBarcodePlugin: public KFilePlugin
TQ_OBJECT
public:
KBarcodePlugin( TQObject *tqparent, const char *name, const TQStringList& args );
KBarcodePlugin( TQObject *parent, const char *name, const TQStringList& args );
virtual bool readInfo( KFileMetaInfo& info, uint );
};

@ -37,8 +37,8 @@
#include <klocale.h>
#include <kpushbutton.h>
BarcodeValidator::BarcodeValidator( TQObject* tqparent, const char* name )
: TQValidator( tqparent, name )
BarcodeValidator::BarcodeValidator( TQObject* parent, const char* name )
: TQValidator( parent, name )
{
m_valid = NULL;
m_notValid = NULL;
@ -84,8 +84,8 @@ TQValidator::State BarcodeValidator::validate( TQString & input, int & pos ) con
return Acceptable;
}
BarcodeCombo::BarcodeCombo(TQWidget *tqparent, const char *name )
: KComboBox( false, tqparent, name )
BarcodeCombo::BarcodeCombo(TQWidget *parent, const char *name )
: KComboBox( false, parent, name )
{
this->insertStringList( *Barkode::encodingTypes() );
@ -111,8 +111,8 @@ void BarcodeCombo::setEncodingType( const TQString & type )
}
}
BarcodeWidget::BarcodeWidget(TQWidget *tqparent, const char *name )
: TQWidget( tqparent, name ), m_validator( TQT_TQOBJECT(this) )
BarcodeWidget::BarcodeWidget(TQWidget *parent, const char *name )
: TQWidget( parent, name ), m_validator( TQT_TQOBJECT(this) )
{
m_token = NULL;

@ -29,7 +29,7 @@
*/
class BarcodeValidator : public TQValidator {
public:
BarcodeValidator( TQObject* tqparent = 0, const char* name = 0 );
BarcodeValidator( TQObject* parent = 0, const char* name = 0 );
TQValidator::State validate( TQString & input, int & pos ) const;
@ -57,7 +57,7 @@ class BarcodeCombo : public KComboBox {
Q_OBJECT
TQ_OBJECT
public:
BarcodeCombo(TQWidget *tqparent=0, const char *name=0);
BarcodeCombo(TQWidget *parent=0, const char *name=0);
~BarcodeCombo();
const char* getEncodingType();
@ -83,7 +83,7 @@ class BarcodeWidget : public TQWidget {
Q_OBJECT
TQ_OBJECT
public:
BarcodeWidget(TQWidget *tqparent=0, const char *name=0);
BarcodeWidget(TQWidget *parent=0, const char *name=0);
~BarcodeWidget() { }
void getData( Barkode & barkode );

@ -40,8 +40,8 @@
#include <tqpaintdevicemetrics.h>
#include <tqpicture.h>
BarCodeDialog::BarCodeDialog( TQWidget* tqparent, const char* name )
: TQDialog( tqparent, name, false)
BarCodeDialog::BarCodeDialog( TQWidget* parent, const char* name )
: TQDialog( parent, name, false)
{
setCaption( i18n( "Barcode Generator" ) );

@ -51,7 +51,7 @@ class BarCodeDialog : public TQDialog
TQ_OBJECT
public:
BarCodeDialog( TQWidget* tqparent = 0, const char* name = 0 );
BarCodeDialog( TQWidget* parent = 0, const char* name = 0 );
~BarCodeDialog();
private:

@ -39,9 +39,9 @@
#include <kcolorbutton.h>
AdvancedBarcodeDialog::AdvancedBarcodeDialog( TQString type, TQWidget* tqparent, const char* name )
AdvancedBarcodeDialog::AdvancedBarcodeDialog( TQString type, TQWidget* parent, const char* name )
: KDialogBase( KDialogBase::Tabbed, i18n("Barcode Settings"),
KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, tqparent,name)
KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, parent,name)
{
list.setAutoDelete( false );
@ -100,8 +100,8 @@ void AdvancedBarcodeDialog::getData( Barkode* b )
}
}
TBarcodeDlg::TBarcodeDlg(TQWidget *tqparent, const char *name )
: TQWidget( tqparent, name )
TBarcodeDlg::TBarcodeDlg(TQWidget *parent, const char *name )
: TQWidget( parent, name )
{
TQVBoxLayout* tqlayout = new TQVBoxLayout( this, 6, 6 );
@ -250,8 +250,8 @@ void TBarcodeDlg::getData( Barkode* b ) const
}
}
PDF417BarcodeDlg::PDF417BarcodeDlg(TQWidget *tqparent, const char *name )
: TQWidget( tqparent, name )
PDF417BarcodeDlg::PDF417BarcodeDlg(TQWidget *parent, const char *name )
: TQWidget( parent, name )
{
TQVBoxLayout* tqlayout = new TQVBoxLayout( this, 6, 6 );
@ -304,8 +304,8 @@ void PDF417BarcodeDlg::getData( Barkode* b ) const
}
}
DataMatrixDlg::DataMatrixDlg(TQWidget *tqparent, const char *name )
: TQWidget( tqparent, name )
DataMatrixDlg::DataMatrixDlg(TQWidget *parent, const char *name )
: TQWidget( parent, name )
{
TQHBoxLayout* datamLayout = new TQHBoxLayout( this, 6, 6 );
@ -358,8 +358,8 @@ void DataMatrixDlg::getData( Barkode* b ) const
b->setDatamatrixSize( comboDataMatrix->currentItem() );
}
SequenceDlg::SequenceDlg( TQWidget *tqparent, const char *name )
: TQWidget( tqparent, name )
SequenceDlg::SequenceDlg( TQWidget *parent, const char *name )
: TQWidget( parent, name )
{
TQVBoxLayout* main = new TQVBoxLayout( this, 6, 6 );
@ -438,8 +438,8 @@ void SequenceDlg::enableControls()
spinStart->setEnabled( checkSequence->isChecked() && radioNumbers->isChecked() );
}
ColorDlg::ColorDlg(TQWidget *tqparent, const char *name)
: TQVBox( tqparent, name )
ColorDlg::ColorDlg(TQWidget *parent, const char *name)
: TQVBox( parent, name )
{
TQGroupBox* gb = new TQGroupBox( i18n("Colors"), this );
gb->setColumnLayout(0, Qt::Vertical );
@ -474,8 +474,8 @@ void ColorDlg::getData( Barkode* b ) const
b->setTextColor( buttonTextColor->color() );
}
PurePostscriptDlg::PurePostscriptDlg(TQWidget *tqparent, const char *name)
: TQVBox( tqparent, name )
PurePostscriptDlg::PurePostscriptDlg(TQWidget *parent, const char *name)
: TQVBox( parent, name )
{
TQVGroupBox* gb = new TQVGroupBox( i18n("Barcode Writer in Pure Postscript"), this );
gb->setEnabled( Barkode::havePurePostscriptBarcode() );

@ -58,7 +58,7 @@ class AdvancedBarcodeDialog : public KDialogBase {
Q_OBJECT
TQ_OBJECT
public:
AdvancedBarcodeDialog( TQString type, TQWidget* tqparent = 0, const char* name = 0 );
AdvancedBarcodeDialog( TQString type, TQWidget* parent = 0, const char* name = 0 );
~AdvancedBarcodeDialog();
void setData( Barkode* b );
@ -75,7 +75,7 @@ class TBarcodeDlg : public TQWidget, public BarcodeDlgBase {
Q_OBJECT
TQ_OBJECT
public:
TBarcodeDlg(TQWidget *tqparent=0, const char *name=0);
TBarcodeDlg(TQWidget *parent=0, const char *name=0);
void setData( Barkode* b );
void getData( Barkode* b ) const;
@ -98,7 +98,7 @@ class PDF417BarcodeDlg : public TQWidget, public BarcodeDlgBase {
Q_OBJECT
TQ_OBJECT
public:
PDF417BarcodeDlg(TQWidget *tqparent=0, const char *name=0);
PDF417BarcodeDlg(TQWidget *parent=0, const char *name=0);
void setData( Barkode* b );
void getData( Barkode* b ) const;
@ -116,7 +116,7 @@ class DataMatrixDlg : public TQWidget, public BarcodeDlgBase {
Q_OBJECT
TQ_OBJECT
public:
DataMatrixDlg(TQWidget *tqparent=0, const char *name=0);
DataMatrixDlg(TQWidget *parent=0, const char *name=0);
void setData( Barkode* b );
void getData( Barkode* b ) const;
@ -132,7 +132,7 @@ class SequenceDlg : public TQWidget, public BarcodeDlgBase {
Q_OBJECT
TQ_OBJECT
public:
SequenceDlg(TQWidget *tqparent=0, const char *name=0);
SequenceDlg(TQWidget *parent=0, const char *name=0);
void setData( Barkode* b );
void getData( Barkode* b ) const;
@ -157,7 +157,7 @@ class ColorDlg : public TQVBox, public BarcodeDlgBase {
Q_OBJECT
TQ_OBJECT
public:
ColorDlg(TQWidget *tqparent=0, const char *name=0);
ColorDlg(TQWidget *parent=0, const char *name=0);
void setData( Barkode* b );
void getData( Barkode* b ) const;
@ -175,7 +175,7 @@ class PurePostscriptDlg : public TQVBox, public BarcodeDlgBase {
Q_OBJECT
TQ_OBJECT
public:
PurePostscriptDlg(TQWidget *tqparent=0, const char *name=0);
PurePostscriptDlg(TQWidget *parent=0, const char *name=0);
void setData( Barkode* b );
void getData( Barkode* b ) const;

@ -27,9 +27,9 @@
#include <tqlayout.h>
#include <tqvbuttongroup.h>
BarcodePrinterDlg::BarcodePrinterDlg(TQWidget *tqparent, const char *name)
BarcodePrinterDlg::BarcodePrinterDlg(TQWidget *parent, const char *name)
: KDialogBase( KDialogBase::Plain, i18n("Barcode Printer"),
KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, tqparent,name)
KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, parent,name)
{
TQGridLayout* tqlayout = new TQGridLayout( plainPage(), 6, 6 );

@ -32,7 +32,7 @@ class BarcodePrinterDlg : public KDialogBase
Q_OBJECT
TQ_OBJECT
public:
BarcodePrinterDlg(TQWidget *tqparent = 0, const char *name = 0);
BarcodePrinterDlg(TQWidget *parent = 0, const char *name = 0);
~BarcodePrinterDlg();
int outputFormat() const;

@ -47,7 +47,7 @@
#define MAXDATASIZE 32550
BatchPrinter::BatchPrinter( KPrinter* p, TQWidget* _parent )
: printer( p ), tqparent( _parent )
: printer( p ), parent( _parent )
{
m_events = true;
m_data = NULL;
@ -60,7 +60,7 @@ BatchPrinter::BatchPrinter( KPrinter* p, TQWidget* _parent )
}
BatchPrinter::BatchPrinter( const TQString & path, TQWidget* p )
: m_path( path ), tqparent( p )
: m_path( path ), parent( p )
{
m_data = NULL;
m_vardata = NULL;
@ -74,7 +74,7 @@ BatchPrinter::BatchPrinter( const TQString & path, TQWidget* p )
}
BatchPrinter::BatchPrinter( const TQString & path, int format, TQWidget* _parent )
: m_path( path ), m_bcp_format( format ), tqparent( _parent )
: m_path( path ), m_bcp_format( format ), parent( _parent )
{
m_data = NULL;
m_vardata = NULL;
@ -278,7 +278,7 @@ void BatchPrinter::startImages()
Measurements measure = def->getMeasurements();
Label* l = NULL;
painter = new TQPainter();
TQPixmap pixmap( (int)measure.width( TQT_TQPAINTDEVICE(tqparent) ), (int)measure.height( TQT_TQPAINTDEVICE(tqparent) ) );
TQPixmap pixmap( (int)measure.width( TQT_TQPAINTDEVICE(parent) ), (int)measure.height( TQT_TQPAINTDEVICE(parent) ) );
while( (l = initLabel( &number ) ) != NULL )
{
for( int i = 0; i < number; i++ )
@ -334,7 +334,7 @@ void BatchPrinter::startBCP()
TQFile file( m_path );
if( !file.open( IO_WriteOnly ) ) // | IO_Raw ) )
{
KMessageBox::error( tqparent, TQString( i18n("<qt>Can't open the file or device <b>%1</b></qt>.") ).tqarg( m_path ) );
KMessageBox::error( parent, TQString( i18n("<qt>Can't open the file or device <b>%1</b></qt>.") ).tqarg( m_path ) );
return;
}
@ -502,7 +502,7 @@ void BatchPrinter::moveLabels()
TQProgressDialog* BatchPrinter::createProgressDialog( const TQString & caption )
{
TQProgressDialog* progress = new TQProgressDialog( caption, i18n("&Cancel"), m_labels+1, tqparent );
TQProgressDialog* progress = new TQProgressDialog( caption, i18n("&Cancel"), m_labels+1, parent );
progress->setProgress( 0 );
progress->show();
return progress;

@ -204,9 +204,9 @@ class BatchPrinter
TQBuffer* buffer;
KPrinter* printer;
TQPainter* painter;
/** tqparent for dialogs
/** parent for dialogs
*/
TQWidget* tqparent;
TQWidget* parent;
};
#endif

@ -68,8 +68,8 @@
class AddressListViewItem : public KListViewItem {
public:
AddressListViewItem(TQListView *tqparent, KABC::Addressee & addr )
: KListViewItem( tqparent ), m_address( addr )
AddressListViewItem(TQListView *parent, KABC::Addressee & addr )
: KListViewItem( parent ), m_address( addr )
{
this->setText( 0, m_address.givenName() );
this->setText( 1, m_address.familyName() );
@ -85,9 +85,9 @@ private:
};
BatchWizard::BatchWizard( TQWidget* tqparent, const char* name )
BatchWizard::BatchWizard( TQWidget* parent, const char* name )
: DCOPObject("BatchPrinting"),
KWizard( tqparent, name )
KWizard( parent, name )
{
setupPage1();
setupPage2();

@ -45,7 +45,7 @@ class BatchWizard : public KWizard, public BatchIface {
Q_OBJECT
TQ_OBJECT
public:
BatchWizard( TQWidget* tqparent = NULL, const char* name = NULL );
BatchWizard( TQWidget* parent = NULL, const char* name = NULL );
~BatchWizard();
/** reimplemented DCOP method from BatchIface

@ -46,9 +46,9 @@
const TQString cached = I18N_NOOP("There are currently %1 cached barcodes.");
using namespace KABC;
ConfigDialog::ConfigDialog( TQWidget* tqparent )
ConfigDialog::ConfigDialog( TQWidget* parent )
: KDialogBase( IconList, i18n("Configure KBarcode"), KDialogBase::Ok|KDialogBase::Cancel,
KDialogBase::Ok, tqparent, "", true, true )
KDialogBase::Ok, parent, "", true, true )
{
setupTab2(); // Printer
setupTab1(); // SQL

@ -41,7 +41,7 @@ class ConfigDialog : public KDialogBase {
Q_OBJECT
TQ_OBJECT
public:
ConfigDialog( TQWidget* tqparent );
ConfigDialog( TQWidget* parent );
~ConfigDialog();
KLineEdit* comment;

@ -53,8 +53,8 @@ const char* description = I18N_NOOP(
"replacement for the creation of barcodes. All major types of barcodes "
"like EAN, UPC, CODE39 and ISBN are supported." );
ConfWizard::ConfWizard( TQWidget* tqparent, const char* name, bool modal )
: KWizard( tqparent, name, modal )
ConfWizard::ConfWizard( TQWidget* parent, const char* name, bool modal )
: KWizard( parent, name, modal )
{
setCaption( i18n( "Configure KBarcode" ) );

@ -41,7 +41,7 @@ class ConfWizard : public KWizard
TQ_OBJECT
public:
ConfWizard( TQWidget* tqparent = 0, const char* name = 0, bool modal = true );
ConfWizard( TQWidget* parent = 0, const char* name = 0, bool modal = true );
~ConfWizard();
void showPage( TQWidget* page );

@ -54,9 +54,9 @@ extern TQString removeQuote( TQString text, TQString quote );
const char* NOFIELD = "<NONE>";
CSVImportDlg::CSVImportDlg(TQWidget *tqparent, const char *name )
CSVImportDlg::CSVImportDlg(TQWidget *parent, const char *name )
: KDialogBase( KDialogBase::Tabbed, i18n("Import"),
KDialogBase::Ok | KDialogBase::Close, KDialogBase::Ok, tqparent,name,false,true)
KDialogBase::Ok | KDialogBase::Close, KDialogBase::Ok, parent,name,false,true)
{
setButtonOKText( i18n("&Import"), i18n("Import the selected file into your tables.") );

@ -48,7 +48,7 @@ class CSVImportDlg : public KDialogBase {
Q_OBJECT
TQ_OBJECT
public:
CSVImportDlg(TQWidget *tqparent=0, const char *name=0);
CSVImportDlg(TQWidget *parent=0, const char *name=0);
~CSVImportDlg();
private slots:

@ -35,8 +35,8 @@
#define CUR_TABLE_ID 6666
DatabaseBrowser::DatabaseBrowser( TQString _database, TQWidget *tqparent, const char *name )
: DSMainWindow(tqparent,name)
DatabaseBrowser::DatabaseBrowser( TQString _database, TQWidget *parent, const char *name )
: DSMainWindow(parent,name)
{
m_direction = m_case = false;

@ -34,7 +34,7 @@ class DatabaseBrowser : public DSMainWindow{
Q_OBJECT
TQ_OBJECT
public:
DatabaseBrowser( TQString _database, TQWidget *tqparent=0, const char *name=0);
DatabaseBrowser( TQString _database, TQWidget *parent=0, const char *name=0);
~DatabaseBrowser();
private:

@ -127,26 +127,26 @@ TQString PrivateParser::removeQuote( const TQString & q )
/***************************************************************************/
Definition::Definition( TQWidget* tqparent )
: m_parent( tqparent )
Definition::Definition( TQWidget* parent )
: m_parent( parent )
{
id = -1;
}
Definition::Definition( int label_def_id, TQWidget* tqparent )
: m_parent( tqparent )
Definition::Definition( int label_def_id, TQWidget* parent )
: m_parent( parent )
{
init( TQString("%1").tqarg( label_def_id ) );
}
Definition::Definition( const TQString & label_def_id, TQWidget* tqparent )
: m_parent( tqparent )
Definition::Definition( const TQString & label_def_id, TQWidget* parent )
: m_parent( parent )
{
init( label_def_id );
}
Definition::Definition( const TQString & producer, const TQString & type, TQWidget* tqparent )
: m_parent( tqparent )
Definition::Definition( const TQString & producer, const TQString & type, TQWidget* parent )
: m_parent( parent )
{
if( SqlTables::isConnected() ) {
TQSqlQuery query(

@ -46,10 +46,10 @@ class TQProgressDialog;
*/
class Definition : private LabelUtils {
public:
Definition( TQWidget* tqparent = 0 );
Definition( int label_def_id, TQWidget* tqparent = 0 );
Definition( const TQString & label_def_id, TQWidget* tqparent = 0 );
Definition( const TQString & producer, const TQString & type, TQWidget* tqparent = 0 );
Definition( TQWidget* parent = 0 );
Definition( int label_def_id, TQWidget* parent = 0 );
Definition( const TQString & label_def_id, TQWidget* parent = 0 );
Definition( const TQString & producer, const TQString & type, TQWidget* parent = 0 );
~Definition();
void setId( const TQString & label_def_id );

@ -30,8 +30,8 @@
// KDE includes
#include <klocale.h>
LabelPreview::LabelPreview( TQWidget* tqparent, const char* name )
: TQWidget( tqparent, name)
LabelPreview::LabelPreview( TQWidget* parent, const char* name )
: TQWidget( parent, name)
{
// For old DIN A4 preview
PrinterSettings* ps = PrinterSettings::getInstance();
@ -75,8 +75,8 @@ void LabelPreview::paintEvent( TQPaintEvent* )
}
/*****************************************/
DefinitionDialog::DefinitionDialog( TQWidget* tqparent, const char* name, bool modal, WFlags fl )
: TQDialog( tqparent, name, modal, fl )
DefinitionDialog::DefinitionDialog( TQWidget* parent, const char* name, bool modal, WFlags fl )
: TQDialog( parent, name, modal, fl )
{
resize( 465, 345 );
setCaption( i18n( "Add Label Definition" ) );

@ -23,7 +23,7 @@ class LabelPreview : public TQWidget {
Q_OBJECT
TQ_OBJECT
public:
LabelPreview( TQWidget* tqparent = 0, const char* name = 0 );
LabelPreview( TQWidget* parent = 0, const char* name = 0 );
~LabelPreview();
void setRect( TQRect label ) { size = label; }
@ -48,7 +48,7 @@ class DefinitionDialog : public TQDialog
TQ_OBJECT
public:
DefinitionDialog( TQWidget* tqparent = 0, const char* name = 0, bool modal = true, WFlags fl = 0 );
DefinitionDialog( TQWidget* parent = 0, const char* name = 0, bool modal = true, WFlags fl = 0 );
~DefinitionDialog();
private:
const Measurements getCurrentMeasure();

@ -23,9 +23,9 @@
#include <kcommand.h>
#include <klocale.h>
DocumentItemDlg::DocumentItemDlg( TokenProvider* token, DocumentItem* item, KCommandHistory* history, TQWidget* tqparent )
DocumentItemDlg::DocumentItemDlg( TokenProvider* token, DocumentItem* item, KCommandHistory* history, TQWidget* parent )
: KDialogBase( Tabbed, i18n("Properties"), KDialogBase::Ok|KDialogBase::Cancel,
KDialogBase::Ok, tqparent, 0, true, true )
KDialogBase::Ok, parent, 0, true, true )
{
m_item = item;
m_history = history;

@ -30,7 +30,7 @@ class DocumentItemDlg : public KDialogBase
Q_OBJECT
TQ_OBJECT
public:
DocumentItemDlg( TokenProvider* token, DocumentItem* item, KCommandHistory* history, TQWidget* tqparent );
DocumentItemDlg( TokenProvider* token, DocumentItem* item, KCommandHistory* history, TQWidget* parent );
~DocumentItemDlg();
void addPage( PropertyWidget* widget );

@ -43,8 +43,8 @@
bool DSMainWindow::autoconnect = true;
bool DSMainWindow::startwizard = true;
DSMainWindow::DSMainWindow(TQWidget *tqparent, const char *name, WFlags f)
: KMainWindow(tqparent,name,f)
DSMainWindow::DSMainWindow(TQWidget *parent, const char *name, WFlags f)
: KMainWindow(parent,name,f)
{
connectAct = 0;
first = false;

@ -34,7 +34,7 @@ class DSMainWindow : public KMainWindow {
Q_OBJECT
TQ_OBJECT
public:
DSMainWindow(TQWidget *tqparent=0, const char *name=0, WFlags f = WType_TopLevel | WDestructiveClose );
DSMainWindow(TQWidget *parent=0, const char *name=0, WFlags f = WType_TopLevel | WDestructiveClose );
~DSMainWindow();
/** Is this the first start of KBarcode ?

@ -19,8 +19,8 @@
#include "dstextedit.moc"
#include <tqregexp.h>
DSTextEdit::DSTextEdit( TQWidget* tqparent, const char* name )
: TextEditBase( tqparent, name )
DSTextEdit::DSTextEdit( TQWidget* parent, const char* name )
: TextEditBase( parent, name )
{
connect( this, TQT_SIGNAL( textChanged() ), this, TQT_SLOT( fixParagraphs() ) );
}

@ -30,7 +30,7 @@ class DSTextEdit : public TextEditBase {
TQ_OBJECT
public:
DSTextEdit( TQWidget* tqparent, const char* name = 0 );
DSTextEdit( TQWidget* parent, const char* name = 0 );
//virtual void moveCursor( CursorAction action, bool select );
private slots:

@ -22,8 +22,8 @@
#include <klocale.h>
#include <tqtextcodec.h>
EncodingCombo::EncodingCombo( TQWidget* tqparent )
: KComboBox( tqparent )
EncodingCombo::EncodingCombo( TQWidget* parent )
: KComboBox( parent )
{
TQString sEncoding = TQString( KGlobal::locale()->encoding() );
TQStringList encodings (KGlobal::charsets()->availableEncodingNames());

@ -24,7 +24,7 @@ class EncodingCombo : public KComboBox {
Q_OBJECT
TQ_OBJECT
public:
EncodingCombo( TQWidget* tqparent );
EncodingCombo( TQWidget* parent );
~EncodingCombo();

@ -37,8 +37,8 @@
class KListViewActionItem : public KListViewItem {
public:
KListViewActionItem( KListView* tqparent, KAction* action )
: KListViewItem( tqparent ), m_action( action )
KListViewActionItem( KListView* parent, KAction* action )
: KListViewItem( parent ), m_action( action )
{
TQPixmap pix;
TQSize size = TQIconSet::iconSize( TQIconSet::Large );
@ -87,8 +87,8 @@ private:
KAction* m_action;
};
KActionMapDlg::KActionMapDlg( KActionCollection* actions, TQWidget* tqparent, const char* name )
: KDialogBase( tqparent, name, false, i18n("Action Map"), KDialogBase::Close, KDialogBase::Close )
KActionMapDlg::KActionMapDlg( KActionCollection* actions, TQWidget* parent, const char* name )
: KDialogBase( parent, name, false, i18n("Action Map"), KDialogBase::Close, KDialogBase::Close )
{
TQVBox *page = makeVBoxMainWidget();
@ -103,8 +103,8 @@ void KActionMapDlg::updateEnabledState()
m_map->updateEnabledState();
}
KActionMap::KActionMap( KActionCollection* actions, TQWidget* tqparent, const char* name )
: TQWidget( tqparent, name ), m_actions( actions ), m_showMenuTree( true ), m_grayOutItems( false )
KActionMap::KActionMap( KActionCollection* actions, TQWidget* parent, const char* name )
: TQWidget( parent, name ), m_actions( actions ), m_showMenuTree( true ), m_grayOutItems( false )
{
TQVBoxLayout* tqlayout = new TQVBoxLayout( this );

@ -34,7 +34,7 @@ class TQListViewItem;
*/
class KActionMapDlg : public KDialogBase {
public:
KActionMapDlg( KActionCollection* actions, TQWidget* tqparent = NULL, const char* name = NULL );
KActionMapDlg( KActionCollection* actions, TQWidget* parent = NULL, const char* name = NULL );
/** Call this function whenever you changed the enabled/disalbed state of an action
* in your application.
@ -72,10 +72,10 @@ class KActionMap : public TQWidget {
public:
/** Creates a new KActionMap widget
* @param action all actions from this KActionCollection are displayed.
* @param tqparent the tqparent
* @param parent the parent
* @param name the name
*/
KActionMap( KActionCollection* actions, TQWidget* tqparent = NULL, const char* name = NULL );
KActionMap( KActionCollection* actions, TQWidget* parent = NULL, const char* name = NULL );
~KActionMap();
public slots:

@ -39,9 +39,9 @@
#include <kpushbutton.h>
#include <kmessagebox.h>
KBarcode::KBarcode( TQWidget *tqparent, const char *name, WFlags f)
KBarcode::KBarcode( TQWidget *parent, const char *name, WFlags f)
: DCOPObject("KBarcode"),
DSMainWindow( tqparent, name, f )
DSMainWindow( parent, name, f )
{
TQGroupBox* w = new TQGroupBox( this );
w->setColumnLayout(0, Qt::Vertical );

@ -46,7 +46,7 @@ class KBarcode: public DSMainWindow, public KBarcodeIface {
Q_OBJECT
TQ_OBJECT
public:
KBarcode( TQWidget *tqparent=0, const char *name="kbarcode", WFlags f = WType_TopLevel | WDestructiveClose );
KBarcode( TQWidget *parent=0, const char *name="kbarcode", WFlags f = WType_TopLevel | WDestructiveClose );
~KBarcode();
/** Parse all commandline options and start batchprinting

@ -121,9 +121,9 @@
using namespace KABC;
LabelEditor::LabelEditor( TQWidget *tqparent, TQString _filename, const char *name, WFlags f )
LabelEditor::LabelEditor( TQWidget *parent, TQString _filename, const char *name, WFlags f )
: DCOPObject( "LabelEditor" ),
DSMainWindow( tqparent, name, f )
DSMainWindow( parent, name, f )
{
undoAct =
redoAct = NULL;

@ -88,7 +88,7 @@ class LabelEditor : public DSMainWindow, public EditorIface, private LabelUtils,
eLoadLabel
};
LabelEditor( TQWidget *tqparent=0, TQString _filename = TQString(),
LabelEditor( TQWidget *parent=0, TQString _filename = TQString(),
const char *name="labeleditor", WFlags f = WType_TopLevel | WDestructiveClose );
~LabelEditor();
bool startupDlg( ELabelEditorMode mode, TQString f = TQString() );

@ -33,8 +33,8 @@
#include <tqdockarea.h>
#include <tqregexp.h>
MultiLineEditor::MultiLineEditor( TokenProvider* token, TQWidget *tqparent, const char *name )
: TQWidget( tqparent, name ), m_token( token )
MultiLineEditor::MultiLineEditor( TokenProvider* token, TQWidget *parent, const char *name )
: TQWidget( parent, name ), m_token( token )
{
TQVBoxLayout* tqlayout = new TQVBoxLayout( this, 6, 6 );

@ -35,7 +35,7 @@ class MultiLineEditor : public TQWidget {
Q_OBJECT
TQ_OBJECT
public:
MultiLineEditor( TokenProvider* token, TQWidget *tqparent=0, const char *name=0);
MultiLineEditor( TokenProvider* token, TQWidget *parent=0, const char *name=0);
~MultiLineEditor();
TQString text();
void setText( const TQString & t );

@ -30,8 +30,8 @@
#include <kruler.h>
#include <kstatusbar.h>
MyCanvas::MyCanvas( TQObject* tqparent, const char* name )
: TQCanvas( tqparent, name )
MyCanvas::MyCanvas( TQObject* parent, const char* name )
: TQCanvas( parent, name )
{
m_grid = false;
@ -74,8 +74,8 @@ void MyCanvas::drawBackground( TQPainter & painter, const TQRect & clip )
}
}
MyCanvasView::MyCanvasView( Definition* d, MyCanvas* c, TQWidget* tqparent, const char* name, WFlags f)
: TQCanvasView(c,tqparent,name,f)
MyCanvasView::MyCanvasView( Definition* d, MyCanvas* c, TQWidget* parent, const char* name, WFlags f)
: TQCanvasView(c,parent,name,f)
{
statusbar = 0;
m_commov = 0;

@ -34,7 +34,7 @@ class MyCanvas : public TQCanvas {
TQ_OBJECT
public:
MyCanvas( TQObject* tqparent, const char* name = 0 );
MyCanvas( TQObject* parent, const char* name = 0 );
~MyCanvas();
void setRect( TQRect r ) {
@ -87,7 +87,7 @@ class MyCanvasView : public TQCanvasView
};
public:
MyCanvasView( Definition* d, MyCanvas *c, TQWidget* tqparent=0, const char* name=0, WFlags f=0);
MyCanvasView( Definition* d, MyCanvas *c, TQWidget* parent=0, const char* name=0, WFlags f=0);
~MyCanvasView();
/** return a list of all DocumentItems on the canvas

@ -17,8 +17,8 @@
#include "mydatatable.h"
MyDataTable::MyDataTable(TQWidget *tqparent, const char *name )
: TQDataTable(tqparent,name)
MyDataTable::MyDataTable(TQWidget *parent, const char *name )
: TQDataTable(parent,name)
{ }
MyDataTable::~MyDataTable()

@ -27,7 +27,7 @@ class MyDataTable : public TQDataTable {
Q_OBJECT
TQ_OBJECT
public:
MyDataTable(TQWidget *tqparent=0, const char *name=0);
MyDataTable(TQWidget *parent=0, const char *name=0);
~MyDataTable();
bool update();

@ -35,8 +35,8 @@
#define I2S(x) TQString("%1").tqarg(x)
#endif // I2S
NewLabel::NewLabel( TQWidget* tqparent, const char* name, bool change, WFlags fl )
: TQDialog( tqparent, name, true, fl )
NewLabel::NewLabel( TQWidget* parent, const char* name, bool change, WFlags fl )
: TQDialog( parent, name, true, fl )
{
setCaption( i18n( "New Label" ) );
curid = 0;

@ -38,7 +38,7 @@ class NewLabel : public TQDialog
Q_OBJECT
TQ_OBJECT
public:
NewLabel( TQWidget* tqparent = 0, const char* name = 0, bool change = FALSE, WFlags fl = 0 );
NewLabel( TQWidget* parent = 0, const char* name = 0, bool change = FALSE, WFlags fl = 0 );
~NewLabel();
int labelId() const { return curid; }

@ -45,8 +45,8 @@ int PreviewDialog::m_index = 1;
TQString PreviewDialog::group = "";
TQString PreviewDialog::article = "";
PreviewDialog::PreviewDialog( TQIODevice* device, Definition* d, TQString filename, TQWidget *tqparent, const char *name )
: TQDialog( tqparent, name, true, WDestructiveClose )
PreviewDialog::PreviewDialog( TQIODevice* device, Definition* d, TQString filename, TQWidget *parent, const char *name )
: TQDialog( parent, name, true, WDestructiveClose )
{
file = device;
def = d;

@ -33,7 +33,7 @@ class PreviewDialog : public TQDialog {
Q_OBJECT
TQ_OBJECT
public:
PreviewDialog( TQIODevice* device, Definition* d, TQString filename, TQWidget *tqparent=0, const char *name=0);
PreviewDialog( TQIODevice* device, Definition* d, TQString filename, TQWidget *parent=0, const char *name=0);
~PreviewDialog();
private slots:

@ -157,7 +157,7 @@ int PrinterSettings::getQuality() const
return lpdata->quality == Middle || lpdata->quality == VeryHigh? High : lpdata->quality;
};
KPrinter* PrinterSettings::setupPrinter( const KURL & url, TQWidget* tqparent, bool immediately, const TQString & prn )
KPrinter* PrinterSettings::setupPrinter( const KURL & url, TQWidget* parent, bool immediately, const TQString & prn )
{
KPrinter* printer = new KPrinter( true, (enum TQPrinter::PrinterMode)getQuality() );
if( getData()->quality == Middle )
@ -167,7 +167,7 @@ KPrinter* PrinterSettings::setupPrinter( const KURL & url, TQWidget* tqparent, b
printer->setFullPage( true ); // don't use build in margin system
if( !immediately && !printer->setup( tqparent ) )
if( !immediately && !printer->setup( parent ) )
return 0;
if( immediately && !prn.isEmpty() )

@ -81,7 +81,7 @@ class PrinterSettings: public TQObject {
static PrinterSettings* getInstance();
// don't forget to delete printer
KPrinter* setupPrinter( const KURL & url, TQWidget* tqparent, bool immediately = false, const TQString & prn = TQString() );
KPrinter* setupPrinter( const KURL & url, TQWidget* parent, bool immediately = false, const TQString & prn = TQString() );
public slots:
void loadConfig();

@ -26,9 +26,9 @@
#include <knuminput.h>
#include <klocale.h>
PrintLabelDlg::PrintLabelDlg(TQWidget *tqparent, const char *name )
PrintLabelDlg::PrintLabelDlg(TQWidget *parent, const char *name )
: KDialogBase( KDialogBase::Plain, i18n("Print"),
KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, tqparent,name)
KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, parent,name)
{
TQVBoxLayout* box = new TQVBoxLayout( plainPage() );

@ -35,7 +35,7 @@ class PrintLabelDlg : public KDialogBase {
Q_OBJECT
TQ_OBJECT
public:
PrintLabelDlg(TQWidget *tqparent=0, const char *name=0);
PrintLabelDlg(TQWidget *parent=0, const char *name=0);
~PrintLabelDlg();
/**

@ -77,14 +77,14 @@ void FillLineCombo( KComboBox* box )
}
}
PropertyWidget::PropertyWidget(TQWidget* tqparent )
: TQWidget( tqparent, 0 )
PropertyWidget::PropertyWidget(TQWidget* parent )
: TQWidget( parent, 0 )
{
grid = new TQGridLayout( this, 2, 2 );
}
PropertyBorder::PropertyBorder( TQWidget* tqparent )
: PropertyWidget( tqparent )
PropertyBorder::PropertyBorder( TQWidget* parent )
: PropertyWidget( parent )
{
checkBorder = new TQCheckBox( this );
checkBorder->setText( i18n("&Border Visible") );
@ -134,8 +134,8 @@ void PropertyBorder::enableControls()
}
PropertyRotation::PropertyRotation( TQWidget* tqparent )
: PropertyWidget( tqparent )
PropertyRotation::PropertyRotation( TQWidget* parent )
: PropertyWidget( parent )
{
TQLabel* label = new TQLabel( i18n("&Rotation:"), this );
comboRotation = new KComboBox( FALSE, this );
@ -182,8 +182,8 @@ void PropertyRotation::initSettings( DocumentItem* item )
comboRotation->setCurrentItem( 3 );
}
PropertyFill::PropertyFill( TQWidget* tqparent )
: PropertyWidget( tqparent )
PropertyFill::PropertyFill( TQWidget* parent )
: PropertyWidget( parent )
{
buttonColor = new KColorButton( this );
@ -205,8 +205,8 @@ void PropertyFill::initSettings( DocumentItem* item )
buttonColor->setColor( rect->color() );
}
PropertyBarcode::PropertyBarcode( TokenProvider* token, TQWidget* tqparent )
: PropertyWidget( tqparent )
PropertyBarcode::PropertyBarcode( TokenProvider* token, TQWidget* parent )
: PropertyWidget( parent )
{
TQLabel* TextLabel1 = new TQLabel( this, "TextLabel1" );
TextLabel1->setText( i18n( "Barcode Settings:" ) );
@ -287,8 +287,8 @@ void PropertyBarcode::initSettings( DocumentItem* item )
changedCombo();
}
PropertyText::PropertyText( TokenProvider* token, TQWidget* tqparent )
: PropertyWidget( tqparent )
PropertyText::PropertyText( TokenProvider* token, TQWidget* parent )
: PropertyWidget( parent )
{
m_editor = new MultiLineEditor( token, this, "m_editor" );
grid->addWidget( m_editor, 0, 0 );
@ -310,8 +310,8 @@ void PropertyText::initSettings( DocumentItem* item )
}
//NY21
PropertyTextLine::PropertyTextLine( TokenProvider* token, TQWidget* tqparent )
: PropertyWidget( tqparent )
PropertyTextLine::PropertyTextLine( TokenProvider* token, TQWidget* parent )
: PropertyWidget( parent )
{
m_editor = new TextLineEditor( token, this );
grid->addWidget( m_editor, 0, 0 );
@ -336,8 +336,8 @@ void PropertyTextLine::initSettings( DocumentItem* item )
}
//NY21
PropertySize::PropertySize( TQWidget* tqparent )
: PropertyWidget( tqparent )
PropertySize::PropertySize( TQWidget* parent )
: PropertyWidget( parent )
{
const double low = -1000.0;
const double max = 1000.0;
@ -460,8 +460,8 @@ void PropertySize::initSettings( DocumentItem* item )
enableControls();
}
PropertyImage::PropertyImage( TokenProvider* token, TQWidget* tqparent )
: PropertyWidget( tqparent ), m_token( token )
PropertyImage::PropertyImage( TokenProvider* token, TQWidget* parent )
: PropertyWidget( parent ), m_token( token )
{
TQLabel* label = new TQLabel( i18n("&Rotation:"), this );
comboRotation = new KComboBox( FALSE, this );
@ -605,8 +605,8 @@ void PropertyImage::slotTokens()
imgExpression->insert( tokendlg.token() );
}
PropertyVisible::PropertyVisible( TQWidget* tqparent )
: PropertyWidget( tqparent )
PropertyVisible::PropertyVisible( TQWidget* parent )
: PropertyWidget( parent )