summaryrefslogtreecommitdiffstats
path: root/kexi/widget
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/widget')
-rw-r--r--kexi/widget/kexibrowser.cpp4
-rw-r--r--kexi/widget/relations/kexirelationviewtable.cpp10
-rw-r--r--kexi/widget/tableview/kexiblobtableedit.cpp2
-rw-r--r--kexi/widget/tableview/kexicomboboxpopup.cpp2
-rw-r--r--kexi/widget/tableview/kexicomboboxtableedit.cpp2
-rw-r--r--kexi/widget/tableview/kexitableedit.cpp2
-rw-r--r--kexi/widget/tableview/kexitableview.cpp2
-rw-r--r--kexi/widget/tableview/kexitableviewheader.cpp2
-rw-r--r--kexi/widget/utils/kexirecordnavigator.cpp8
9 files changed, 17 insertions, 17 deletions
diff --git a/kexi/widget/kexibrowser.cpp b/kexi/widget/kexibrowser.cpp
index 1d59dae0..dd0b16a1 100644
--- a/kexi/widget/kexibrowser.cpp
+++ b/kexi/widget/kexibrowser.cpp
@@ -567,7 +567,7 @@ bool KexiBrowser::eventFilter ( TQObject *o, TQEvent * e )
itemRenameDone();
}
else if (e->type()==TQEvent::KeyPress) {
- TQKeyEvent *ke = TQT_TQKEYEVENT(e);
+ TQKeyEvent *ke = static_cast<TQKeyEvent*>(e);
if (ke->key()==TQt::Key_Enter || ke->key()==TQt::Key_Return) {
if (0==(ke->state() & (TQt::ShiftButton|TQt::ControlButton|TQt::AltButton))) {
TQListViewItem *it = m_list->selectedItem();
@@ -580,7 +580,7 @@ bool KexiBrowser::eventFilter ( TQObject *o, TQEvent * e )
}
}
else if (e->type()==TQEvent::AccelOverride) {
- TQKeyEvent *ke = TQT_TQKEYEVENT(e);
+ TQKeyEvent *ke = static_cast<TQKeyEvent*>(e);
//override delete action
if (ke->key()==TQt::Key_Delete && ke->state()==TQt::NoButton) {
slotRemove();
diff --git a/kexi/widget/relations/kexirelationviewtable.cpp b/kexi/widget/relations/kexirelationviewtable.cpp
index 347805be..7053c778 100644
--- a/kexi/widget/relations/kexirelationviewtable.cpp
+++ b/kexi/widget/relations/kexirelationviewtable.cpp
@@ -208,10 +208,10 @@ bool KexiRelationViewTableContainerHeader::eventFilter(TQObject *, TQEvent *ev)
{
if (ev->type()==TQEvent::MouseMove)
{
- if (m_dragging && TQT_TQMOUSEEVENT(ev)->state()==TQt::LeftButton) {
+ if (m_dragging && static_cast<TQMouseEvent*>(ev)->state()==TQt::LeftButton) {
int diffX,diffY;
- diffX=TQT_TQMOUSEEVENT(ev)->globalPos().x()-m_grabX;
- diffY=TQT_TQMOUSEEVENT(ev)->globalPos().y()-m_grabY;
+ diffX=static_cast<TQMouseEvent*>(ev)->globalPos().x()-m_grabX;
+ diffY=static_cast<TQMouseEvent*>(ev)->globalPos().y()-m_grabY;
if ((abs(diffX)>2) || (abs(diffY)>2))
{
TQPoint newPos=parentWidget()->pos()+TQPoint(diffX,diffY);
@@ -245,8 +245,8 @@ bool KexiRelationViewTableContainerHeader::eventFilter(TQObject *, TQEvent *ev)
//move and update helpers
parentWidget()->move(newPos);
- m_grabX=TQT_TQMOUSEEVENT(ev)->globalPos().x();
- m_grabY=TQT_TQMOUSEEVENT(ev)->globalPos().y();
+ m_grabX=static_cast<TQMouseEvent*>(ev)->globalPos().x();
+ m_grabY=static_cast<TQMouseEvent*>(ev)->globalPos().y();
// kdDebug()<<"HEADER:emitting moved"<<endl;
emit moved();
}
diff --git a/kexi/widget/tableview/kexiblobtableedit.cpp b/kexi/widget/tableview/kexiblobtableedit.cpp
index 75f51611..b3de3419 100644
--- a/kexi/widget/tableview/kexiblobtableedit.cpp
+++ b/kexi/widget/tableview/kexiblobtableedit.cpp
@@ -456,7 +456,7 @@ void KexiBlobTableEdit::handleAction(const TQString& actionName)
bool KexiBlobTableEdit::eventFilter( TQObject *o, TQEvent *e )
{
if (o == d->popup && e->type()==TQEvent::KeyPress) {
- TQKeyEvent* ke = TQT_TQKEYEVENT(e);
+ TQKeyEvent* ke = static_cast<TQKeyEvent*>(e);
const int state = ke->state();
const int k = ke->key();
if ( (state==TQt::NoButton && (k==TQt::Key_Tab || k==TQt::Key_Left || k==TQt::Key_Right))
diff --git a/kexi/widget/tableview/kexicomboboxpopup.cpp b/kexi/widget/tableview/kexicomboboxpopup.cpp
index dfd6edb4..6877bd78 100644
--- a/kexi/widget/tableview/kexicomboboxpopup.cpp
+++ b/kexi/widget/tableview/kexicomboboxpopup.cpp
@@ -351,7 +351,7 @@ bool KexiComboBoxPopup::eventFilter( TQObject *o, TQEvent *e )
}
else if (o==d->tv) {
if (e->type()==TQEvent::KeyPress) {
- TQKeyEvent *ke = TQT_TQKEYEVENT(e);
+ TQKeyEvent *ke = static_cast<TQKeyEvent*>(e);
const int k = ke->key();
if ((ke->state()==TQt::NoButton && (k==Key_Escape || k==Key_F4))
|| (ke->state()==AltButton && k==Key_Up))
diff --git a/kexi/widget/tableview/kexicomboboxtableedit.cpp b/kexi/widget/tableview/kexicomboboxtableedit.cpp
index a818e40b..0ac9923e 100644
--- a/kexi/widget/tableview/kexicomboboxtableedit.cpp
+++ b/kexi/widget/tableview/kexicomboboxtableedit.cpp
@@ -348,7 +348,7 @@ int KexiComboBoxTableEdit::widthForValue( TQVariant &val, const TQFontMetrics &f
bool KexiComboBoxTableEdit::eventFilter( TQObject *o, TQEvent *e )
{
if (!column()->isReadOnly() && e->type()==TQEvent::MouseButtonPress && m_scrollView) {
- TQPoint gp = TQT_TQMOUSEEVENT(e)->globalPos()
+ TQPoint gp = static_cast<TQMouseEvent*>(e)->globalPos()
+ TQPoint(m_scrollView->childX(d->button), m_scrollView->childY(d->button));
TQRect r(d->button->mapToGlobal(d->button->geometry().topLeft()),
d->button->mapToGlobal(d->button->geometry().bottomRight()));
diff --git a/kexi/widget/tableview/kexitableedit.cpp b/kexi/widget/tableview/kexitableedit.cpp
index 943ec1e8..a4b70aab 100644
--- a/kexi/widget/tableview/kexitableedit.cpp
+++ b/kexi/widget/tableview/kexitableedit.cpp
@@ -124,7 +124,7 @@ KexiTableEdit::eventFilter(TQObject* watched, TQEvent* e)
{
if(e->type() == TQEvent::KeyPress)
{
- TQKeyEvent* ev = TQT_TQKEYEVENT(e);
+ TQKeyEvent* ev = static_cast<TQKeyEvent*>(e);
if(ev->key() == Key_Escape)
{
diff --git a/kexi/widget/tableview/kexitableview.cpp b/kexi/widget/tableview/kexitableview.cpp
index 284cbd1d..dbb89f5d 100644
--- a/kexi/widget/tableview/kexitableview.cpp
+++ b/kexi/widget/tableview/kexitableview.cpp
@@ -2412,7 +2412,7 @@ bool KexiTableView::eventFilter( TQObject *o, TQEvent *e )
if (e->type()==TQEvent::KeyPress) {
if (e->spontaneous() /*|| e->type()==TQEvent::AccelOverride*/) {
- TQKeyEvent *ke = TQT_TQKEYEVENT(e);
+ TQKeyEvent *ke = static_cast<TQKeyEvent*>(e);
const int k = ke->key();
int s = ke->state();
//cell editor's events:
diff --git a/kexi/widget/tableview/kexitableviewheader.cpp b/kexi/widget/tableview/kexitableviewheader.cpp
index 0ee90f5a..305222ca 100644
--- a/kexi/widget/tableview/kexitableviewheader.cpp
+++ b/kexi/widget/tableview/kexitableviewheader.cpp
@@ -120,7 +120,7 @@ void KexiTableViewHeader::setToolTip( int section, const TQString & toolTip )
bool KexiTableViewHeader::eventFilter(TQObject * watched, TQEvent * e)
{
if (e->type()==TQEvent::MouseMove) {
- const int section = sectionAt( TQT_TQMOUSEEVENT(e)->x() );
+ const int section = sectionAt( static_cast<TQMouseEvent*>(e)->x() );
if (section != m_lastToolTipSection && section >= 0 && section < (int)m_toolTips.count()) {
TQToolTip::remove(this, m_toolTipRect);
TQString tip = m_toolTips[ section ];
diff --git a/kexi/widget/utils/kexirecordnavigator.cpp b/kexi/widget/utils/kexirecordnavigator.cpp
index d61c7dc8..334c605a 100644
--- a/kexi/widget/utils/kexirecordnavigator.cpp
+++ b/kexi/widget/utils/kexirecordnavigator.cpp
@@ -196,7 +196,7 @@ bool KexiRecordNavigator::eventFilter( TQObject *o, TQEvent *e )
bool recordEntered = false;
bool ret;
if (e->type()==TQEvent::KeyPress) {
- TQKeyEvent *ke = TQT_TQKEYEVENT(e);
+ TQKeyEvent *ke = static_cast<TQKeyEvent*>(e);
switch (ke->key()) {
case TQt::Key_Escape: {
ke->accept();
@@ -218,9 +218,9 @@ bool KexiRecordNavigator::eventFilter( TQObject *o, TQEvent *e )
}
}
else if (e->type()==TQEvent::FocusOut) {
- if (TQT_TQFOCUSEVENT(e)->reason()!=TQFocusEvent::Tab
- && TQT_TQFOCUSEVENT(e)->reason()!=TQFocusEvent::Backtab
- && TQT_TQFOCUSEVENT(e)->reason()!=TQFocusEvent::Other)
+ if (static_cast<TQFocusEvent*>(e)->reason()!=TQFocusEvent::Tab
+ && static_cast<TQFocusEvent*>(e)->reason()!=TQFocusEvent::Backtab
+ && static_cast<TQFocusEvent*>(e)->reason()!=TQFocusEvent::Other)
recordEntered=true;
ret = false;
}