Drop TQT_BASE_OBJECT* defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/10/head
Michele Calgaro 1 year ago
parent 3dfa327a51
commit 670203a4b3
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -250,7 +250,7 @@ void CBookKeyChooser::setupCombo(const TQString key, const int depth, const int
/** A keychooser changed. Update and emit a signal if necessary. */
void CBookKeyChooser::keyChooserChanged(int /*newIndex*/) {
const int activeID = boxes[TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))]; //no so good code!
const int activeID = boxes[const_cast<TQObject*>(sender())]; //no so good code!
TQStringList items;
CKeyChooserWidget* chooser;

@ -43,7 +43,7 @@ bool CKCComboBox::eventFilter( TQObject *o, TQEvent *e ) {
if (e->type() == TQEvent::FocusOut) {
TQFocusEvent* f = TQT_TQFOCUSEVENT(e);
if (TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(lineEdit()) && f->reason() == TQFocusEvent::Tab) {
if (o == lineEdit() && f->reason() == TQFocusEvent::Tab) {
int index = listBox()->index( listBox()->findItem(currentText()) );
if (index == -1) {
index = 0;// return 0 if not found
@ -64,7 +64,7 @@ bool CKCComboBox::eventFilter( TQObject *o, TQEvent *e ) {
emit activated(currentText());
return false;
}
else if (TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(this)) {
else if (o == this) {
emit activated(currentText());
return false;
}

Loading…
Cancel
Save