diff options
Diffstat (limited to 'cervisia/diffview.cpp')
-rw-r--r-- | cervisia/diffview.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cervisia/diffview.cpp b/cervisia/diffview.cpp index 554e6d3f..eacd7847 100644 --- a/cervisia/diffview.cpp +++ b/cervisia/diffview.cpp @@ -293,7 +293,7 @@ int DiffView::cellWidth(int col) } -TQSize DiffView::tqsizeHint() const +TQSize DiffView::sizeHint() const { TQFontMetrics fm(font()); return TQSize( 4*fm.width("0123456789"), fm.lineSpacing()*8 ); @@ -391,7 +391,7 @@ void DiffView::wheelEvent(TQWheelEvent *e) DiffZoomWidget::DiffZoomWidget(KConfig& cfg, TQWidget *parent, const char *name) : TQFrame(parent, name) { - tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Minimum ) ); + setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Minimum ) ); cfg.setGroup("Colors"); TQColor defaultColor=TQColor(237, 190, 190); @@ -415,9 +415,9 @@ void DiffZoomWidget::setDiffView(DiffView *view) } -TQSize DiffZoomWidget::tqsizeHint() const +TQSize DiffZoomWidget::sizeHint() const { - return TQSize(25, tqstyle().tqpixelMetric(TQStyle::PM_ScrollBarExtent, this)); + return TQSize(25, tqstyle().pixelMetric(TQStyle::PM_ScrollBarExtent, this)); } @@ -426,7 +426,7 @@ bool DiffZoomWidget::eventFilter(TQObject *o, TQEvent *e) if (e->type() == TQEvent::Show || e->type() == TQEvent::Hide || e->type() == TQEvent::Resize) - tqrepaint(); + repaint(); return TQFrame::eventFilter(o, e); } |