Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/10/head
Michele Calgaro 7 months ago
parent 405d2a9eaa
commit ee8fe2c904
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -1141,7 +1141,7 @@ fi
if test "$kde_qtver" = "3"; then if test "$kde_qtver" = "3"; then
cat >> conftest.$ac_ext <<EOF cat >> conftest.$ac_ext <<EOF
(void)QStyleFactory::create(TQString::null); (void)QStyleFactory::create(TQString::null);
QCursor c(Qt::WhatsThisCursor); QCursor c(TQt::WhatsThisCursor);
EOF EOF
fi fi
cat >> conftest.$ac_ext <<EOF cat >> conftest.$ac_ext <<EOF

@ -226,7 +226,7 @@ void AcquireImageDialog::setupImageOptions(void)
//--------------------------------------------- //---------------------------------------------
TQGroupBox * groupBox2 = new TQGroupBox( i18n("Saving Options"), page_setupImageOptions ); TQGroupBox * groupBox2 = new TQGroupBox( i18n("Saving Options"), page_setupImageOptions );
groupBox2->setColumnLayout(0, Qt::Vertical ); groupBox2->setColumnLayout(0, TQt::Vertical );
groupBox2->layout()->setSpacing( 6 ); groupBox2->layout()->setSpacing( 6 );
groupBox2->layout()->setMargin( 11 ); groupBox2->layout()->setMargin( 11 );
TQWhatsThis::add( groupBox2, i18n("<p>The saving options of the target image.") ); TQWhatsThis::add( groupBox2, i18n("<p>The saving options of the target image.") );
@ -326,7 +326,7 @@ void AcquireImageDialog::setupAlbumsList(void)
//--------------------------------------------- //---------------------------------------------
TQGroupBox * groupBox2 = new TQGroupBox( i18n("Album Description"), page_setupAlbumsList ); TQGroupBox * groupBox2 = new TQGroupBox( i18n("Album Description"), page_setupAlbumsList );
groupBox2->setColumnLayout(0, Qt::Vertical ); groupBox2->setColumnLayout(0, TQt::Vertical );
groupBox2->layout()->setSpacing( 6 ); groupBox2->layout()->setSpacing( 6 );
groupBox2->layout()->setMargin( 11 ); groupBox2->layout()->setMargin( 11 );
TQWhatsThis::add( groupBox2, i18n("<p>The description of the current Album in the selection list.") ); TQWhatsThis::add( groupBox2, i18n("<p>The description of the current Album in the selection list.") );
@ -386,7 +386,7 @@ void AcquireImageDialog::slotAlbumSelected( const KURL &url )
{ {
comments = (*albumIt).comment(); comments = (*albumIt).comment();
category = (*albumIt).category(); category = (*albumIt).category();
date = (*albumIt).date().toString( Qt::LocalDate ); date = (*albumIt).date().toString( TQt::LocalDate );
items.setNum((*albumIt).images().count()); items.setNum((*albumIt).images().count());
} }

@ -301,7 +301,7 @@ bool ScreenGrabDialog::eventFilter( TQObject* o, TQEvent* e)
if ( TQWidget::mouseGrabber() != m_grabber ) if ( TQWidget::mouseGrabber() != m_grabber )
return false; return false;
if ( me->button() == Qt::LeftButton ) if ( me->button() == TQt::LeftButton )
slotPerformGrab(); slotPerformGrab();
} }

