Drop TQT_BASE_OBJECT* defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 074a3e6db6)
r14.1.x
Michele Calgaro 1 year ago
parent 37c2ad0c29
commit 31fba84125
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -378,7 +378,7 @@ Tellico::DetailedEntryItem* DetailedListView::locateItem(Data::EntryPtr entry_)
bool DetailedListView::eventFilter(TQObject* obj_, TQEvent* ev_) {
if(ev_->type() == TQEvent::MouseButtonPress
&& TQT_TQMOUSEEVENT(ev_)->button() == Qt::RightButton
&& TQT_BASE_OBJECT(obj_) == TQT_BASE_OBJECT(header())) {
&& obj_ == header()) {
m_headerMenu->popup(TQT_TQMOUSEEVENT(ev_)->globalPos());
return true;
}

@ -660,7 +660,7 @@ void FetchDialog::slotUPC2ISBN() {
}
bool FetchDialog::eventFilter(TQObject* obj_, TQEvent* ev_) {
if(TQT_BASE_OBJECT(obj_) == TQT_BASE_OBJECT(m_listView->viewport()) && ev_->type() == TQEvent::Resize) {
if(obj_ == m_listView->viewport() && ev_->type() == TQEvent::Resize) {
adjustColumnWidth();
}
return false;

@ -81,7 +81,7 @@ void OverlayWidget::reposition() {
}
bool OverlayWidget::eventFilter(TQObject* object_, TQEvent* event_) {
if(TQT_BASE_OBJECT(object_) == TQT_BASE_OBJECT(m_anchor) && (event_->type() == TQEvent::Move || event_->type() == TQEvent::Resize)) {
if(object_ == m_anchor && (event_->type() == TQEvent::Move || event_->type() == TQEvent::Resize)) {
reposition();
}

@ -227,7 +227,7 @@ void TableFieldWidget::updateFieldHook(Data::FieldPtr, Data::FieldPtr newField_)
bool TableFieldWidget::eventFilter(TQObject* obj_, TQEvent* ev_) {
if(ev_->type() == TQEvent::MouseButtonPress
&& TQT_TQMOUSEEVENT(ev_)->button() == Qt::RightButton) {
if(TQT_BASE_OBJECT(obj_) == TQT_BASE_OBJECT(m_table->horizontalHeader())) {
if(obj_ == m_table->horizontalHeader()) {
TQMouseEvent* ev = TQT_TQMOUSEEVENT(ev_);
// might be scrolled
int pos = ev->x() + m_table->horizontalHeader()->offset();
@ -242,7 +242,7 @@ bool TableFieldWidget::eventFilter(TQObject* obj_, TQEvent* ev_) {
this, TQT_SLOT(slotRenameColumn()));
menu.exec(ev->globalPos());
return true;
} else if(TQT_BASE_OBJECT(obj_) == TQT_BASE_OBJECT(m_table->verticalHeader())) {
} else if(obj_ == m_table->verticalHeader()) {
TQMouseEvent* ev = TQT_TQMOUSEEVENT(ev_);
// might be scrolled
int pos = ev->y() + m_table->verticalHeader()->offset();

@ -191,7 +191,7 @@ bool BibtexExporter::exec() {
}
TQWidget* BibtexExporter::widget(TQWidget* parent_, const char* name_/*=0*/) {
if(m_widget && TQT_BASE_OBJECT(m_widget->parent()) == TQT_BASE_OBJECT(parent_)) {
if(m_widget && m_widget->parent() == parent_) {
return m_widget;
}

@ -99,7 +99,7 @@ bool CSVExporter::exec() {
}
TQWidget* CSVExporter::widget(TQWidget* parent_, const char* name_/*=0*/) {
if(m_widget && TQT_BASE_OBJECT(m_widget->parent()) == TQT_BASE_OBJECT(parent_)) {
if(m_widget && m_widget->parent() == parent_) {
return m_widget;
}

@ -237,7 +237,7 @@ Tellico::Data::CollPtr CSVImporter::collection() {
}
TQWidget* CSVImporter::widget(TQWidget* parent_, const char* name_) {
if(m_widget && TQT_BASE_OBJECT(m_widget->parent()) == TQT_BASE_OBJECT(parent_)) {
if(m_widget && m_widget->parent() == parent_) {
return m_widget;
}

@ -459,7 +459,7 @@ void HTMLExporter::writeImages(Data::CollPtr coll_) {
}
TQWidget* HTMLExporter::widget(TQWidget* parent_, const char* name_/*=0*/) {
if(m_widget && TQT_BASE_OBJECT(m_widget->parent()) == TQT_BASE_OBJECT(parent_)) {
if(m_widget && m_widget->parent() == parent_) {
return m_widget;
}

@ -166,7 +166,7 @@ TQString ONIXExporter::text() {
}
TQWidget* ONIXExporter::widget(TQWidget* parent_, const char* name_/*=0*/) {
if(m_widget && TQT_BASE_OBJECT(m_widget->parent()) == TQT_BASE_OBJECT(parent_)) {
if(m_widget && m_widget->parent() == parent_) {
return m_widget;
}

@ -200,7 +200,7 @@ bool PilotDBExporter::exec() {
}
TQWidget* PilotDBExporter::widget(TQWidget* parent_, const char* name_/*=0*/) {
if(m_widget && TQT_BASE_OBJECT(m_widget->parent()) == TQT_BASE_OBJECT(parent_)) {
if(m_widget && m_widget->parent() == parent_) {
return m_widget;
}

@ -472,7 +472,7 @@ void TellicoXMLExporter::exportBorrowerXML(TQDomDocument& dom_, TQDomElement& pa
}
TQWidget* TellicoXMLExporter::widget(TQWidget* parent_, const char* name_/*=0*/) {
if(m_widget && TQT_BASE_OBJECT(m_widget->parent()) == TQT_BASE_OBJECT(parent_)) {
if(m_widget && m_widget->parent() == parent_) {
return m_widget;
}

@ -64,7 +64,7 @@ bool XSLTExporter::exec() {
}
TQWidget* XSLTExporter::widget(TQWidget* parent_, const char* name_/*=0*/) {
if(m_widget && TQT_BASE_OBJECT(m_widget->parent()) == TQT_BASE_OBJECT(parent_)) {
if(m_widget && m_widget->parent() == parent_) {
return m_widget;
}

Loading…
Cancel
Save