[CRITICAL] Fix additional rendering issues left over from initial TQt conversion

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1181781 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 52fcbf9fce
commit 2a899a60c9

@ -73,7 +73,7 @@ void BackTrace::start()
{
TQObject * o = parent();
if (o && !o->inherits("TQWidget"))
if (o && !o->inherits("QWidget"))
{
o = NULL;
}

@ -604,7 +604,7 @@ void FaxCtrl::slotCloseLog()
{
QTextEdit *view = m_logview;
m_logview = 0;
if (obj && obj->inherits("TQPushButton"))
if (obj && obj->inherits("QPushButton"))
delete view->parentWidget();
kdDebug() << "slotClose()" << endl;
}

@ -1016,10 +1016,10 @@ bool KlipperWidget::ignoreClipboardChanges() const
TQWidget *focusWidget = qApp->focusWidget();
if ( focusWidget )
{
if ( focusWidget->inherits( "TQSpinBox" ) ||
if ( focusWidget->inherits( "QSpinBox" ) ||
(focusWidget->parentWidget() &&
focusWidget->inherits("TQLineEdit") &&
focusWidget->parentWidget()->inherits("TQSpinWidget")) )
focusWidget->inherits("QLineEdit") &&
focusWidget->parentWidget()->inherits("QSpinWidget")) )
{
return true;
}

@ -94,7 +94,7 @@ int KonqBidiHistoryAction::plug( TQWidget *widget, int index )
return -1;
// Go menu
if ( widget->inherits("TQPopupMenu") )
if ( widget->inherits("QPopupMenu") )
{
m_goMenu = (TQPopupMenu*)widget;
// Forward signal (to main view)

@ -1044,7 +1044,7 @@ TQObject *KonqMainWindow::lastFrame( KonqView *view )
TQObject *nextFrame, *viewFrame;
nextFrame = view->frame();
viewFrame = 0;
while ( nextFrame != 0 && ! nextFrame->inherits( "TQWidgetStack" ) ) {
while ( nextFrame != 0 && ! nextFrame->inherits( "QWidgetStack" ) ) {
viewFrame = nextFrame;
nextFrame = nextFrame->parent();
}

@ -472,7 +472,7 @@ void KonqView::connectPart( )
m_pPart->widget()->installEventFilter( this );
if (m_bBackRightClick && m_pPart->widget()->inherits("TQScrollView") )
if (m_bBackRightClick && m_pPart->widget()->inherits("QScrollView") )
{
(static_cast<TQScrollView *>(m_pPart->widget()))->viewport()->installEventFilter( this );
}
@ -1220,7 +1220,7 @@ void KonqView::reparseConfiguration()
bool b = KonqSettings::backRightClick();
if ( m_bBackRightClick != b )
{
if (m_bBackRightClick && m_pPart->widget()->inherits("TQScrollView") )
if (m_bBackRightClick && m_pPart->widget()->inherits("QScrollView") )
{
(static_cast<TQScrollView *>(m_pPart->widget()))->viewport()->installEventFilter( this );
}

@ -479,7 +479,7 @@ void Konsole::makeGUI()
// Remove the empty separator Qt inserts if the menu is empty on popup,
// not sure if this will be "fixed" in Qt, for now use this hack (malte)
if(!(isRestored)) {
if (sender() && sender()->inherits("TQPopupMenu") &&
if (sender() && sender()->inherits("QPopupMenu") &&
static_cast<const TQPopupMenu *>(sender())->count() == 1)
const_cast<TQPopupMenu *>(static_cast<const TQPopupMenu *>(sender()))->removeItemAt(0);
}

@ -1907,7 +1907,7 @@ unsigned int Workspace::sendFakedMouseEvent( TQPoint pos, WId w, MouseEmulation
if ( !w )
return state;
TQWidget* widget = TQWidget::find( w );
if ( (!widget || widget->inherits("TQToolButton") ) && !findClient( WindowMatchPredicate( w )) )
if ( (!widget || widget->inherits("QToolButton") ) && !findClient( WindowMatchPredicate( w )) )
{
int x, y;
Window xw;

Loading…
Cancel
Save