diff options
Diffstat (limited to 'ksnapshot')
-rw-r--r-- | ksnapshot/ksnapshotwidget.ui | 4 | ||||
-rw-r--r-- | ksnapshot/windowgrabber.cpp | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/ksnapshot/ksnapshotwidget.ui b/ksnapshot/ksnapshotwidget.ui index 41fc9146..86e942f2 100644 --- a/ksnapshot/ksnapshotwidget.ui +++ b/ksnapshot/ksnapshotwidget.ui @@ -351,8 +351,8 @@ If <i>no delay</i> is set, the program will wait for a mouse click b <function specifier="non virtual" returnType="TQPixmap">preview()</function> </functions> <pixmapfunction>SmallIconSet</pixmapfunction> -<tqlayoutdefaults spacing="6" margin="11"/> -<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/> +<layoutdefaults spacing="6" margin="11"/> +<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/> <includehints> <includehint>kpushbutton.h</includehint> <includehint>kpushbutton.h</includehint> diff --git a/ksnapshot/windowgrabber.cpp b/ksnapshot/windowgrabber.cpp index 8bf8deee..0f646a22 100644 --- a/ksnapshot/windowgrabber.cpp +++ b/ksnapshot/windowgrabber.cpp @@ -166,15 +166,15 @@ TQPixmap grabWindow( Window child, int x, int y, uint w, uint h, uint border ) contents += TQRegion( w - border, 0, border, h ); } - //Get the tqmasked away area. - TQRegion tqmaskedAway = bbox - contents; - TQMemArray<TQRect> tqmaskedAwayRects = tqmaskedAway.tqrects(); + //Get the masked away area. + TQRegion maskedAway = bbox - contents; + TQMemArray<TQRect> maskedAwayRects = maskedAway.tqrects(); //Construct a bitmap tqmask from the rectangles TQPainter p(&tqmask); p.fillRect(0, 0, w, h, TQt::color1); - for (uint pos = 0; pos < tqmaskedAwayRects.count(); pos++) - p.fillRect(tqmaskedAwayRects[pos], TQt::color0); + for (uint pos = 0; pos < maskedAwayRects.count(); pos++) + p.fillRect(maskedAwayRects[pos], TQt::color0); p.end(); pm.setMask(tqmask); |