Rename obsolete tq methods to standard names

pull/2/head
Timothy Pearson 13 years ago
parent 46d967c53b
commit 970e6dc658

@ -59,9 +59,9 @@ ResolutionDialog::ResolutionDialog( TQWidget* parent, const TQString& caption, s
topLayout->addWidget(textLabel2); topLayout->addWidget(textLabel2);
resolutionGroupBox = new TQGroupBox(i18n("DOC Databases"), page ); resolutionGroupBox = new TQGroupBox(i18n("DOC Databases"), page );
TQVBoxLayout*ptqlayout = new TQVBoxLayout(resolutionGroupBox); TQVBoxLayout*playout = new TQVBoxLayout(resolutionGroupBox);
TQScrollView* sv = new TQScrollView(resolutionGroupBox); TQScrollView* sv = new TQScrollView(resolutionGroupBox);
ptqlayout->addWidget(sv); playout->addWidget(sv);
sv->setResizePolicy(TQScrollView::AutoOneFit); sv->setResizePolicy(TQScrollView::AutoOneFit);
sv->setHScrollBarMode(TQScrollView::AlwaysOff); sv->setHScrollBarMode(TQScrollView::AlwaysOff);
sv->setMargin(5); sv->setMargin(5);

@ -479,7 +479,7 @@ void AddressWidget::slotCreateNewRecord()
KMessageBox::sorry(this, KMessageBox::sorry(this,
i18n("You cannot add addresses to the address book " i18n("You cannot add addresses to the address book "
"until you have done a HotSync at least once " "until you have done a HotSync at least once "
"to retrieve the database tqlayout from your Pilot."), "to retrieve the database layout from your Pilot."),
i18n("Cannot Add New Address")); i18n("Cannot Add New Address"));
if (myDB) if (myDB)

@ -252,7 +252,7 @@ ConduitConfigWidgetBase::ConduitConfigWidgetBase(TQWidget *parent, const char *n
i18n("<qt>This conduit appears to be broken and cannot " i18n("<qt>This conduit appears to be broken and cannot "
"be configured.</qt>")); "be configured.</qt>"));
// Second page, now with tqlayout in a single column // Second page, now with layout in a single column
// //
// Probably deprecated. // Probably deprecated.
// //

@ -141,9 +141,9 @@ void DBRecordEditor::initWidgets()
fFlagsGroup->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, fFlagsGroup->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5,
(TQSizePolicy::SizeType)4, 0, 0, fFlagsGroup->sizePolicy().hasHeightForWidth() ) ); (TQSizePolicy::SizeType)4, 0, 0, fFlagsGroup->sizePolicy().hasHeightForWidth() ) );
fFlagsGroup->setColumnLayout(0, Qt::Vertical ); fFlagsGroup->setColumnLayout(0, Qt::Vertical );
fFlagsGroup->tqlayout()->setSpacing( 6 ); fFlagsGroup->layout()->setSpacing( 6 );
fFlagsGroup->tqlayout()->setMargin( 11 ); fFlagsGroup->layout()->setMargin( 11 );
fFlagsGroupLayout = new TQGridLayout( fFlagsGroup->tqlayout() ); fFlagsGroupLayout = new TQGridLayout( fFlagsGroup->layout() );
fFlagsGroupLayout->setAlignment( TQt::AlignTop ); fFlagsGroupLayout->setAlignment( TQt::AlignTop );
fDirty = new TQCheckBox( fFlagsGroup, "fDirty" ); fDirty = new TQCheckBox( fFlagsGroup, "fDirty" );

