Rename a few stragglers

pull/1/head
Timothy Pearson 13 years ago
parent ebbee358ab
commit 1aa0bb45dc

@ -251,7 +251,7 @@ void PaletteViewScrolledArea::paintEvent(TQPaintEvent* /*event*/) {
painter.fillRect(0, 0, rowWidth, height(), painter.fillRect(0, 0, rowWidth, height(),
TQBrush( TQFrame::palette().active().base() )); TQBrush( TQFrame::palette().active().base() ));
TQBrush normalBackgroundBrush(TQFrame::palette().active().background()); TQBrush normalBackgroundBrush(TQFrame::palette().active().background());
TQBrush selectedBackgroundBrush(TQFrame::tqpalette().active().highlight()); TQBrush selectedBackgroundBrush(TQFrame::palette().active().highlight());
TQBrush foregroundBrush; TQBrush foregroundBrush;
TQBrush cursorBrush(TQFrame::palette().active().foreground()); TQBrush cursorBrush(TQFrame::palette().active().foreground());
TQPen backgroundPen(TQFrame::palette().active().foreground()); TQPen backgroundPen(TQFrame::palette().active().foreground());

@ -81,7 +81,7 @@ void MarkListItem::setPixmap( TQPixmap thumbnail )
void MarkListItem::setSelected( bool selected ) void MarkListItem::setSelected( bool selected )
{ {
if (selected) if (selected)
setPaletteBackgroundColor( TQApplication::tqpalette().active().highlight() ); setPaletteBackgroundColor( TQApplication::palette().active().highlight() );
else else
setPaletteBackgroundColor( _backgroundColor ); setPaletteBackgroundColor( _backgroundColor );
} }

@ -311,7 +311,7 @@ static bool HasSomethingToPaste (kpMainWindow *mw)
return hasSomething; return hasSomething;
} }
// HACK: SYNC: Non-TQt apps do not cause TQApplication::tqclipboard() to // HACK: SYNC: Non-TQt apps do not cause TQApplication::clipboard() to
// emit dataChanged(). We don't want to have our paste // emit dataChanged(). We don't want to have our paste
// action disabled when we can actually paste something. // action disabled when we can actually paste something.
// //

@ -308,12 +308,12 @@ void ProgressWidget::paintEvent( TQPaintEvent * e )
// paint rects and a separator line // paint rects and a separator line
TQPainter p( this ); TQPainter p( this );
if ( cRect.isValid() ) if ( cRect.isValid() )
p.fillRect( cRect, tqpalette().active().highlightedText() ); p.fillRect( cRect, palette().active().highlightedText() );
if ( fRect.isValid() ) if ( fRect.isValid() )
p.fillRect( fRect, tqpalette().active().highlight() ); p.fillRect( fRect, palette().active().highlight() );
if ( l && l != w ) if ( l && l != w )
{ {
p.setPen( tqpalette().active().highlight().dark( 120 ) ); p.setPen( palette().active().highlight().dark( 120 ) );
int delta = TQApplication::reverseLayout() ? w - l : l; int delta = TQApplication::reverseLayout() ? w - l : l;
p.drawLine( delta, 0, delta, h ); p.drawLine( delta, 0, delta, h );
} }

