Rename additional members for tqt3

r14.0.x
Timothy Pearson 13 years ago
parent 96bbdf8436
commit 7e63733ce7

@ -229,16 +229,16 @@ bool WebPriceQuote::download(const KURL& u, TQString & target, TQWidget* window)
// The following parts are copied and adjusted from KIO::NetAccess // The following parts are copied and adjusted from KIO::NetAccess
// If a troll sees this, he kills me // If a troll sees this, he kills me
void qt_enter_modal( TQWidget *widget ); void tqt_enter_modal( TQWidget *widget );
void qt_leave_modal( TQWidget *widget ); void tqt_leave_modal( TQWidget *widget );
void WebPriceQuote::enter_loop(void) void WebPriceQuote::enter_loop(void)
{ {
TQWidget dummy(0,0,WType_Dialog | WShowModal); TQWidget dummy(0,0,WType_Dialog | WShowModal);
dummy.setFocusPolicy( TQ_NoFocus ); dummy.setFocusPolicy( TQ_NoFocus );
qt_enter_modal(&dummy); tqt_enter_modal(&dummy);
tqApp->enter_loop(); tqApp->enter_loop();
qt_leave_modal(&dummy); tqt_leave_modal(&dummy);
} }
void WebPriceQuote::slotResult( KIO::Job * job ) void WebPriceQuote::slotResult( KIO::Job * job )

@ -52,12 +52,12 @@ void kMandatoryFieldGroup::add(TQWidget *widget)
{ {
if (!widgets.contains(widget)) { if (!widgets.contains(widget)) {
if (widget->inherits(TQCHECKBOX_OBJECT_NAME_STRING)) if (widget->inherits(TQCHECKBOX_OBJECT_NAME_STRING))
connect((TQCheckBox*)widget->qt_cast(TQCHECKBOX_OBJECT_NAME_STRING), connect((TQCheckBox*)widget->tqt_cast(TQCHECKBOX_OBJECT_NAME_STRING),
TQT_SIGNAL(clicked()), TQT_SIGNAL(clicked()),
this, TQT_SLOT(changed())); this, TQT_SLOT(changed()));
else if (widget->inherits(TQCOMBOBOX_OBJECT_NAME_STRING)) { else if (widget->inherits(TQCOMBOBOX_OBJECT_NAME_STRING)) {
TQComboBox* combo = (TQComboBox*)widget->qt_cast(TQCOMBOBOX_OBJECT_NAME_STRING); TQComboBox* combo = (TQComboBox*)widget->tqt_cast(TQCOMBOBOX_OBJECT_NAME_STRING);
TQLineEdit* lineedit = combo->lineEdit(); TQLineEdit* lineedit = combo->lineEdit();
if(lineedit) { if(lineedit) {
connect(lineedit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(changed())); connect(lineedit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(changed()));
@ -67,17 +67,17 @@ void kMandatoryFieldGroup::add(TQWidget *widget)
} }
else if (widget->inherits(TQLINEEDIT_OBJECT_NAME_STRING)) else if (widget->inherits(TQLINEEDIT_OBJECT_NAME_STRING))
connect((TQLineEdit*)widget->qt_cast(TQLINEEDIT_OBJECT_NAME_STRING), connect((TQLineEdit*)widget->tqt_cast(TQLINEEDIT_OBJECT_NAME_STRING),
TQT_SIGNAL(textChanged(const TQString&)), TQT_SIGNAL(textChanged(const TQString&)),
this, TQT_SLOT(changed())); this, TQT_SLOT(changed()));
else if (widget->inherits(TQSPINBOX_OBJECT_NAME_STRING)) else if (widget->inherits(TQSPINBOX_OBJECT_NAME_STRING))
connect((TQSpinBox*)widget->qt_cast(TQSPINBOX_OBJECT_NAME_STRING), connect((TQSpinBox*)widget->tqt_cast(TQSPINBOX_OBJECT_NAME_STRING),
TQT_SIGNAL(valueChanged(const TQString&)), TQT_SIGNAL(valueChanged(const TQString&)),
this, TQT_SLOT(changed())); this, TQT_SLOT(changed()));
else if (widget->inherits(TQLISTBOX_OBJECT_NAME_STRING)) else if (widget->inherits(TQLISTBOX_OBJECT_NAME_STRING))
connect((TQListBox*)widget->qt_cast(TQLISTBOX_OBJECT_NAME_STRING), connect((TQListBox*)widget->tqt_cast(TQLISTBOX_OBJECT_NAME_STRING),
TQT_SIGNAL(selectionChanged()), TQT_SIGNAL(selectionChanged()),
this, TQT_SLOT(changed())); this, TQT_SLOT(changed()));
@ -122,28 +122,28 @@ void kMandatoryFieldGroup::changed(void)
continue; continue;
} }
if (widget->inherits(TQCHECKBOX_OBJECT_NAME_STRING)) { if (widget->inherits(TQCHECKBOX_OBJECT_NAME_STRING)) {
if (((TQCheckBox*)widget->qt_cast(TQCHECKBOX_OBJECT_NAME_STRING))->state() == TQButton::NoChange) { if (((TQCheckBox*)widget->tqt_cast(TQCHECKBOX_OBJECT_NAME_STRING))->state() == TQButton::NoChange) {
enable = false; enable = false;
break; break;
} else } else
continue; continue;
} }
if (widget->inherits(TQCOMBOBOX_OBJECT_NAME_STRING)) { if (widget->inherits(TQCOMBOBOX_OBJECT_NAME_STRING)) {
if (((TQComboBox*)widget->qt_cast(TQCOMBOBOX_OBJECT_NAME_STRING))->currentText().isEmpty()) { if (((TQComboBox*)widget->tqt_cast(TQCOMBOBOX_OBJECT_NAME_STRING))->currentText().isEmpty()) {
enable = false; enable = false;
break; break;
} else } else
continue; continue;
} }
if (widget->inherits(TQLINEEDIT_OBJECT_NAME_STRING)) { if (widget->inherits(TQLINEEDIT_OBJECT_NAME_STRING)) {
if (((TQLineEdit*)widget->qt_cast(TQLINEEDIT_OBJECT_NAME_STRING))->text().isEmpty()) { if (((TQLineEdit*)widget->tqt_cast(TQLINEEDIT_OBJECT_NAME_STRING))->text().isEmpty()) {
enable = false; enable = false;
break; break;
} else } else
continue; continue;
} }
if (widget->inherits(TQLISTBOX_OBJECT_NAME_STRING)) { if (widget->inherits(TQLISTBOX_OBJECT_NAME_STRING)) {
if (((TQListBox*)widget->qt_cast(TQLISTBOX_OBJECT_NAME_STRING))->selectedItem() == 0) { if (((TQListBox*)widget->tqt_cast(TQLISTBOX_OBJECT_NAME_STRING))->selectedItem() == 0) {
enable = false; enable = false;
break; break;
} else } else

Loading…
Cancel
Save