less deprecated

svn path=/branches/work/kde4/playground/graphics/okular/; revision=549206
This commit is contained in:
Pino Toscano 2006-06-07 18:33:25 +00:00
parent d0ac95dafd
commit 87b4f81c14
3 changed files with 6 additions and 6 deletions

View file

@ -281,7 +281,7 @@ void GSGenerator::freeGUI()
{
if ( GSSettings::messages() )
{
m_box->removeItem(m_logWindow);
m_box->removeItem(m_box->indexOf(m_logWindow));
}
}

View file

@ -342,7 +342,7 @@ bool GSInterpreterCMD::run( GSInterpreterLib::Position pos)
m_info.pos=pos;
m_info.sync=true;
m_info.handle=m_pixmap->handle();
kDebug() << "CUNAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAO1 running:" << running() << endl;
kDebug() << "CUNAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAO1 running:" << isRunning() << endl;
start();
kDebug() << "CUNAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAO2" << endl;
return true;

View file

@ -710,7 +710,7 @@ if ( d->document->handleEvent( pe ) )
if ( !selectionRect.isNull() && selectionRect.intersects( contentsRect ) &&
!selectionRectInternal.contains( contentsRect ) )
{
screenPainter.setPen( palette().active().highlight().dark(110) );
screenPainter.setPen( palette().color( QPalette::Active, QPalette::Highlight ).dark(110) );
screenPainter.drawRect( selectionRect );
}
// 3) Layer 1: give annotator painting control
@ -1050,7 +1050,7 @@ if (d->document->handleEvent( e ) )
kWarning () << "text areas: " << selectionArea->count() << endl;
if ( selectionArea->count() > 0 )
{
QColor selColor = palette().active().highlight();
QColor selColor = palette().color( QPalette::Active, QPalette::Highlight );
textSelection(selectionArea->geometry(vRect.width(),vRect.height(),vRect.left(),vRect.top())
,selColor);
}
@ -1138,7 +1138,7 @@ if ( d->document->handleEvent( e ) )
case MouseZoom: // set first corner of the zoom rect
if ( leftButton )
selectionStart( e->x(), e->y(), palette().active().highlight(), false );
selectionStart( e->x(), e->y(), palette().color( QPalette::Active, QPalette::Highlight ), false );
else if ( rightButton )
updateZoom( ZoomOut );
break;
@ -1146,7 +1146,7 @@ if ( d->document->handleEvent( e ) )
case MouseSelect: // set first corner of the selection rect
// if ( leftButton )
// {
QColor selColor = palette().active().highlight().light( 120 );
QColor selColor = palette().color( QPalette::Active, QPalette::Highlight ).light( 120 );
selectionStart( e->x(), e->y(), selColor, false );
// }
break;