@ -121,7 +121,7 @@ BatchProcessImagesDialog::BatchProcessImagesDialog( KURL::List urlList, KIPI::In
//--------------------------------------------- //---------------------------------------------
TQHBoxLayout *hlay = new TQHBoxLayout( dvlay ); TQHBoxLayout *hlay = new TQHBoxLayout( dvlay );
groupBox1 = new TQGroupBox( 0, Qt::Vertical, box ); groupBox1 = new TQGroupBox( 0, TQt::Vertical, box );
groupBox1->layout()->setSpacing(KDialog::spacingHint()); groupBox1->layout()->setSpacing(KDialog::spacingHint());
groupBox1->layout()->setMargin(KDialog::marginHint()); groupBox1->layout()->setMargin(KDialog::marginHint());
TQGridLayout* grid = new TQGridLayout( groupBox1->layout(), 2, 3); TQGridLayout* grid = new TQGridLayout( groupBox1->layout(), 2, 3);
@ -155,7 +155,7 @@ BatchProcessImagesDialog::BatchProcessImagesDialog( KURL::List urlList, KIPI::In
//--------------------------------------------- //---------------------------------------------
groupBox2 = new TQGroupBox( 2, Qt::Horizontal, i18n("File Operations"), box ); groupBox2 = new TQGroupBox( 2, TQt::Horizontal, i18n("File Operations"), box );
m_labelOverWrite = new TQLabel (i18n("Overwrite mode:"), groupBox2); m_labelOverWrite = new TQLabel (i18n("Overwrite mode:"), groupBox2);
m_overWriteMode = new TQComboBox( false, groupBox2 ); m_overWriteMode = new TQComboBox( false, groupBox2 );

@ -123,13 +123,13 @@ ImagePreview::ImagePreview(const TQString &fileOrig, const TQString &fileDest, c
h1->addSpacing( 5 ); h1->addSpacing( 5 );
TQGridLayout* g1 = new TQGridLayout( v1, 1, 2 ); TQGridLayout* g1 = new TQGridLayout( v1, 1, 2 );
TQGroupBox * groupBoxZoomFactor = new TQGroupBox( 2, Qt::Horizontal, i18n("Zoom Factor"), box ); TQGroupBox * groupBoxZoomFactor = new TQGroupBox( 2, TQt::Horizontal, i18n("Zoom Factor"), box );
LCDZoomFactorValue = new TQLCDNumber (4, groupBoxZoomFactor, "ZoomFactorLCDvalue"); LCDZoomFactorValue = new TQLCDNumber (4, groupBoxZoomFactor, "ZoomFactorLCDvalue");
LCDZoomFactorValue->setSegmentStyle ( TQLCDNumber::Flat ); LCDZoomFactorValue->setSegmentStyle ( TQLCDNumber::Flat );
LCDZoomFactorValue->display( TQString::number(INIT_ZOOM_FACTOR * 5) ); LCDZoomFactorValue->display( TQString::number(INIT_ZOOM_FACTOR * 5) );
TQWhatsThis::add( LCDZoomFactorValue, i18n("<p>The zoom factor value, as a percentage.")); TQWhatsThis::add( LCDZoomFactorValue, i18n("<p>The zoom factor value, as a percentage."));
ZoomFactorSlider = new TQSlider (1, 20, 1, INIT_ZOOM_FACTOR, Qt::Horizontal, ZoomFactorSlider = new TQSlider (1, 20, 1, INIT_ZOOM_FACTOR, TQt::Horizontal,
groupBoxZoomFactor, "ZoomFactorSlider"); groupBoxZoomFactor, "ZoomFactorSlider");
ZoomFactorSlider->setTracking ( false ); ZoomFactorSlider->setTracking ( false );
ZoomFactorSlider->setTickInterval ( 5 ); ZoomFactorSlider->setTickInterval ( 5 );
@ -137,14 +137,14 @@ ImagePreview::ImagePreview(const TQString &fileOrig, const TQString &fileDest, c
g1->addWidget( groupBoxZoomFactor, 0, 0); g1->addWidget( groupBoxZoomFactor, 0, 0);
TQGridLayout* g2 = new TQGridLayout( v1, 1, 2 ); TQGridLayout* g2 = new TQGridLayout( v1, 1, 2 );
TQGroupBox * groupBox1 = new TQGroupBox( 1, Qt::Horizontal, i18n("Original Image"), box ); TQGroupBox * groupBox1 = new TQGroupBox( 1, TQt::Horizontal, i18n("Original Image"), box );
m_previewOrig = new PixmapView(cropActionOrig, groupBox1); m_previewOrig = new PixmapView(cropActionOrig, groupBox1);
TQWhatsThis::add( m_previewOrig, i18n("<p>This is the original image preview. You can use the mouse " TQWhatsThis::add( m_previewOrig, i18n("<p>This is the original image preview. You can use the mouse "
"wheel to change the zoom factor. Click in and use the mouse " "wheel to change the zoom factor. Click in and use the mouse "
"to move the image.")); "to move the image."));
g2->addWidget( groupBox1 , 0, 0); g2->addWidget( groupBox1 , 0, 0);
TQGroupBox * groupBox2 = new TQGroupBox( 1, Qt::Horizontal, i18n("Destination Image"), box ); TQGroupBox * groupBox2 = new TQGroupBox( 1, TQt::Horizontal, i18n("Destination Image"), box );
m_previewDest = new PixmapView(cropActionDest, groupBox2); m_previewDest = new PixmapView(cropActionDest, groupBox2);
TQWhatsThis::add( m_previewDest, i18n("<p>This is the destination image preview. You can use the " TQWhatsThis::add( m_previewDest, i18n("<p>This is the destination image preview. You can use the "
"mouse wheel to change the zoom factor. Click in and use the " "mouse wheel to change the zoom factor. Click in and use the "
@ -356,7 +356,7 @@ void PixmapView::contentsWheelEvent( TQWheelEvent * e )
void PixmapView::contentsMousePressEvent ( TQMouseEvent * e ) void PixmapView::contentsMousePressEvent ( TQMouseEvent * e )
{ {
if ( e->button() == Qt::LeftButton ) if ( e->button() == TQt::LeftButton )
{ {
m_xpos = e->x(); m_xpos = e->x();
m_ypos = e->y(); m_ypos = e->y();
@ -371,7 +371,7 @@ void PixmapView::contentsMouseReleaseEvent ( TQMouseEvent * /*e*/ )
void PixmapView::contentsMouseMoveEvent( TQMouseEvent * e ) void PixmapView::contentsMouseMoveEvent( TQMouseEvent * e )
{ {
if ( e->state() == Qt::LeftButton ) if ( e->state() == TQt::LeftButton )
{ {
uint newxpos = e->x(); uint newxpos = e->x();
uint newypos = e->y(); uint newypos = e->y();

@ -56,7 +56,7 @@ RecompressOptionsDialog::RecompressOptionsDialog(TQWidget *parent)
// JPEG file format. // JPEG file format.
TQGroupBox * groupBox1 = new TQGroupBox( 2, Qt::Horizontal, i18n("JPEG File Format"), box ); TQGroupBox * groupBox1 = new TQGroupBox( 2, TQt::Horizontal, i18n("JPEG File Format"), box );
m_label_JPEGimageCompression = new TQLabel (i18n("Image compression level:"), groupBox1); m_label_JPEGimageCompression = new TQLabel (i18n("Image compression level:"), groupBox1);
m_JPEGCompression = new KIntNumInput(75, groupBox1); m_JPEGCompression = new KIntNumInput(75, groupBox1);
@ -82,7 +82,7 @@ RecompressOptionsDialog::RecompressOptionsDialog(TQWidget *parent)
// PNG File format. // PNG File format.
TQGroupBox * groupBox2 = new TQGroupBox( 2, Qt::Horizontal, i18n("PNG File Format"), box ); TQGroupBox * groupBox2 = new TQGroupBox( 2, TQt::Horizontal, i18n("PNG File Format"), box );
m_label_PNGimageCompression = new TQLabel (i18n("Image compression level:"), groupBox2); m_label_PNGimageCompression = new TQLabel (i18n("Image compression level:"), groupBox2);
m_PNGCompression = new KIntNumInput(75, groupBox2); m_PNGCompression = new KIntNumInput(75, groupBox2);
@ -101,7 +101,7 @@ RecompressOptionsDialog::RecompressOptionsDialog(TQWidget *parent)
// TIFF File format. // TIFF File format.
TQGroupBox * groupBox3 = new TQGroupBox( 2, Qt::Horizontal, i18n("TIFF File Format"), box ); TQGroupBox * groupBox3 = new TQGroupBox( 2, TQt::Horizontal, i18n("TIFF File Format"), box );
m_label_TIFFimageCompression = new TQLabel (i18n("Image compression algorithm:"), groupBox3); m_label_TIFFimageCompression = new TQLabel (i18n("Image compression algorithm:"), groupBox3);
m_TIFFCompressionAlgo = new TQComboBox( false, groupBox3 ); m_TIFFCompressionAlgo = new TQComboBox( false, groupBox3 );
@ -115,7 +115,7 @@ RecompressOptionsDialog::RecompressOptionsDialog(TQWidget *parent)
// TGA File format. // TGA File format.
TQGroupBox * groupBox4 = new TQGroupBox( 2, Qt::Horizontal, i18n("TGA File Format"), box ); TQGroupBox * groupBox4 = new TQGroupBox( 2, TQt::Horizontal, i18n("TGA File Format"), box );
m_label_TGAimageCompression = new TQLabel (i18n("Image compression algorithm:"), groupBox4); m_label_TGAimageCompression = new TQLabel (i18n("Image compression algorithm:"), groupBox4);
m_TGACompressionAlgo = new TQComboBox( false, groupBox4 ); m_TGACompressionAlgo = new TQComboBox( false, groupBox4 );

@ -252,7 +252,7 @@ void RenameImagesWidget::sortList(int intSortOrder)
{ {
KURL url(item->pathSrc()); KURL url(item->pathSrc());
KIPI::ImageInfo info = m_interface->info(url); KIPI::ImageInfo info = m_interface->info(url);
item->setKey(info.time().toString(Qt::ISODate), false); item->setKey(info.time().toString(TQt::ISODate), false);
break; break;
} }
} }

@ -60,7 +60,7 @@ ResizeOptionsDialog::ResizeOptionsDialog(TQWidget *parent, int ResizeType)
if (m_Type == 0) // Proportional (1 dim.) if (m_Type == 0) // Proportional (1 dim.)
{ {
TQGroupBox * groupBox1 = new TQGroupBox( 1, Qt::Horizontal, i18n("Resize Options"), box ); TQGroupBox * groupBox1 = new TQGroupBox( 1, TQt::Horizontal, i18n("Resize Options"), box );
m_size = new KIntNumInput(640, groupBox1); m_size = new KIntNumInput(640, groupBox1);
m_size->setRange(10, 10000, 1, true ); m_size->setRange(10, 10000, 1, true );
@ -108,7 +108,7 @@ ResizeOptionsDialog::ResizeOptionsDialog(TQWidget *parent, int ResizeType)
if (m_Type == 1) // Proportional (2 dim.) if (m_Type == 1) // Proportional (2 dim.)
{ {
TQGroupBox * groupBox1 = new TQGroupBox( 2, Qt::Horizontal, i18n("Size Settings"), box ); TQGroupBox * groupBox1 = new TQGroupBox( 2, TQt::Horizontal, i18n("Size Settings"), box );
m_label_Width = new TQLabel (i18n("Width (pixels):"), groupBox1); m_label_Width = new TQLabel (i18n("Width (pixels):"), groupBox1);
m_Width = new KIntNumInput(1024, groupBox1); m_Width = new KIntNumInput(1024, groupBox1);
@ -130,7 +130,7 @@ ResizeOptionsDialog::ResizeOptionsDialog(TQWidget *parent, int ResizeType)
dvlay->addWidget( groupBox1 ); dvlay->addWidget( groupBox1 );
TQGroupBox * groupBox2 = new TQGroupBox( 2, Qt::Horizontal, i18n("Rendering Settings"), box ); TQGroupBox * groupBox2 = new TQGroupBox( 2, TQt::Horizontal, i18n("Rendering Settings"), box );
m_label_bgColor = new TQLabel(i18n("Background color:"), groupBox2); m_label_bgColor = new TQLabel(i18n("Background color:"), groupBox2);
TQColor bgColor = TQColor( 0, 0, 0 ); // Black per default. TQColor bgColor = TQColor( 0, 0, 0 ); // Black per default.
@ -173,7 +173,7 @@ ResizeOptionsDialog::ResizeOptionsDialog(TQWidget *parent, int ResizeType)
if (m_Type == 2) // Non proportional if (m_Type == 2) // Non proportional
{ {
TQGroupBox * groupBox1 = new TQGroupBox( 1, Qt::Horizontal, i18n("Resize Options"), box ); TQGroupBox * groupBox1 = new TQGroupBox( 1, TQt::Horizontal, i18n("Resize Options"), box );
m_fixedWidth = new KIntNumInput(640, groupBox1); m_fixedWidth = new KIntNumInput(640, groupBox1);
m_fixedWidth->setRange(10, 10000, 1, true ); m_fixedWidth->setRange(10, 10000, 1, true );
@ -224,7 +224,7 @@ ResizeOptionsDialog::ResizeOptionsDialog(TQWidget *parent, int ResizeType)
"all printing settings can be customized.")); "all printing settings can be customized."));
dvlay->addWidget( m_customSettings ); dvlay->addWidget( m_customSettings );
TQGroupBox * groupBox1 = new TQGroupBox( 2, Qt::Horizontal, i18n("Printing Standard Settings"), box ); TQGroupBox * groupBox1 = new TQGroupBox( 2, TQt::Horizontal, i18n("Printing Standard Settings"), box );
m_label_paperSize = new TQLabel (i18n("Paper size (cm):"), groupBox1); m_label_paperSize = new TQLabel (i18n("Paper size (cm):"), groupBox1);
m_paperSize = new TQComboBox( false, groupBox1 ); m_paperSize = new TQComboBox( false, groupBox1 );
@ -256,7 +256,7 @@ ResizeOptionsDialog::ResizeOptionsDialog(TQWidget *parent, int ResizeType)
dvlay->addWidget( groupBox1 ); dvlay->addWidget( groupBox1 );
TQGroupBox * groupBox2 = new TQGroupBox( 2, Qt::Horizontal, i18n("Printing Custom Settings"), box ); TQGroupBox * groupBox2 = new TQGroupBox( 2, TQt::Horizontal, i18n("Printing Custom Settings"), box );
m_label_customXSize = new TQLabel (i18n("Paper width (cm):"), groupBox2); m_label_customXSize = new TQLabel (i18n("Paper width (cm):"), groupBox2);
m_customXSize = new KIntNumInput(10, groupBox2); m_customXSize = new KIntNumInput(10, groupBox2);
@ -280,7 +280,7 @@ ResizeOptionsDialog::ResizeOptionsDialog(TQWidget *parent, int ResizeType)
dvlay->addWidget( groupBox2 ); dvlay->addWidget( groupBox2 );
TQGroupBox * groupBox3 = new TQGroupBox( 2, Qt::Horizontal, i18n("Rendering Settings"), box ); TQGroupBox * groupBox3 = new TQGroupBox( 2, TQt::Horizontal, i18n("Rendering Settings"), box );
m_label_backgroundColor = new TQLabel(i18n("Background color:"), groupBox3); m_label_backgroundColor = new TQLabel(i18n("Background color:"), groupBox3);
TQColor backgroundColor = TQColor( 255, 255, 255 ); // White per default. TQColor backgroundColor = TQColor( 255, 255, 255 ); // White per default.

@ -85,7 +85,7 @@ void CalSelect::setupView( KIPI::Interface* interface )
// ---------------------------------------------------------------- // ----------------------------------------------------------------
TQGroupBox *monthBox = new TQGroupBox(i18n("Select Images"), this); TQGroupBox *monthBox = new TQGroupBox(i18n("Select Images"), this);
monthBox->setColumnLayout(0, Qt::Vertical ); monthBox->setColumnLayout(0, TQt::Vertical );
monthBox->layout()->setSpacing( 6 ); monthBox->layout()->setSpacing( 6 );
monthBox->layout()->setMargin( 11 ); monthBox->layout()->setMargin( 11 );

@ -64,7 +64,7 @@ CalTemplate::CalTemplate(TQWidget* parent, const char* name)
previewSize_ = 300; previewSize_ = 300;
TQGroupBox *boxPreview_ = new TQGroupBox( i18n("Preview"), this ); TQGroupBox *boxPreview_ = new TQGroupBox( i18n("Preview"), this );
boxPreview_->setColumnLayout(0, Qt::Vertical); boxPreview_->setColumnLayout(0, TQt::Vertical);
boxPreview_->layout()->setMargin( 5 ); boxPreview_->layout()->setMargin( 5 );
TQVBoxLayout *previewLayout = new TQVBoxLayout(boxPreview_->layout()); TQVBoxLayout *previewLayout = new TQVBoxLayout(boxPreview_->layout());
@ -76,7 +76,7 @@ CalTemplate::CalTemplate(TQWidget* parent, const char* name)
// --------------------------------------------------------------- // ---------------------------------------------------------------
TQGroupBox *gbox = new TQGroupBox( i18n("Settings"), this ); TQGroupBox *gbox = new TQGroupBox( i18n("Settings"), this );
gbox->setColumnLayout(0, Qt::Vertical ); gbox->setColumnLayout(0, TQt::Vertical );
gbox->layout()->setSpacing( 11 ); gbox->layout()->setSpacing( 11 );
gbox->layout()->setMargin( 6 ); gbox->layout()->setMargin( 6 );
TQVBoxLayout* gboxLayout = new TQVBoxLayout( gbox->layout() ); TQVBoxLayout* gboxLayout = new TQVBoxLayout( gbox->layout() );
@ -135,7 +135,7 @@ CalTemplate::CalTemplate(TQWidget* parent, const char* name)
hlayout->addWidget(new TQLabel(i18n("Image to text ratio:"), gbox)); hlayout->addWidget(new TQLabel(i18n("Image to text ratio:"), gbox));
sliderRatio_ = new TQSlider(50,300,5,100,Qt::Horizontal,gbox); sliderRatio_ = new TQSlider(50,300,5,100,TQt::Horizontal,gbox);
hlayout->addWidget( sliderRatio_ ); hlayout->addWidget( sliderRatio_ );
gboxLayout->addLayout( hlayout ); gboxLayout->addLayout( hlayout );

@ -265,7 +265,7 @@ void CalWizard::slotPageSelected(const TQString&)
CalParams& params = cSettings_->calParams; CalParams& params = cSettings_->calParams;
// Qt::Orientation // Orientation
switch (params.imgPos) { switch (params.imgPos) {
case(CalParams::Top): { case(CalParams::Top): {
printer_->setOrientation(KPrinter::Portrait); printer_->setOrientation(KPrinter::Portrait);

@ -174,12 +174,12 @@ void MonthWidget::mouseReleaseEvent(TQMouseEvent* e)
{ {
if (!contentsRect().contains(e->pos())) return; if (!contentsRect().contains(e->pos())) return;
if (e->button() == Qt::LeftButton) if (e->button() == TQt::LeftButton)
{ {
KURL url = KIPI::ImageDialog::getImageURL(this, interface_); KURL url = KIPI::ImageDialog::getImageURL(this, interface_);
setImage(url); setImage(url);
} }
else if (e->button() == Qt::RightButton) { else if (e->button() == TQt::RightButton) {
imagePath_ = TQString(""); imagePath_ = TQString("");
CalSettings::instance()->setImage(month_,imagePath_); CalSettings::instance()->setImage(month_,imagePath_);
delete pixmap_; delete pixmap_;

@ -146,7 +146,7 @@ void CDArchivingDialog::setupSelection(void)
//--------------------------------------------- //---------------------------------------------
TQGroupBox * groupBox3 = new TQGroupBox( 2, Qt::Horizontal, TQGroupBox * groupBox3 = new TQGroupBox( 2, TQt::Horizontal,
i18n("Target Media Information"), i18n("Target Media Information"),
page_setupSelection ); page_setupSelection );
groupBox3->layout()->setSpacing( 6 ); groupBox3->layout()->setSpacing( 6 );
@ -538,7 +538,7 @@ void CDArchivingDialog::setupBurning(void)
//--------------------------------------------- //---------------------------------------------
TQGroupBox * groupBoxAdvancedOptions = new TQGroupBox( i18n("Advanced Burning Options"), page_burning ); TQGroupBox * groupBoxAdvancedOptions = new TQGroupBox( i18n("Advanced Burning Options"), page_burning );
groupBoxAdvancedOptions->setColumnLayout(0, Qt::Vertical ); groupBoxAdvancedOptions->setColumnLayout(0, TQt::Vertical );
groupBoxAdvancedOptions->layout()->setSpacing( 6 ); groupBoxAdvancedOptions->layout()->setSpacing( 6 );
groupBoxAdvancedOptions->layout()->setMargin( 11 ); groupBoxAdvancedOptions->layout()->setMargin( 11 );

@ -166,7 +166,7 @@ DisplayCompare::DisplayCompare(TQWidget* parent, KIPI::Interface* interface,
//--------------------------------------------- //---------------------------------------------
GroupBox1 = new TQGroupBox( 1, Qt::Horizontal, i18n("Original Files"), box ); GroupBox1 = new TQGroupBox( 1, TQt::Horizontal, i18n("Original Files"), box );
GroupBox1->layout()->setSpacing( 6 ); GroupBox1->layout()->setSpacing( 6 );
GroupBox1->layout()->setMargin( 11 ); GroupBox1->layout()->setMargin( 11 );
@ -201,7 +201,7 @@ DisplayCompare::DisplayCompare(TQWidget* parent, KIPI::Interface* interface,
//--------------------------------------------- //---------------------------------------------
GroupBox2 = new TQGroupBox( 1, Qt::Horizontal, i18n("Similar Files"), box ); GroupBox2 = new TQGroupBox( 1, TQt::Horizontal, i18n("Similar Files"), box );
GroupBox2->layout()->setSpacing( 6 ); GroupBox2->layout()->setSpacing( 6 );
GroupBox2->layout()->setMargin( 11 ); GroupBox2->layout()->setMargin( 11 );

@ -144,7 +144,7 @@ void FindDuplicateDialog::setupPageMethod(void)
//--------------------------------------------- //---------------------------------------------
TQGroupBox * groupBox1 = new TQGroupBox( 2, Qt::Horizontal, i18n("Method"), page_setupMethod ); TQGroupBox * groupBox1 = new TQGroupBox( 2, TQt::Horizontal, i18n("Method"), page_setupMethod );
groupBox1->layout()->setSpacing( 6 ); groupBox1->layout()->setSpacing( 6 );
groupBox1->layout()->setMargin( 11 ); groupBox1->layout()->setMargin( 11 );
@ -174,7 +174,7 @@ void FindDuplicateDialog::setupPageMethod(void)
//--------------------------------------------- //---------------------------------------------
TQGroupBox * groupBox2 = new TQGroupBox( 1, Qt::Horizontal, i18n("Cache Maintenance"), page_setupMethod ); TQGroupBox * groupBox2 = new TQGroupBox( 1, TQt::Horizontal, i18n("Cache Maintenance"), page_setupMethod );
new TQLabel(i18n("The find-duplicate-images process uses a cache folder for images' fingerprints\n" new TQLabel(i18n("The find-duplicate-images process uses a cache folder for images' fingerprints\n"
"to speed up the analysis of items from Albums."), groupBox2); "to speed up the analysis of items from Albums."), groupBox2);

@ -108,7 +108,7 @@ FlickrWidget::FlickrWidget(TQWidget* parent, KIPI::Interface *iface)
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------
TQGroupBox* optionsBox = new TQGroupBox(i18n("Override Default Options"), settingsBox); TQGroupBox* optionsBox = new TQGroupBox(i18n("Override Default Options"), settingsBox);
optionsBox->setColumnLayout(0, Qt::Vertical); optionsBox->setColumnLayout(0, TQt::Vertical);
optionsBox->layout()->setSpacing(KDialog::spacingHint()); optionsBox->layout()->setSpacing(KDialog::spacingHint());
optionsBox->layout()->setMargin(KDialog::spacingHint()); optionsBox->layout()->setMargin(KDialog::spacingHint());
TQGridLayout* optionsBoxLayout = new TQGridLayout(optionsBox->layout(), 5, 3); TQGridLayout* optionsBoxLayout = new TQGridLayout(optionsBox->layout(), 5, 3);
@ -156,7 +156,7 @@ FlickrWidget::FlickrWidget(TQWidget* parent, KIPI::Interface *iface)
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------
TQGroupBox* accountBox = new TQGroupBox(i18n("Account"), settingsBox); TQGroupBox* accountBox = new TQGroupBox(i18n("Account"), settingsBox);
accountBox->setColumnLayout(0, Qt::Vertical); accountBox->setColumnLayout(0, TQt::Vertical);
accountBox->layout()->setSpacing(KDialog::spacingHint()); accountBox->layout()->setSpacing(KDialog::spacingHint());
accountBox->layout()->setMargin(KDialog::spacingHint()); accountBox->layout()->setMargin(KDialog::spacingHint());
TQGridLayout* accountBoxLayout = new TQGridLayout(accountBox->layout(), 1, 3); TQGridLayout* accountBoxLayout = new TQGridLayout(accountBox->layout(), 1, 3);

@ -98,7 +98,7 @@ GalleryWidget::GalleryWidget( TQWidget* parent, const char* name, WFlags fl )
TQGroupBox* optionsBox = new TQGroupBox(i18n("Override Default Options"), TQGroupBox* optionsBox = new TQGroupBox(i18n("Override Default Options"),
rightButtonGroup); rightButtonGroup);
optionsBox->setColumnLayout(0, Qt::Vertical); optionsBox->setColumnLayout(0, TQt::Vertical);
optionsBox->layout()->setSpacing(5); optionsBox->layout()->setSpacing(5);
optionsBox->layout()->setMargin(5); optionsBox->layout()->setMargin(5);
TQGridLayout* optionsBoxLayout = new TQGridLayout(optionsBox->layout()); TQGridLayout* optionsBoxLayout = new TQGridLayout(optionsBox->layout());

@ -246,7 +246,7 @@ bool GPSDataParser::loadGPXFile(const KURL& url)
// Get GPS point time stamp. If not available continue to next point. // Get GPS point time stamp. If not available continue to next point.
TQString time = trkptMetaElem.text(); TQString time = trkptMetaElem.text();
if (time.isEmpty()) continue; if (time.isEmpty()) continue;
ptDateTime = TQDateTime::fromString(time, Qt::ISODate); ptDateTime = TQDateTime::fromString(time, TQt::ISODate);
} }
if (trkptMetaElem.tagName() == TQString("ele")) if (trkptMetaElem.tagName() == TQString("ele"))
{ {

@ -138,7 +138,7 @@ void GPSListViewItem::setDateTime(const TQDateTime& date)
if (date.isValid()) if (date.isValid())
{ {
d->date = date; d->date = date;
setText(2, date.toString(Qt::LocalDate)); setText(2, date.toString(TQt::LocalDate));
} }
else else
{ {

@ -144,7 +144,7 @@ GPSSyncDialog::GPSSyncDialog( KIPI::Interface* interface, TQWidget* parent)
// --------------------------------------------------------------- // ---------------------------------------------------------------
TQGroupBox *settingsBox = new TQGroupBox(0, Qt::Vertical, i18n("Settings"), plainPage()); TQGroupBox *settingsBox = new TQGroupBox(0, TQt::Vertical, i18n("Settings"), plainPage());
TQGridLayout *settingsBoxLayout = new TQGridLayout(settingsBox->layout(), 8, 1, TQGridLayout *settingsBoxLayout = new TQGridLayout(settingsBox->layout(), 8, 1,
KDialog::spacingHint()); KDialog::spacingHint());

@ -74,12 +74,12 @@ KMLExportConfig::KMLExportConfig( TQWidget* parent, const char* name)
// -------------------------------------------------------------- // --------------------------------------------------------------
// Target preferences // Target preferences
TargetPreferenceGroupBox = new TQGroupBox(0, Qt::Vertical, i18n( "Target Preferences" ), plainPage()); TargetPreferenceGroupBox = new TQGroupBox(0, TQt::Vertical, i18n( "Target Preferences" ), plainPage());
TargetPreferenceGroupBoxLayout = new TQGridLayout( TargetPreferenceGroupBox->layout(), 6, 5, KDialog::spacingHint()); TargetPreferenceGroupBoxLayout = new TQGridLayout( TargetPreferenceGroupBox->layout(), 6, 5, KDialog::spacingHint());
TargetPreferenceGroupBoxLayout->setAlignment( TQt::AlignTop ); TargetPreferenceGroupBoxLayout->setAlignment( TQt::AlignTop );
// target type // target type
buttonGroupTargetType = new TQButtonGroup(0, Qt::Vertical, i18n( "Target Type" ), TargetPreferenceGroupBox, "buttonGroupTargetType" ); buttonGroupTargetType = new TQButtonGroup(0, TQt::Vertical, i18n( "Target Type" ), TargetPreferenceGroupBox, "buttonGroupTargetType" );
buttonGroupTargetTypeLayout = new TQGridLayout( buttonGroupTargetType->layout(), 2, 1, KDialog::spacingHint() ); buttonGroupTargetTypeLayout = new TQGridLayout( buttonGroupTargetType->layout(), 2, 1, KDialog::spacingHint() );
buttonGroupTargetTypeLayout->setAlignment( TQt::AlignTop ); buttonGroupTargetTypeLayout->setAlignment( TQt::AlignTop );
@ -144,8 +144,8 @@ KMLExportConfig::KMLExportConfig( TQWidget* parent, const char* name)
// -------------------------------------------------------------- // --------------------------------------------------------------
// Sizes // Sizes
TQGroupBox *SizeGroupBox = new TQGroupBox(0, Qt::Vertical, i18n( "Sizes" ), plainPage() ); TQGroupBox *SizeGroupBox = new TQGroupBox(0, TQt::Vertical, i18n( "Sizes" ), plainPage() );
SizeGroupBox->setColumnLayout(0, Qt::Vertical ); SizeGroupBox->setColumnLayout(0, TQt::Vertical );
SizeGroupBoxLayout = new TQGridLayout( SizeGroupBox->layout(), 2, 3, KDialog::spacingHint() ); SizeGroupBoxLayout = new TQGridLayout( SizeGroupBox->layout(), 2, 3, KDialog::spacingHint() );
SizeGroupBoxLayout->setAlignment( TQt::AlignTop ); SizeGroupBoxLayout->setAlignment( TQt::AlignTop );
@ -175,7 +175,7 @@ KMLExportConfig::KMLExportConfig( TQWidget* parent, const char* name)
// -------------------------------------------------------------- // --------------------------------------------------------------
// GPX Tracks // GPX Tracks
TQGroupBox *GPXTracksGroupBox = new TQGroupBox(0, Qt::Vertical, i18n( "GPX Tracks" ), plainPage()); TQGroupBox *GPXTracksGroupBox = new TQGroupBox(0, TQt::Vertical, i18n( "GPX Tracks" ), plainPage());
TQGridLayout *GPXTracksGroupBoxLayout = new TQGridLayout(GPXTracksGroupBox->layout(), 5, 4, TQGridLayout *GPXTracksGroupBoxLayout = new TQGridLayout(GPXTracksGroupBox->layout(), 5, 4,
KDialog::spacingHint()); KDialog::spacingHint());
GPXTracksGroupBoxLayout->setAlignment( TQt::AlignTop ); GPXTracksGroupBoxLayout->setAlignment( TQt::AlignTop );

@ -85,7 +85,7 @@ CameraSelection::CameraSelection(TQWidget* parent)
TQGroupBox* mainBox = new TQGroupBox(page); TQGroupBox* mainBox = new TQGroupBox(page);
mainBox->setTitle(i18n("Camera Configuration")); mainBox->setTitle(i18n("Camera Configuration"));
mainBox->setColumnLayout(0, Qt::Vertical ); mainBox->setColumnLayout(0, TQt::Vertical );
mainBox->layout()->setSpacing( 5 ); mainBox->layout()->setSpacing( 5 );
mainBox->layout()->setMargin( 5 ); mainBox->layout()->setMargin( 5 );
TQGridLayout* mainBoxLayout = new TQGridLayout(mainBox->layout()); TQGridLayout* mainBoxLayout = new TQGridLayout(mainBox->layout());
@ -112,7 +112,7 @@ CameraSelection::CameraSelection(TQWidget* parent)
TQGroupBox* portPathBox = new TQGroupBox(mainBox); TQGroupBox* portPathBox = new TQGroupBox(mainBox);
portPathBox->setTitle( i18n("Camera Port Path")); portPathBox->setTitle( i18n("Camera Port Path"));
portPathBox->setColumnLayout(0, Qt::Vertical ); portPathBox->setColumnLayout(0, TQt::Vertical );
portPathBox->layout()->setSpacing( 5 ); portPathBox->layout()->setSpacing( 5 );
portPathBox->layout()->setMargin( 5 ); portPathBox->layout()->setMargin( 5 );
TQVBoxLayout* portPathBoxLayout = new TQVBoxLayout( portPathBox->layout() ); TQVBoxLayout* portPathBoxLayout = new TQVBoxLayout( portPathBox->layout() );

@ -89,7 +89,7 @@ SetupCamera::SetupCamera(TQWidget* parent, const char* name)
//--------------------------------------------- //---------------------------------------------
TQGroupBox* groupBox = new TQGroupBox(page, "groupBox"); TQGroupBox* groupBox = new TQGroupBox(page, "groupBox");
groupBox->setColumnLayout(0, Qt::Vertical); groupBox->setColumnLayout(0, TQt::Vertical);
groupBox->layout()->setSpacing(5); groupBox->layout()->setSpacing(5);
groupBox->layout()->setMargin(5); groupBox->layout()->setMargin(5);

@ -491,7 +491,7 @@ void ThumbView::contentsMouseMoveEvent(TQMouseEvent *e) {
if (!e) { if (!e) {
return; return;
} }
if (e->state() == Qt::NoButton) { if (e->state() == TQt::NoButton) {
return; return;
} }
// Dragging ? // Dragging ?
@ -575,14 +575,14 @@ void ThumbView::contentsMouseReleaseEvent(TQMouseEvent *e) {
delete d->rubber; delete d->rubber;
d->rubber = 0; d->rubber = 0;
} }
if (e->button() == Qt::RightButton) { if (e->button() == TQt::RightButton) {
ThumbItem *item = findItem(e->pos()); ThumbItem *item = findItem(e->pos());
if (item) { if (item) {
emit signalRightButtonClicked(item, e->globalPos()); emit signalRightButtonClicked(item, e->globalPos());
} else { } else {
emit signalRightButtonClicked(e->globalPos()); emit signalRightButtonClicked(e->globalPos());
} }
} else if ((e->button() == Qt::LeftButton) && !(e->state() & TQt::ShiftButton) && !(e->state() & TQt::ControlButton)) { } else if ((e->button() == TQt::LeftButton) && !(e->state() & TQt::ShiftButton) && !(e->state() & TQt::ControlButton)) {
if (d->pressedMoved) { if (d->pressedMoved) {
d->pressedMoved = false; d->pressedMoved = false;
return; return;

@ -274,7 +274,7 @@ void EXIFDateTime::readMetadata(TQByteArray& exifData)
datetimeStr = exiv2Iface.getExifTagString("Exif.Image.DateTime", false); datetimeStr = exiv2Iface.getExifTagString("Exif.Image.DateTime", false);
if (!datetimeStr.isEmpty()) if (!datetimeStr.isEmpty())
{ {
datetime = TQDateTime::fromString(datetimeStr, Qt::ISODate); datetime = TQDateTime::fromString(datetimeStr, TQt::ISODate);
if (datetime.isValid()) if (datetime.isValid())
{ {
d->dateCreatedSel->setDateTime(datetime); d->dateCreatedSel->setDateTime(datetime);
@ -305,7 +305,7 @@ void EXIFDateTime::readMetadata(TQByteArray& exifData)
datetimeStr = exiv2Iface.getExifTagString("Exif.Photo.DateTimeOriginal", false); datetimeStr = exiv2Iface.getExifTagString("Exif.Photo.DateTimeOriginal", false);
if (!datetimeStr.isEmpty()) if (!datetimeStr.isEmpty())
{ {
datetime = TQDateTime::fromString(datetimeStr, Qt::ISODate); datetime = TQDateTime::fromString(datetimeStr, TQt::ISODate);
if (datetime.isValid()) if (datetime.isValid())
{ {
d->dateOriginalSel->setDateTime(datetime); d->dateOriginalSel->setDateTime(datetime);
@ -334,7 +334,7 @@ void EXIFDateTime::readMetadata(TQByteArray& exifData)
datetimeStr = exiv2Iface.getExifTagString("Exif.Photo.DateTimeDigitized", false); datetimeStr = exiv2Iface.getExifTagString("Exif.Photo.DateTimeDigitized", false);
if (!datetimeStr.isEmpty()) if (!datetimeStr.isEmpty())
{ {
datetime = TQDateTime::fromString(datetimeStr, Qt::ISODate); datetime = TQDateTime::fromString(datetimeStr, TQt::ISODate);
if (datetime.isValid()) if (datetime.isValid())
{ {
d->dateDigitalizedSel->setDateTime(datetime); d->dateDigitalizedSel->setDateTime(datetime);
@ -375,9 +375,9 @@ void EXIFDateTime::applyMetadata(TQByteArray& exifData, TQByteArray& iptcData)
if (syncIPTCDateIsChecked()) if (syncIPTCDateIsChecked())
{ {
exiv2Iface.setIptcTagString("Iptc.Application2.DateCreated", exiv2Iface.setIptcTagString("Iptc.Application2.DateCreated",
d->dateCreatedSel->dateTime().date().toString(Qt::ISODate)); d->dateCreatedSel->dateTime().date().toString(TQt::ISODate));
exiv2Iface.setIptcTagString("Iptc.Application2.TimeCreated", exiv2Iface.setIptcTagString("Iptc.Application2.TimeCreated",
d->dateCreatedSel->dateTime().time().toString(Qt::ISODate)); d->dateCreatedSel->dateTime().time().toString(TQt::ISODate));
} }
} }
else else

@ -318,7 +318,7 @@ void IPTCDateTime::readMetadata(TQByteArray& iptcData)
d->dateCreatedCheck->setChecked(false); d->dateCreatedCheck->setChecked(false);
if (!dateStr.isEmpty()) if (!dateStr.isEmpty())
{ {
date = TQDate::fromString(dateStr, Qt::ISODate); date = TQDate::fromString(dateStr, TQt::ISODate);
if (date.isValid()) if (date.isValid())
{ {
d->dateCreatedSel->setDate(date); d->dateCreatedSel->setDate(date);
@ -333,7 +333,7 @@ void IPTCDateTime::readMetadata(TQByteArray& iptcData)
d->timeCreatedCheck->setChecked(false); d->timeCreatedCheck->setChecked(false);
if (!timeStr.isEmpty()) if (!timeStr.isEmpty())
{ {
time = TQTime::fromString(timeStr, Qt::ISODate); time = TQTime::fromString(timeStr, TQt::ISODate);
if (time.isValid()) if (time.isValid())
{ {
d->timeCreatedSel->setTime(time); d->timeCreatedSel->setTime(time);
@ -349,7 +349,7 @@ void IPTCDateTime::readMetadata(TQByteArray& iptcData)
d->dateReleasedCheck->setChecked(false); d->dateReleasedCheck->setChecked(false);
if (!dateStr.isEmpty()) if (!dateStr.isEmpty())
{ {
date = TQDate::fromString(dateStr, Qt::ISODate); date = TQDate::fromString(dateStr, TQt::ISODate);
if (date.isValid()) if (date.isValid())
{ {
d->dateReleasedSel->setDate(date); d->dateReleasedSel->setDate(date);
@ -362,7 +362,7 @@ void IPTCDateTime::readMetadata(TQByteArray& iptcData)
d->timeReleasedCheck->setChecked(false); d->timeReleasedCheck->setChecked(false);
if (!timeStr.isEmpty()) if (!timeStr.isEmpty())
{ {
time = TQTime::fromString(timeStr, Qt::ISODate); time = TQTime::fromString(timeStr, TQt::ISODate);
if (time.isValid()) if (time.isValid())
{ {
d->timeReleasedSel->setTime(time); d->timeReleasedSel->setTime(time);
@ -378,7 +378,7 @@ void IPTCDateTime::readMetadata(TQByteArray& iptcData)
d->dateExpiredCheck->setChecked(false); d->dateExpiredCheck->setChecked(false);
if (!dateStr.isEmpty()) if (!dateStr.isEmpty())
{ {
date = TQDate::fromString(dateStr, Qt::ISODate); date = TQDate::fromString(dateStr, TQt::ISODate);
if (date.isValid()) if (date.isValid())
{ {
d->dateExpiredSel->setDate(date); d->dateExpiredSel->setDate(date);
@ -391,7 +391,7 @@ void IPTCDateTime::readMetadata(TQByteArray& iptcData)
d->timeExpiredCheck->setChecked(false); d->timeExpiredCheck->setChecked(false);
if (!timeStr.isEmpty()) if (!timeStr.isEmpty())
{ {
time = TQTime::fromString(timeStr, Qt::ISODate); time = TQTime::fromString(timeStr, TQt::ISODate);
if (time.isValid()) if (time.isValid())
{ {
d->timeExpiredSel->setTime(time); d->timeExpiredSel->setTime(time);
@ -407,7 +407,7 @@ void IPTCDateTime::readMetadata(TQByteArray& iptcData)
d->dateDigitalizedCheck->setChecked(false); d->dateDigitalizedCheck->setChecked(false);
if (!dateStr.isEmpty()) if (!dateStr.isEmpty())
{ {
date = TQDate::fromString(dateStr, Qt::ISODate); date = TQDate::fromString(dateStr, TQt::ISODate);
if (date.isValid()) if (date.isValid())
{ {
d->dateDigitalizedSel->setDate(date); d->dateDigitalizedSel->setDate(date);
@ -420,7 +420,7 @@ void IPTCDateTime::readMetadata(TQByteArray& iptcData)
d->timeDigitalizedCheck->setChecked(false); d->timeDigitalizedCheck->setChecked(false);
if (!timeStr.isEmpty()) if (!timeStr.isEmpty())
{ {
time = TQTime::fromString(timeStr, Qt::ISODate); time = TQTime::fromString(timeStr, TQt::ISODate);
if (time.isValid()) if (time.isValid())
{ {
d->timeDigitalizedSel->setTime(time); d->timeDigitalizedSel->setTime(time);
@ -441,7 +441,7 @@ void IPTCDateTime::applyMetadata(TQByteArray& exifData, TQByteArray& iptcData)
if (d->dateCreatedCheck->isChecked()) if (d->dateCreatedCheck->isChecked())
{ {
exiv2Iface.setIptcTagString("Iptc.Application2.DateCreated", exiv2Iface.setIptcTagString("Iptc.Application2.DateCreated",
d->dateCreatedSel->date().toString(Qt::ISODate)); d->dateCreatedSel->date().toString(TQt::ISODate));
if (syncEXIFDateIsChecked()) if (syncEXIFDateIsChecked())
{ {
exiv2Iface.setExifTagString("Exif.Image.DateTime", exiv2Iface.setExifTagString("Exif.Image.DateTime",
@ -453,43 +453,43 @@ void IPTCDateTime::applyMetadata(TQByteArray& exifData, TQByteArray& iptcData)
if (d->dateReleasedCheck->isChecked()) if (d->dateReleasedCheck->isChecked())
exiv2Iface.setIptcTagString("Iptc.Application2.ReleaseDate", exiv2Iface.setIptcTagString("Iptc.Application2.ReleaseDate",
d->dateReleasedSel->date().toString(Qt::ISODate)); d->dateReleasedSel->date().toString(TQt::ISODate));
else else
exiv2Iface.removeIptcTag("Iptc.Application2.ReleaseDate"); exiv2Iface.removeIptcTag("Iptc.Application2.ReleaseDate");
if (d->dateExpiredCheck->isChecked()) if (d->dateExpiredCheck->isChecked())
exiv2Iface.setIptcTagString("Iptc.Application2.ExpirationDate", exiv2Iface.setIptcTagString("Iptc.Application2.ExpirationDate",
d->dateExpiredSel->date().toString(Qt::ISODate)); d->dateExpiredSel->date().toString(TQt::ISODate));
else else
exiv2Iface.removeIptcTag("Iptc.Application2.ExpirationDate"); exiv2Iface.removeIptcTag("Iptc.Application2.ExpirationDate");
if (d->dateDigitalizedCheck->isChecked()) if (d->dateDigitalizedCheck->isChecked())
exiv2Iface.setIptcTagString("Iptc.Application2.DigitizationDate", exiv2Iface.setIptcTagString("Iptc.Application2.DigitizationDate",
d->dateDigitalizedSel->date().toString(Qt::ISODate)); d->dateDigitalizedSel->date().toString(TQt::ISODate));
else else
exiv2Iface.removeIptcTag("Iptc.Application2.DigitizationDate"); exiv2Iface.removeIptcTag("Iptc.Application2.DigitizationDate");
if (d->timeCreatedCheck->isChecked()) if (d->timeCreatedCheck->isChecked())
exiv2Iface.setIptcTagString("Iptc.Application2.TimeCreated", exiv2Iface.setIptcTagString("Iptc.Application2.TimeCreated",
d->timeCreatedSel->time().toString(Qt::ISODate)); d->timeCreatedSel->time().toString(TQt::ISODate));
else else
exiv2Iface.removeIptcTag("Iptc.Application2.TimeCreated"); exiv2Iface.removeIptcTag("Iptc.Application2.TimeCreated");
if (d->timeReleasedCheck->isChecked()) if (d->timeReleasedCheck->isChecked())
exiv2Iface.setIptcTagString("Iptc.Application2.ReleaseTime", exiv2Iface.setIptcTagString("Iptc.Application2.ReleaseTime",
d->timeReleasedSel->time().toString(Qt::ISODate)); d->timeReleasedSel->time().toString(TQt::ISODate));
else else
exiv2Iface.removeIptcTag("Iptc.Application2.ReleaseTime"); exiv2Iface.removeIptcTag("Iptc.Application2.ReleaseTime");
if (d->timeExpiredCheck->isChecked()) if (d->timeExpiredCheck->isChecked())
exiv2Iface.setIptcTagString("Iptc.Application2.ExpirationTime", exiv2Iface.setIptcTagString("Iptc.Application2.ExpirationTime",
d->timeExpiredSel->time().toString(Qt::ISODate)); d->timeExpiredSel->time().toString(TQt::ISODate));
else else
exiv2Iface.removeIptcTag("Iptc.Application2.ExpirationTime"); exiv2Iface.removeIptcTag("Iptc.Application2.ExpirationTime");
if (d->timeDigitalizedCheck->isChecked()) if (d->timeDigitalizedCheck->isChecked())
exiv2Iface.setIptcTagString("Iptc.Application2.DigitizationTime", exiv2Iface.setIptcTagString("Iptc.Application2.DigitizationTime",
d->timeDigitalizedSel->time().toString(Qt::ISODate)); d->timeDigitalizedSel->time().toString(TQt::ISODate));
else else
exiv2Iface.removeIptcTag("Iptc.Application2.DigitizationTime"); exiv2Iface.removeIptcTag("Iptc.Application2.DigitizationTime");

@ -63,7 +63,7 @@ OptionsDialog::OptionsDialog(TQWidget *parent)
// ImageMagick binary programs folder // ImageMagick binary programs folder
TQGroupBox* IMBinFolderGroup = new TQGroupBox( 3, Qt::Horizontal, i18n( "ImageMagick Binary Programs Path" ), box); TQGroupBox* IMBinFolderGroup = new TQGroupBox( 3, TQt::Horizontal, i18n( "ImageMagick Binary Programs Path" ), box);
g1->addWidget( IMBinFolderGroup, 1, 1, TQt::AlignLeft); g1->addWidget( IMBinFolderGroup, 1, 1, TQt::AlignLeft);
IMBinFolderEditFilename = new KLineEdit( IMBinFolderGroup ); IMBinFolderEditFilename = new KLineEdit( IMBinFolderGroup );
IMBinFolderEditFilename->setMinimumWidth( 300 ); IMBinFolderEditFilename->setMinimumWidth( 300 );
@ -73,7 +73,7 @@ OptionsDialog::OptionsDialog(TQWidget *parent)
// MjpegTools binary programs folder // MjpegTools binary programs folder
TQGroupBox* MJBinFolderGroup = new TQGroupBox( 3, Qt::Horizontal, i18n( "MjpegTools Binary Programs Path" ), box); TQGroupBox* MJBinFolderGroup = new TQGroupBox( 3, TQt::Horizontal, i18n( "MjpegTools Binary Programs Path" ), box);
g1->addWidget( MJBinFolderGroup, 2, 1, TQt::AlignLeft); g1->addWidget( MJBinFolderGroup, 2, 1, TQt::AlignLeft);
MJBinFolderEditFilename = new KLineEdit( MJBinFolderGroup ); MJBinFolderEditFilename = new KLineEdit( MJBinFolderGroup );
MJBinFolderEditFilename->setMinimumWidth( 300 ); MJBinFolderEditFilename->setMinimumWidth( 300 );

@ -231,7 +231,7 @@ void CropFrame::paintEvent (TQPaintEvent *)
void CropFrame::mousePressEvent(TQMouseEvent *e) void CropFrame::mousePressEvent(TQMouseEvent *e)
{ {
if (e->button() == Qt::LeftButton) if (e->button() == TQt::LeftButton)
{ {
m_mouseDown = true; m_mouseDown = true;
this->mouseMoveEvent(e); this->mouseMoveEvent(e);
@ -241,7 +241,7 @@ void CropFrame::mousePressEvent(TQMouseEvent *e)
void CropFrame::mouseReleaseEvent(TQMouseEvent *e) void CropFrame::mouseReleaseEvent(TQMouseEvent *e)
{ {
if (e->button() == Qt::LeftButton) if (e->button() == TQt::LeftButton)
m_mouseDown = false; m_mouseDown = false;
} }

@ -266,7 +266,7 @@ void SendImagesDialog::setupImagesList(void)
"button or use the drag-and-drop.")); "button or use the drag-and-drop."));
grid->addMultiCellWidget(m_ImagesFilesListBox, 0, 2, 0, 1); grid->addMultiCellWidget(m_ImagesFilesListBox, 0, 2, 0, 1);
KButtonBox* imagesListButtonBox = new KButtonBox( m_groupBoxImageList,Qt::Vertical ); KButtonBox* imagesListButtonBox = new KButtonBox( m_groupBoxImageList,TQt::Vertical );
TQPushButton* m_addImagesButton = imagesListButtonBox->addButton ( i18n( "&Add ..." ) ); TQPushButton* m_addImagesButton = imagesListButtonBox->addButton ( i18n( "&Add ..." ) );
TQWhatsThis::add( m_addImagesButton, i18n("<p>Add images to the list.") ); TQWhatsThis::add( m_addImagesButton, i18n("<p>Add images to the list.") );
TQPushButton* m_remImagesButton = imagesListButtonBox->addButton ( i18n( "&Remove" )); TQPushButton* m_remImagesButton = imagesListButtonBox->addButton ( i18n( "&Remove" ));
@ -286,7 +286,7 @@ void SendImagesDialog::setupImagesList(void)
//--------------------------------------------- //---------------------------------------------
TQGroupBox * groupBox2 = new TQGroupBox( i18n("Image Description"), page_setupImagesList ); TQGroupBox * groupBox2 = new TQGroupBox( i18n("Image Description"), page_setupImagesList );
groupBox2->setColumnLayout(0, Qt::Vertical ); groupBox2->setColumnLayout(0, TQt::Vertical );
groupBox2->layout()->setSpacing( 6 ); groupBox2->layout()->setSpacing( 6 );
groupBox2->layout()->setMargin( 11 ); groupBox2->layout()->setMargin( 11 );
TQWhatsThis::add( groupBox2, i18n("<p>The description of the currently selected image on the list.") ); TQWhatsThis::add( groupBox2, i18n("<p>The description of the currently selected image on the list.") );
@ -433,7 +433,7 @@ void SendImagesDialog::setupEmailOptions(void)
//--------------------------------------------- //---------------------------------------------
TQGroupBox * groupBox2 = new TQGroupBox( i18n("Image Properties"), page_setupEmailOptions ); TQGroupBox * groupBox2 = new TQGroupBox( i18n("Image Properties"), page_setupEmailOptions );
groupBox2->setColumnLayout(0, Qt::Vertical ); groupBox2->setColumnLayout(0, TQt::Vertical );
groupBox2->layout()->setSpacing( 6 ); groupBox2->layout()->setSpacing( 6 );
groupBox2->layout()->setMargin( 11 ); groupBox2->layout()->setMargin( 11 );
TQWhatsThis::add( groupBox2, i18n("<p>The properties of images to send.") ); TQWhatsThis::add( groupBox2, i18n("<p>The properties of images to send.") );

@ -591,13 +591,13 @@ void SlideShow::mousePressEvent(TQMouseEvent *e)
if (m_endOfShow) if (m_endOfShow)
slotClose(); slotClose();
if (e->button() == Qt::LeftButton) if (e->button() == TQt::LeftButton)
{ {
m_timer->stop(); m_timer->stop();
m_toolBar->setPaused(true); m_toolBar->setPaused(true);
slotNext(); slotNext();
} }
else if (e->button() == Qt::RightButton && m_fileIndex-1 >= 0) else if (e->button() == TQt::RightButton && m_fileIndex-1 >= 0)
{ {
m_timer->stop(); m_timer->stop();
m_toolBar->setPaused(true); m_toolBar->setPaused(true);

@ -284,13 +284,13 @@ void SlideShowGL::mousePressEvent(TQMouseEvent *e)
if (m_endOfShow) if (m_endOfShow)
slotClose(); slotClose();
if (e->button() == Qt::LeftButton) if (e->button() == TQt::LeftButton)
{ {
m_timer->stop(); m_timer->stop();
m_toolBar->setPaused(true); m_toolBar->setPaused(true);
slotNext(); slotNext();
} }
else if (e->button() == Qt::RightButton && m_fileIndex-1 >= 0) else if (e->button() == TQt::RightButton && m_fileIndex-1 >= 0)
{ {
m_timer->stop(); m_timer->stop();
m_toolBar->setPaused(true); m_toolBar->setPaused(true);

@ -98,7 +98,7 @@ GalleryWidget::GalleryWidget( TQWidget* parent, const char* name, WFlags fl )
TQGroupBox* optionsBox = new TQGroupBox(i18n("Override Default Options"), TQGroupBox* optionsBox = new TQGroupBox(i18n("Override Default Options"),
rightButtonGroup); rightButtonGroup);
optionsBox->setColumnLayout(0, Qt::Vertical); optionsBox->setColumnLayout(0, TQt::Vertical);
optionsBox->layout()->setSpacing(5); optionsBox->layout()->setSpacing(5);
optionsBox->layout()->setMargin(5); optionsBox->layout()->setMargin(5);
TQGridLayout* optionsBoxLayout = new TQGridLayout(optionsBox->layout()); TQGridLayout* optionsBoxLayout = new TQGridLayout(optionsBox->layout());

@ -179,7 +179,7 @@ TimeAdjustDialog::TimeAdjustDialog(KIPI::Interface* interface, TQWidget* parent)
// -- Adjustment type ------------------------------------------------------------ // -- Adjustment type ------------------------------------------------------------
TQVGroupBox *adjGB = new TQVGroupBox(i18n("Adjustment Type"), plainPage()); TQVGroupBox *adjGB = new TQVGroupBox(i18n("Adjustment Type"), plainPage());
d->adjustTypeGrp = new TQButtonGroup(1, Qt::Horizontal, adjGB); d->adjustTypeGrp = new TQButtonGroup(1, TQt::Horizontal, adjGB);
d->add = new TQRadioButton(i18n("Add"), d->adjustTypeGrp); d->add = new TQRadioButton(i18n("Add"), d->adjustTypeGrp);
d->subtract = new TQRadioButton(i18n("Subtract"), d->adjustTypeGrp); d->subtract = new TQRadioButton(i18n("Subtract"), d->adjustTypeGrp);
d->exif = new TQRadioButton(i18n("Set file date to EXIF/IPTC creation date"), d->adjustTypeGrp); d->exif = new TQRadioButton(i18n("Set file date to EXIF/IPTC creation date"), d->adjustTypeGrp);
@ -398,9 +398,9 @@ void TimeAdjustDialog::setImages(const KURL::List& images)
void TimeAdjustDialog::slotUpdateExample() void TimeAdjustDialog::slotUpdateExample()
{ {
TQString oldDate = d->exampleDate.toString(Qt::LocalDate); TQString oldDate = d->exampleDate.toString(TQt::LocalDate);
TQDateTime date = updateTime(KURL(), d->exampleDate); TQDateTime date = updateTime(KURL(), d->exampleDate);
TQString newDate = date.toString(Qt::LocalDate); TQString newDate = date.toString(TQt::LocalDate);
d->exampleAdj->setText(i18n("<b>%1</b><br>would, for example, " d->exampleAdj->setText(i18n("<b>%1</b><br>would, for example, "
"change into<br><b>%2</b>") "change into<br><b>%2</b>")
.arg(oldDate).arg(newDate)); .arg(oldDate).arg(newDate));
@ -465,9 +465,9 @@ void TimeAdjustDialog::slotOk()
if (d->syncIPTCDateCheck->isChecked()) if (d->syncIPTCDateCheck->isChecked())
{ {
ret &= exiv2Iface.setIptcTagString("Iptc.Application2.DateCreated", ret &= exiv2Iface.setIptcTagString("Iptc.Application2.DateCreated",
dateTime.date().toString(Qt::ISODate)); dateTime.date().toString(TQt::ISODate));
ret &= exiv2Iface.setIptcTagString("Iptc.Application2.TimeCreated", ret &= exiv2Iface.setIptcTagString("Iptc.Application2.TimeCreated",
dateTime.time().toString(Qt::ISODate)); dateTime.time().toString(TQt::ISODate));
} }
ret &= exiv2Iface.save(url.path()); ret &= exiv2Iface.save(url.path());

Loading…
Cancel
Save