@ -214,35 +214,35 @@ bool InternalEditorAction::queryUseKPilotChanges(TQString dbName, recordid_t id,
TQWidget*page=new TQWidget(resdlg); TQWidget*page=new TQWidget(resdlg);
resdlg->setMainWidget(page); resdlg->setMainWidget(page);
TQGridLayout*tqlayout = new TQGridLayout( page, 1, 1); TQGridLayout*layout = new TQGridLayout( page, 1, 1);
TQLabel *label=new TQLabel(dialogText, page); TQLabel *label=new TQLabel(dialogText, page);
label->setAlignment( TQLabel::WordBreak ); label->setAlignment( TQLabel::WordBreak );
tqlayout->addMultiCellWidget( label, 0,0, 0,1 ); layout->addMultiCellWidget( label, 0,0, 0,1 );
tqlayout->addItem( new TQSpacerItem( 20, 10, TQSizePolicy::Minimum, layout->addItem( new TQSpacerItem( 20, 10, TQSizePolicy::Minimum,
TQSizePolicy::Fixed ), 1, 0 ); TQSizePolicy::Fixed ), 1, 0 );
if (knownDB) if (knownDB)
{ {
label=new TQLabel(i18n("Entry in KPilot"), page); label=new TQLabel(i18n("Entry in KPilot"), page);
tqlayout->addWidget( label, 2,0); layout->addWidget( label, 2,0);
KTextEdit*textBrowser = new KTextEdit(CSL1("<qt>")+localEntry+CSL1("</qt>"), TQString(), page); KTextEdit*textBrowser = new KTextEdit(CSL1("<qt>")+localEntry+CSL1("</qt>"), TQString(), page);
textBrowser->setReadOnly(true); textBrowser->setReadOnly(true);
tqlayout->addWidget( textBrowser, 3,0); layout->addWidget( textBrowser, 3,0);
label=new TQLabel(i18n("Entry on Handheld"), page); label=new TQLabel(i18n("Entry on Handheld"), page);
tqlayout->addWidget( label, 2,1); layout->addWidget( label, 2,1);
textBrowser = new KTextEdit(CSL1("<qt>")+serialEntry+CSL1("</qt>"), TQString(), page); textBrowser = new KTextEdit(CSL1("<qt>")+serialEntry+CSL1("</qt>"), TQString(), page);
textBrowser->setReadOnly(true); textBrowser->setReadOnly(true);
tqlayout->addWidget( textBrowser, 3,1); layout->addWidget( textBrowser, 3,1);
} }
else else
{ {
label=new TQLabel(i18n("Entry in KPilot"), page); label=new TQLabel(i18n("Entry in KPilot"), page);
tqlayout->addMultiCellWidget( label, 2,2,0,1); layout->addMultiCellWidget( label, 2,2,0,1);
// directly display the record's data: // directly display the record's data:
TQWidget *hexEdit = KHE::createBytesEditWidget( page, "LocalBufferEdit" ); TQWidget *hexEdit = KHE::createBytesEditWidget( page, "LocalBufferEdit" );
@ -267,10 +267,10 @@ bool InternalEditorAction::queryUseKPilotChanges(TQString dbName, recordid_t id,
tmpW->setFrameShadow( TQFrame::Sunken ); tmpW->setFrameShadow( TQFrame::Sunken );
hexEdit = tmpW; hexEdit = tmpW;
} }
tqlayout->addMultiCellWidget( hexEdit, 3,3,0,1); layout->addMultiCellWidget( hexEdit, 3,3,0,1);
label=new TQLabel(i18n("Entry on Handheld"), page); label=new TQLabel(i18n("Entry on Handheld"), page);
tqlayout->addMultiCellWidget( label, 4,4,0,1); layout->addMultiCellWidget( label, 4,4,0,1);
// directly display the record's data: // directly display the record's data:
hexEdit = KHE::createBytesEditWidget( page, "SerialBufferEdit" ); hexEdit = KHE::createBytesEditWidget( page, "SerialBufferEdit" );
@ -295,7 +295,7 @@ bool InternalEditorAction::queryUseKPilotChanges(TQString dbName, recordid_t id,
tmpW->setFrameShadow( TQFrame::Sunken ); tmpW->setFrameShadow( TQFrame::Sunken );
hexEdit = tmpW; hexEdit = tmpW;
} }
tqlayout->addMultiCellWidget( hexEdit, 5,5,0,1); layout->addMultiCellWidget( hexEdit, 5,5,0,1);
} }
int res=resdlg->exec(); int res=resdlg->exec();

