diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-12 18:42:26 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-14 16:42:21 +0900 |
commit | 246bb9cb6f7a492730ad49bc1ca78e5e8edb6f70 (patch) | |
tree | 681f2a59f4ccedfc7493493f70fb942a113ee938 | |
parent | 7740e2e60ec3dc9bc980af5bbca47aee687a51c3 (diff) | |
download | bibletime-246bb9cb6f7a492730ad49bc1ca78e5e8edb6f70.tar.gz bibletime-246bb9cb6f7a492730ad49bc1ca78e5e8edb6f70.zip |
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 670203a4b39be5066f3aadec4cb6c0b257ab3b52)
-rw-r--r-- | bibletime/frontend/keychooser/cbookkeychooser.cpp | 2 | ||||
-rw-r--r-- | bibletime/frontend/keychooser/ckeychooserwidget.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/bibletime/frontend/keychooser/cbookkeychooser.cpp b/bibletime/frontend/keychooser/cbookkeychooser.cpp index 4e1a6c8..4cc006c 100644 --- a/bibletime/frontend/keychooser/cbookkeychooser.cpp +++ b/bibletime/frontend/keychooser/cbookkeychooser.cpp @@ -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; diff --git a/bibletime/frontend/keychooser/ckeychooserwidget.cpp b/bibletime/frontend/keychooser/ckeychooserwidget.cpp index 8ad137e..a099506 100644 --- a/bibletime/frontend/keychooser/ckeychooserwidget.cpp +++ b/bibletime/frontend/keychooser/ckeychooserwidget.cpp @@ -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; } |