From 79e5d6be76392920c148aa615d9e3504f3388996 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 21 Dec 2011 14:21:13 -0600 Subject: Rename obsolete tq methods to standard names (cherry picked from commit ebbee358abafa1b5166404c6fe5cc44ae2837a57) --- ksnapshot/ksnapshot.cpp | 2 +- ksnapshot/ksnapshot.h | 4 ++-- ksnapshot/ksnapshotwidget.ui | 2 +- ksnapshot/regiongrabber.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'ksnapshot') diff --git a/ksnapshot/ksnapshot.cpp b/ksnapshot/ksnapshot.cpp index 5bfa82a6..05dfd185 100644 --- a/ksnapshot/ksnapshot.cpp +++ b/ksnapshot/ksnapshot.cpp @@ -241,7 +241,7 @@ void KSnapshot::slotSaveAs() void KSnapshot::slotCopy() { - TQClipboard *cb = TQApplication::tqclipboard(); + TQClipboard *cb = TQApplication::clipboard(); cb->setPixmap( snapshot ); } diff --git a/ksnapshot/ksnapshot.h b/ksnapshot/ksnapshot.h index 4850b314..27cdad27 100644 --- a/ksnapshot/ksnapshot.h +++ b/ksnapshot/ksnapshot.h @@ -44,14 +44,14 @@ class KSnapshotPreview : public TQLabel { TQPainter p(&mask); - tqstyle().tqdrawPrimitive(TQStyle::PE_SizeGrip, &p, TQRect(0, 0, 15, 15), tqpalette().active()); + style().tqdrawPrimitive(TQStyle::PE_SizeGrip, &p, TQRect(0, 0, 15, 15), palette().active()); p.end(); handle.setMask(mask); } { TQPainter p(&handle); - tqstyle().tqdrawPrimitive(TQStyle::PE_SizeGrip, &p, TQRect(0, 0, 15, 15), tqpalette().active()); + style().tqdrawPrimitive(TQStyle::PE_SizeGrip, &p, TQRect(0, 0, 15, 15), palette().active()); p.end(); } diff --git a/ksnapshot/ksnapshotwidget.ui b/ksnapshot/ksnapshotwidget.ui index 86a2e4e2..95590cb4 100644 --- a/ksnapshot/ksnapshotwidget.ui +++ b/ksnapshot/ksnapshotwidget.ui @@ -163,7 +163,7 @@ If <i>no delay</i> is set, the program will wait for a mouse click b - tqlayout1 + layout1 diff --git a/ksnapshot/regiongrabber.cpp b/ksnapshot/regiongrabber.cpp index ddd93b0e..2ba1ea76 100644 --- a/ksnapshot/regiongrabber.cpp +++ b/ksnapshot/regiongrabber.cpp @@ -168,7 +168,7 @@ void RegionGrabber::drawRubber() p.setPen( TQPen( color0, 1 ) ); p.setBrush( NoBrush ); - tqstyle().tqdrawPrimitive( TQStyle::PE_FocusRect, &p, grabRect, colorGroup(), + style().tqdrawPrimitive( TQStyle::PE_FocusRect, &p, grabRect, colorGroup(), TQStyle::Style_Default, TQStyleOption( colorGroup().base() ) ); p.end(); -- cgit v1.2.1