@ -99,7 +99,7 @@ ProbeDialog::ProbeDialog(TQWidget *parent, const char *n) :
fStatusGroup = new TQGroupBox( i18n("Status"), mainWidget, "fStatusGroup" ); fStatusGroup = new TQGroupBox( i18n("Status"), mainWidget, "fStatusGroup" );
fStatusGroup->setColumnLayout(0, Qt::Vertical ); fStatusGroup->setColumnLayout(0, Qt::Vertical );
fStatusGroupLayout = new TQGridLayout( fStatusGroup->tqlayout() ); fStatusGroupLayout = new TQGridLayout( fStatusGroup->layout() );
fStatus = new TQLabel( i18n("Autodetection not yet started..."), fStatusGroup, "fStatus" ); fStatus = new TQLabel( i18n("Autodetection not yet started..."), fStatusGroup, "fStatus" );
fStatus->setAlignment( TQLabel::WordBreak ); fStatus->setAlignment( TQLabel::WordBreak );
@ -113,7 +113,7 @@ ProbeDialog::ProbeDialog(TQWidget *parent, const char *n) :
fResultsGroup = new TQGroupBox( i18n( "Detected Values" ), mainWidget, "fResultsGroup" ); fResultsGroup = new TQGroupBox( i18n( "Detected Values" ), mainWidget, "fResultsGroup" );
fResultsGroup->setEnabled( FALSE ); fResultsGroup->setEnabled( FALSE );
fResultsGroup->setColumnLayout(0, Qt::Vertical ); fResultsGroup->setColumnLayout(0, Qt::Vertical );
fResultsGroupLayout = new TQGridLayout( fResultsGroup->tqlayout() ); fResultsGroupLayout = new TQGridLayout( fResultsGroup->layout() );
fResultsGroupLayout->setAlignment( TQt::AlignTop ); fResultsGroupLayout->setAlignment( TQt::AlignTop );
fUserLabel = new TQLabel( i18n( "Handheld user:" ), fResultsGroup, "fUserLabel" ); fUserLabel = new TQLabel( i18n( "Handheld user:" ), fResultsGroup, "fUserLabel" );

@ -407,7 +407,7 @@ void TodoWidget::slotCreateNewRecord()
KMessageBox::sorry(this, KMessageBox::sorry(this,
i18n("You cannot add to-dos to the to-do list " i18n("You cannot add to-dos to the to-do list "
"until you have done a HotSync at least once " "until you have done a HotSync at least once "
"to retrieve the database tqlayout from your Pilot."), "to retrieve the database layout from your Pilot."),
i18n("Cannot Add New To-do")); i18n("Cannot Add New To-do"));
if (myDB) if (myDB)

@ -155,7 +155,7 @@ KDE_EXPORT struct tm writeTm(const TQDateTime &dt);
KDE_EXPORT struct tm writeTm(const TQDate &dt); KDE_EXPORT struct tm writeTm(const TQDate &dt);
// Some tqlayout macros // Some layout macros
// //
// SPACING is a generic distance between visual elements; // SPACING is a generic distance between visual elements;
// 10 seems reasonably good even at high resolutions. // 10 seems reasonably good even at high resolutions.

@ -314,7 +314,7 @@ public:
protected: protected:
// Get the pointers in cases where no conversion to // Get the pointers in cases where no conversion to
// tqunicode is desired. // unicode is desired.
// //
const char *getFieldP(int field) const const char *getFieldP(int field) const
{ {

@ -70,8 +70,8 @@ namespace Pilot
* NB. The reason that this is a TQObject which needs to create a * NB. The reason that this is a TQObject which needs to create a
* separate widget - instead of a TQWidget subclass - has to do with * separate widget - instead of a TQWidget subclass - has to do with
* layouting. If you make the widget with designer then the easiest * layouting. If you make the widget with designer then the easiest
* thing to do is to use a grid tqlayout there. Making ConduitConfigBase * thing to do is to use a grid layout there. Making ConduitConfigBase
* a TQWidget subclass would require an additional tqlayout here, which * a TQWidget subclass would require an additional layout here, which
* seems a little foolish. * seems a little foolish.
* *
*/ */

Loading…
Cancel
Save