@ -213,7 +213,7 @@ void PagePainter::paintPageOnPainter( const KPDFPage * page, int id, int flags,
// 3. visually enchance links and images if requested // 3. visually enchance links and images if requested
if ( enhanceLinks || enhanceImages ) if ( enhanceLinks || enhanceImages )
{ {
TQColor normalColor = TQApplication::tqpalette().active().highlight(); TQColor normalColor = TQApplication::palette().active().highlight();
TQColor lightColor = normalColor.light( 140 ); TQColor lightColor = normalColor.light( 140 );
// enlarging limits for intersection is like growing the 'rectGeometry' below // enlarging limits for intersection is like growing the 'rectGeometry' below
TQRect limitsEnlarged = limits; TQRect limitsEnlarged = limits;

@ -618,7 +618,7 @@ void PageView::viewportPaintEvent( TQPaintEvent * pe )
if ( !selectionRect.isNull() && selectionRect.intersects( contentsRect ) && if ( !selectionRect.isNull() && selectionRect.intersects( contentsRect ) &&
!selectionRectInternal.contains( contentsRect ) ) !selectionRectInternal.contains( contentsRect ) )
{ {
screenPainter.setPen( tqpalette().active().highlight().dark(110) ); screenPainter.setPen( palette().active().highlight().dark(110) );
screenPainter.drawRect( selectionRect ); screenPainter.drawRect( selectionRect );
} }
// 4) Layer 3: overlays // 4) Layer 3: overlays
@ -876,7 +876,7 @@ void PageView::contentsMouseMoveEvent( TQMouseEvent * e )
{ {
d->aPrevAction = d->aMouseNormal; d->aPrevAction = d->aMouseNormal;
d->aMouseSelect->activate(); d->aMouseSelect->activate();
TQColor selColor = tqpalette().active().highlight().light( 120 ); TQColor selColor = palette().active().highlight().light( 120 );
selectionStart( e->x() + deltaX, e->y() + deltaY, selColor, false ); selectionStart( e->x() + deltaX, e->y() + deltaY, selColor, false );
selectionEndPoint( e->x(), e->y() ); selectionEndPoint( e->x(), e->y() );
break; break;
@ -946,7 +946,7 @@ void PageView::contentsMousePressEvent( TQMouseEvent * e )
case MouseZoom: // set first corner of the zoom rect case MouseZoom: // set first corner of the zoom rect
if ( leftButton ) if ( leftButton )
selectionStart( e->x(), e->y(), tqpalette().active().highlight(), false ); selectionStart( e->x(), e->y(), palette().active().highlight(), false );
else if ( rightButton ) else if ( rightButton )
updateZoom( ZoomOut ); updateZoom( ZoomOut );
break; break;
@ -954,7 +954,7 @@ void PageView::contentsMousePressEvent( TQMouseEvent * e )
case MouseSelect: // set first corner of the selection rect case MouseSelect: // set first corner of the selection rect
if ( leftButton ) if ( leftButton )
{ {
TQColor selColor = tqpalette().active().highlight().light( 120 ); TQColor selColor = palette().active().highlight().light( 120 );
selectionStart( e->x(), e->y(), selColor, false ); selectionStart( e->x(), e->y(), selColor, false );
} }
break; break;

@ -690,9 +690,9 @@ void PresentationWidget::generateOverlay()
// generate a 2 colors pixmap using mixing shadow (made with highlight color) // generate a 2 colors pixmap using mixing shadow (made with highlight color)
// and image (made with highlightedText color) // and image (made with highlightedText color)
TQColor color = tqpalette().active().highlightedText(); TQColor color = palette().active().highlightedText();
int red = color.red(), green = color.green(), blue = color.blue(); int red = color.red(), green = color.green(), blue = color.blue();
color = tqpalette().active().highlight(); color = palette().active().highlight();
int sRed = color.red(), sGreen = color.green(), sBlue = color.blue(); int sRed = color.red(), sGreen = color.green(), sBlue = color.blue();
// pointers // pointers
unsigned int * data = (unsigned int *)image.bits(), unsigned int * data = (unsigned int *)image.bits(),

@ -495,9 +495,9 @@ void ThumbnailWidget::paintEvent( TQPaintEvent * e )
TQPainter p( this ); TQPainter p( this );
// draw the bottom label + highlight mark // draw the bottom label + highlight mark
TQColor fillColor = m_selected ? tqpalette().active().highlight() : tqpalette().active().base(); TQColor fillColor = m_selected ? palette().active().highlight() : palette().active().base();
p.fillRect( 0, 0, width, height, fillColor ); p.fillRect( 0, 0, width, height, fillColor );
p.setPen( m_selected ? tqpalette().active().highlightedText() : tqpalette().active().text() ); p.setPen( m_selected ? palette().active().highlightedText() : palette().active().text() );
p.drawText( 0, m_pixmapHeight + m_margin, width, m_labelHeight, TQt::AlignCenter, TQString::number( m_labelNumber ) ); p.drawText( 0, m_pixmapHeight + m_margin, width, m_labelHeight, TQt::AlignCenter, TQString::number( m_labelNumber ) );
// draw page outline and pixmap // draw page outline and pixmap

@ -392,7 +392,7 @@ PMDockWidgetHeader::PMDockWidgetHeader( PMDockWidget* parent, const char* name )
layout->addWidget( stayButton ); layout->addWidget( stayButton );
layout->addWidget( closeButton ); layout->addWidget( closeButton );
layout->activate(); layout->activate();
drag->setFixedHeight( tqlayout->minimumSize().height() ); drag->setFixedHeight( layout->minimumSize().height() );
} }
void PMDockWidgetHeader::setTopLevel( bool isTopLevel ) void PMDockWidgetHeader::setTopLevel( bool isTopLevel )
@ -436,7 +436,7 @@ void PMDockWidgetHeader::setDragPanel( PMDockWidgetHeaderDrag* nd )
layout->addWidget( stayButton ); layout->addWidget( stayButton );
layout->addWidget( closeButton ); layout->addWidget( closeButton );
layout->activate(); layout->activate();
drag->setFixedHeight( tqlayout->minimumSize().height() ); drag->setFixedHeight( layout->minimumSize().height() );
} }
void PMDockWidgetHeader::slotStayClicked() void PMDockWidgetHeader::slotStayClicked()

@ -217,7 +217,7 @@ void MarkListWidget::setChecked( bool checked )
void MarkListWidget::setSelected( bool selected ) void MarkListWidget::setSelected( bool selected )
{ {
if (selected) if (selected)
setPaletteBackgroundColor( TQApplication::tqpalette().active().highlight() ); setPaletteBackgroundColor( TQApplication::palette().active().highlight() );
else else
setPaletteBackgroundColor( _backgroundColor ); setPaletteBackgroundColor( _backgroundColor );
} }

Loading…
Cancel
Save