summaryrefslogtreecommitdiffstats
path: root/lib/koproperty/editors
diff options
context:
space:
mode:
Diffstat (limited to 'lib/koproperty/editors')
-rw-r--r--lib/koproperty/editors/booledit.cpp2
-rw-r--r--lib/koproperty/editors/fontedit.cpp2
-rw-r--r--lib/koproperty/editors/pixmapedit.cpp4
-rw-r--r--lib/koproperty/editors/spinbox.cpp4
4 files changed, 6 insertions, 6 deletions
diff --git a/lib/koproperty/editors/booledit.cpp b/lib/koproperty/editors/booledit.cpp
index 0e14bf27b..fb71a4453 100644
--- a/lib/koproperty/editors/booledit.cpp
+++ b/lib/koproperty/editors/booledit.cpp
@@ -131,7 +131,7 @@ bool
BoolEdit::eventFilter(TQObject* watched, TQEvent* e)
{
if(e->type() == TQEvent::KeyPress) {
- TQKeyEvent* ev = TQT_TQKEYEVENT(e);
+ TQKeyEvent* ev = static_cast<TQKeyEvent*>(e);
const int k = ev->key();
if(k == TQt::Key_Space || k == TQt::Key_Enter || k == TQt::Key_Return) {
if (m_toggle)
diff --git a/lib/koproperty/editors/fontedit.cpp b/lib/koproperty/editors/fontedit.cpp
index 0ea29b6e8..e53e785f3 100644
--- a/lib/koproperty/editors/fontedit.cpp
+++ b/lib/koproperty/editors/fontedit.cpp
@@ -138,7 +138,7 @@ bool
FontEdit::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_Space) {
m_edit->button()->animateClick();
return true;
diff --git a/lib/koproperty/editors/pixmapedit.cpp b/lib/koproperty/editors/pixmapedit.cpp
index b6454a96c..070de038b 100644
--- a/lib/koproperty/editors/pixmapedit.cpp
+++ b/lib/koproperty/editors/pixmapedit.cpp
@@ -206,7 +206,7 @@ bool
PixmapEdit::eventFilter(TQObject *o, TQEvent *ev)
{
if(o == m_edit) {
- if(ev->type() == TQEvent::MouseButtonPress && TQT_TQMOUSEEVENT(ev)->button()==TQt::LeftButton) {
+ if(ev->type() == TQEvent::MouseButtonPress && static_cast<TQMouseEvent*>(ev)->button()==TQt::LeftButton) {
if(m_previewPixmap.height() <= m_edit->height()
&& m_previewPixmap.width() <= m_edit->width())
return false;
@@ -227,7 +227,7 @@ PixmapEdit::eventFilter(TQObject *o, TQEvent *ev)
m_popup->hide();
}
else if(ev->type() == TQEvent::KeyPress) {
- TQKeyEvent* e = TQT_TQKEYEVENT(ev);
+ TQKeyEvent* e = static_cast<TQKeyEvent*>(ev);
if((e->key() == Key_Enter) || (e->key()== Key_Space) || (e->key() == Key_Return)) {
m_button->animateClick();
return true;
diff --git a/lib/koproperty/editors/spinbox.cpp b/lib/koproperty/editors/spinbox.cpp
index e76ca930d..81f0c1cb7 100644
--- a/lib/koproperty/editors/spinbox.cpp
+++ b/lib/koproperty/editors/spinbox.cpp
@@ -63,7 +63,7 @@ IntSpinBox::eventFilter(TQObject *o, TQEvent *e)
{
if(e->type() == TQEvent::KeyPress)
{
- TQKeyEvent* ev = TQT_TQKEYEVENT(e);
+ TQKeyEvent* ev = static_cast<TQKeyEvent*>(e);
if((ev->key()==Key_Up || ev->key()==Key_Down) && ev->state() !=ControlButton)
{
parentWidget()->eventFilter(o, e);
@@ -196,7 +196,7 @@ DoubleSpinBox::eventFilter(TQObject *o, TQEvent *e)
{
if(e->type() == TQEvent::KeyPress)
{
- TQKeyEvent* ev = TQT_TQKEYEVENT(e);
+ TQKeyEvent* ev = static_cast<TQKeyEvent*>(e);
if((ev->key()==Key_Up || ev->key()==Key_Down) && ev->state()!=ControlButton)
{
parentWidget()->eventFilter(o, e);