summaryrefslogtreecommitdiffstats
path: root/lib/kofficeui
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-08-12 18:44:08 +0900
committerMichele Calgaro <[email protected]>2023-08-18 20:22:59 +0900
commita7ea84c97639f635d798348432f355e3ac496a1d (patch)
tree34917a6af147ff19cc1f059ef72db53a196d4b61 /lib/kofficeui
parentca88704c3e4a4fd5ddc9e96e4ccf22b53816e03d (diff)
downloadkoffice-a7ea84c97639f635d798348432f355e3ac496a1d.tar.gz
koffice-a7ea84c97639f635d798348432f355e3ac496a1d.zip
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'lib/kofficeui')
-rw-r--r--lib/kofficeui/KoPartSelectAction.cpp2
-rw-r--r--lib/kofficeui/KoTooluButton.cpp2
-rw-r--r--lib/kofficeui/ttdetoolbarbutton.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/kofficeui/KoPartSelectAction.cpp b/lib/kofficeui/KoPartSelectAction.cpp
index 2077b31d..e5aaf73c 100644
--- a/lib/kofficeui/KoPartSelectAction.cpp
+++ b/lib/kofficeui/KoPartSelectAction.cpp
@@ -64,7 +64,7 @@ void KoPartSelectAction::init()
// Called when selecting a part
void KoPartSelectAction::slotActionActivated()
{
- TQString servName = TQString::fromLatin1( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() );
+ TQString servName = TQString::fromLatin1( sender()->name() );
KService::Ptr serv = KService::serviceByName( servName );
m_documentEntry = KoDocumentEntry( serv );
emit activated();
diff --git a/lib/kofficeui/KoTooluButton.cpp b/lib/kofficeui/KoTooluButton.cpp
index 0d24cd16..4ede56d9 100644
--- a/lib/kofficeui/KoTooluButton.cpp
+++ b/lib/kofficeui/KoTooluButton.cpp
@@ -809,7 +809,7 @@ void KoToolButton::drawButton(TQPainter *_painter)
bool KoToolButton::eventFilter( TQObject* o, TQEvent* e )
{
- if ( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_popup) ) {
+ if ( o == m_popup ) {
if ( e->type() == TQEvent::MouseButtonPress )
if ( hitArrow( mapFromGlobal( TQT_TQMOUSEEVENT( e )->globalPos() ) ) ) {
kdDebug() << "KoToolButton::eventFilter-------------->" << endl;
diff --git a/lib/kofficeui/ttdetoolbarbutton.cpp b/lib/kofficeui/ttdetoolbarbutton.cpp
index 6fed1f48..6aaab739 100644
--- a/lib/kofficeui/ttdetoolbarbutton.cpp
+++ b/lib/kofficeui/ttdetoolbarbutton.cpp
@@ -314,7 +314,7 @@ void TTDEToolBarButton::enterEvent(TQEvent *)
bool TTDEToolBarButton::eventFilter(TQObject *o, TQEvent *ev)
{
- if ( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(this) )
+ if ( o == this )
if (ev->type() == TQEvent::MouseButtonPress && d->m_popup && d->m_isPopup ) {
if (!d->m_isToggle) {
d->m_arrowPressed = arrowPressed( mapFromGlobal(TQCursor::pos()) );
@@ -323,7 +323,7 @@ bool TTDEToolBarButton::eventFilter(TQObject *o, TQEvent *ev)
}
}
- if ( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(d->m_popup)) {
+ if ( o == d->m_popup) {
switch (ev->type())
{
case TQEvent::Show: