Replace 'Event' #define strings

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 1be100df96)
r14.1.x
Michele Calgaro 1 year ago
parent 1ff93d9ecc
commit ad02e86c02
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -377,9 +377,9 @@ Tellico::DetailedEntryItem* DetailedListView::locateItem(Data::EntryPtr entry_)
bool DetailedListView::eventFilter(TQObject* obj_, TQEvent* ev_) { bool DetailedListView::eventFilter(TQObject* obj_, TQEvent* ev_) {
if(ev_->type() == TQEvent::MouseButtonPress if(ev_->type() == TQEvent::MouseButtonPress
&& TQT_TQMOUSEEVENT(ev_)->button() == TQt::RightButton && static_cast<TQMouseEvent*>(ev_)->button() == TQt::RightButton
&& obj_ == header()) { && obj_ == header()) {
m_headerMenu->popup(TQT_TQMOUSEEVENT(ev_)->globalPos()); m_headerMenu->popup(static_cast<TQMouseEvent*>(ev_)->globalPos());
return true; return true;
} }
return GUI::ListView::eventFilter(obj_, ev_); return GUI::ListView::eventFilter(obj_, ev_);

@ -226,9 +226,9 @@ void TableFieldWidget::updateFieldHook(Data::FieldPtr, Data::FieldPtr newField_)
bool TableFieldWidget::eventFilter(TQObject* obj_, TQEvent* ev_) { bool TableFieldWidget::eventFilter(TQObject* obj_, TQEvent* ev_) {
if(ev_->type() == TQEvent::MouseButtonPress if(ev_->type() == TQEvent::MouseButtonPress
&& TQT_TQMOUSEEVENT(ev_)->button() == TQt::RightButton) { && static_cast<TQMouseEvent*>(ev_)->button() == TQt::RightButton) {
if(obj_ == m_table->horizontalHeader()) { if(obj_ == m_table->horizontalHeader()) {
TQMouseEvent* ev = TQT_TQMOUSEEVENT(ev_); TQMouseEvent* ev = static_cast<TQMouseEvent*>(ev_);
// might be scrolled // might be scrolled
int pos = ev->x() + m_table->horizontalHeader()->offset(); int pos = ev->x() + m_table->horizontalHeader()->offset();
int col = m_table->horizontalHeader()->sectionAt(pos); int col = m_table->horizontalHeader()->sectionAt(pos);
@ -243,7 +243,7 @@ bool TableFieldWidget::eventFilter(TQObject* obj_, TQEvent* ev_) {
menu.exec(ev->globalPos()); menu.exec(ev->globalPos());
return true; return true;
} else if(obj_ == m_table->verticalHeader()) { } else if(obj_ == m_table->verticalHeader()) {
TQMouseEvent* ev = TQT_TQMOUSEEVENT(ev_); TQMouseEvent* ev = static_cast<TQMouseEvent*>(ev_);
// might be scrolled // might be scrolled
int pos = ev->y() + m_table->verticalHeader()->offset(); int pos = ev->y() + m_table->verticalHeader()->offset();
int row = m_table->verticalHeader()->sectionAt(pos); int row = m_table->verticalHeader()->sectionAt(pos);

Loading…
Cancel
Save