Drop TQT_BASE_OBJECT* defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/13/head
Michele Calgaro 9 months ago
parent 3f99eceeeb
commit dcab2e27cb
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -437,7 +437,7 @@ bool KrBookmarkHandler::eventFilter( TQObject *obj, TQEvent *ev ) {
if( obj->inherits( "TQPopupMenu" ) ) {
int id = static_cast<TQPopupMenu*>(TQT_TQWIDGET(obj))->idAt( TQT_TQMOUSEEVENT(ev)->pos() );
if( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(_mainBookmarkPopup) && _specialBookmarkIDs.contains( id ) ) {
if( obj == _mainBookmarkPopup && _specialBookmarkIDs.contains( id ) ) {
rightClickOnSpecialBookmark();
return true;
}

@ -500,7 +500,7 @@ void MediaButton::addMountPoint( KMountPoint * mp, bool isMounted ) {
}
bool MediaButton::eventFilter( TQObject *o, TQEvent *e ) {
if( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(popupMenu) ) {
if( o == popupMenu ) {
if( e->type() == TQEvent::MouseButtonPress || e->type() == TQEvent::MouseButtonRelease ) {
TQMouseEvent *m = TQT_TQMOUSEEVENT(e);
if( m->button() == Qt::RightButton ) {

@ -1266,7 +1266,7 @@ bool KrBriefView::event( TQEvent *e ) {
bool KrBriefView::eventFilter( TQObject * watched, TQEvent * e )
{
if( TQT_BASE_OBJECT(watched) == TQT_BASE_OBJECT(horizontalScrollBar()) )
if( watched == horizontalScrollBar() )
{
if( e->type() == TQEvent::Hide || e->type() == TQEvent::Show )
{
@ -1275,7 +1275,7 @@ bool KrBriefView::eventFilter( TQObject * watched, TQEvent * e )
return res;
}
}
else if( TQT_BASE_OBJECT(watched) == TQT_BASE_OBJECT(header) )
else if( watched == header )
{
if( e->type() == TQEvent::MouseButtonPress && ((TQMouseEvent *)e )->button() == Qt::RightButton )
{

@ -1356,7 +1356,7 @@ bool KrDetailedView::event( TQEvent *e ) {
bool KrDetailedView::eventFilter( TQObject * watched, TQEvent * e )
{
if( TQT_BASE_OBJECT(watched) == TQT_BASE_OBJECT(renameLineEdit()) )
if( watched == renameLineEdit() )
{
if( currentlyRenamedItem && e->type() == TQEvent::Hide )
{
@ -1371,7 +1371,7 @@ bool KrDetailedView::eventFilter( TQObject * watched, TQEvent * e )
}
return FALSE;
}
else if( TQT_BASE_OBJECT(watched) == TQT_BASE_OBJECT(header()) )
else if( watched == header() )
{
if( e->type() == TQEvent::MouseButtonPress && ((TQMouseEvent *)e )->button() == Qt::RightButton )
{

@ -390,7 +390,7 @@ void ListPanel::setProperties( int prop )
}
bool ListPanel::eventFilter ( TQObject * watched, TQEvent * e ) {
if( e->type() == TQEvent::KeyPress && TQT_BASE_OBJECT(origin->lineEdit()) == TQT_BASE_OBJECT(watched) ) {
if( e->type() == TQEvent::KeyPress && origin->lineEdit() == watched ) {
TQKeyEvent *ke = (TQKeyEvent *)e;
if( ( ke->key() == Key_Down ) && ( ke->state() == ControlButton ) ) {

@ -289,7 +289,7 @@ void KrusaderView::switchFullScreenTE()
bool KrusaderView::eventFilter ( TQObject * watched, TQEvent * e ) {
if( e->type() == TQEvent::AccelOverride && konsole_part && TQT_BASE_OBJECT(konsole_part->widget()) == TQT_BASE_OBJECT(watched) ) {
if( e->type() == TQEvent::AccelOverride && konsole_part && konsole_part->widget() == watched ) {
TQKeyEvent *ke = (TQKeyEvent *)e;
if( ( ke->key() == Key_Insert ) && ( ke->state() == ShiftButton ) ) {
ke->accept();
@ -301,7 +301,7 @@ bool KrusaderView::eventFilter ( TQObject * watched, TQEvent * e ) {
return true;
}
}
else if( e->type() == TQEvent::KeyPress && konsole_part && TQT_BASE_OBJECT(konsole_part->widget()) == TQT_BASE_OBJECT(watched) ) {
else if( e->type() == TQEvent::KeyPress && konsole_part && konsole_part->widget() == watched ) {
TQKeyEvent *ke = (TQKeyEvent *)e;
KKey pressedKey( ke );

Loading…
Cancel
Save