summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/thumbnaileditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kstars/kstars/thumbnaileditor.cpp')
-rw-r--r--kstars/kstars/thumbnaileditor.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kstars/kstars/thumbnaileditor.cpp b/kstars/kstars/thumbnaileditor.cpp
index 5e2301eb..a8822439 100644
--- a/kstars/kstars/thumbnaileditor.cpp
+++ b/kstars/kstars/thumbnaileditor.cpp
@@ -29,10 +29,10 @@
#include "thumbnaileditorui.h"
#include "thumbnailpicker.h"
-ThumbnailEditor::ThumbnailEditor( TQWidget *parent, const char *name )
- : KDialogBase( KDialogBase::Plain, i18n( "Edit Thumbnail Image" ), Ok|Cancel, Ok, parent, name )
+ThumbnailEditor::ThumbnailEditor( TQWidget *tqparent, const char *name )
+ : KDialogBase( KDialogBase::Plain, i18n( "Edit Thumbnail Image" ), Ok|Cancel, Ok, tqparent, name )
{
- tp = (ThumbnailPicker*)parent;
+ tp = (ThumbnailPicker*)tqparent;
TQFrame *page = plainPage();
TQHBoxLayout *hlay = new TQHBoxLayout( page, 0, 0 );
@@ -63,7 +63,7 @@ TQPixmap ThumbnailEditor::thumbnail() {
void ThumbnailEditor::slotUpdateCropLabel() {
TQRect *r = ui->ImageCanvas->cropRect();
ui->CropLabel->setText( i18n( "Crop region: [%1,%2 %3x%4]" )
- .arg( r->left() ).arg( r->top() ).arg( r->width() ).arg( r->height() ) );
+ .tqarg( r->left() ).tqarg( r->top() ).tqarg( r->width() ).tqarg( r->height() ) );
}
TQPixmap ThumbImage::croppedImage() {
@@ -75,7 +75,7 @@ TQPixmap ThumbImage::croppedImage() {
return result;
}
-ThumbImage::ThumbImage( TQWidget *parent, const char *name ) : TQLabel( parent, name )
+ThumbImage::ThumbImage( TQWidget *tqparent, const char *name ) : TQLabel( tqparent, name )
{
setBackgroundMode( TQWidget::NoBackground );
bMouseButtonDown = false;
@@ -130,7 +130,7 @@ void ThumbImage::paintEvent( TQPaintEvent* ) {
}
void ThumbImage::mousePressEvent( TQMouseEvent *e ) {
- if ( e->button() == LeftButton && CropRect->contains( e->pos() ) ) {
+ if ( e->button() == Qt::LeftButton && CropRect->tqcontains( e->pos() ) ) {
bMouseButtonDown = true;
//The Anchor tells how far from the CropRect corner we clicked