summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-30 20:43:33 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-30 20:43:33 +0900
commit1be100df961db31fe5fc345a6ae832b0740cef1e (patch)
tree15d180a2c9d52351dd5234829a9557a816c91926
parentdbf84303c4c651dfd061eff721a028cfd73e3b8b (diff)
downloadtellico-1be100df961db31fe5fc345a6ae832b0740cef1e.tar.gz
tellico-1be100df961db31fe5fc345a6ae832b0740cef1e.zip
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--src/detailedlistview.cpp4
-rw-r--r--src/gui/tablefieldwidget.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/detailedlistview.cpp b/src/detailedlistview.cpp
index d6eb699..f014baf 100644
--- a/src/detailedlistview.cpp
+++ b/src/detailedlistview.cpp
@@ -377,9 +377,9 @@ Tellico::DetailedEntryItem* DetailedListView::locateItem(Data::EntryPtr entry_)
bool DetailedListView::eventFilter(TQObject* obj_, TQEvent* ev_) {
if(ev_->type() == TQEvent::MouseButtonPress
- && TQT_TQMOUSEEVENT(ev_)->button() == TQt::RightButton
+ && static_cast<TQMouseEvent*>(ev_)->button() == TQt::RightButton
&& obj_ == header()) {
- m_headerMenu->popup(TQT_TQMOUSEEVENT(ev_)->globalPos());
+ m_headerMenu->popup(static_cast<TQMouseEvent*>(ev_)->globalPos());
return true;
}
return GUI::ListView::eventFilter(obj_, ev_);
diff --git a/src/gui/tablefieldwidget.cpp b/src/gui/tablefieldwidget.cpp
index 113a88e..d030968 100644
--- a/src/gui/tablefieldwidget.cpp
+++ b/src/gui/tablefieldwidget.cpp
@@ -226,9 +226,9 @@ void TableFieldWidget::updateFieldHook(Data::FieldPtr, Data::FieldPtr newField_)
bool TableFieldWidget::eventFilter(TQObject* obj_, TQEvent* ev_) {
if(ev_->type() == TQEvent::MouseButtonPress
- && TQT_TQMOUSEEVENT(ev_)->button() == TQt::RightButton) {
+ && static_cast<TQMouseEvent*>(ev_)->button() == TQt::RightButton) {
if(obj_ == m_table->horizontalHeader()) {
- TQMouseEvent* ev = TQT_TQMOUSEEVENT(ev_);
+ TQMouseEvent* ev = static_cast<TQMouseEvent*>(ev_);
// might be scrolled
int pos = ev->x() + m_table->horizontalHeader()->offset();
int col = m_table->horizontalHeader()->sectionAt(pos);
@@ -243,7 +243,7 @@ bool TableFieldWidget::eventFilter(TQObject* obj_, TQEvent* ev_) {
menu.exec(ev->globalPos());
return true;
} else if(obj_ == m_table->verticalHeader()) {
- TQMouseEvent* ev = TQT_TQMOUSEEVENT(ev_);
+ TQMouseEvent* ev = static_cast<TQMouseEvent*>(ev_);
// might be scrolled
int pos = ev->y() + m_table->verticalHeader()->offset();
int row = m_table->verticalHeader()->sectionAt(pos);