Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit ee8fe2c904)
r14.1.x
Michele Calgaro 1 year ago
parent d28f47b55c
commit bc3ec7f21b
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

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

@ -226,7 +226,7 @@ void AcquireImageDialog::setupImageOptions(void)
//---------------------------------------------
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()->setMargin( 11 );
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 );
groupBox2->setColumnLayout(0, Qt::Vertical );
groupBox2->setColumnLayout(0, TQt::Vertical );
groupBox2->layout()->setSpacing( 6 );
groupBox2->layout()->setMargin( 11 );
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();
category = (*albumIt).category();
date = (*albumIt).date().toString( Qt::LocalDate );
date = (*albumIt).date().toString( TQt::LocalDate );
items.setNum((*albumIt).images().count());
}

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

@ -121,7 +121,7 @@ BatchProcessImagesDialog::BatchProcessImagesDialog( KURL::List urlList, KIPI::In
//---------------------------------------------
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()->setMargin(KDialog::marginHint());
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_overWriteMode = new TQComboBox( false, groupBox2 );

@ -123,13 +123,13 @@ ImagePreview::ImagePreview(const TQString &fileOrig, const TQString &fileDest, c
h1->addSpacing( 5 );
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->setSegmentStyle ( TQLCDNumber::Flat );
LCDZoomFactorValue->display( TQString::number(INIT_ZOOM_FACTOR * 5) );
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");
ZoomFactorSlider->setTracking ( false );
ZoomFactorSlider->setTickInterval ( 5 );
@ -137,14 +137,14 @@ ImagePreview::ImagePreview(const TQString &fileOrig, const TQString &fileDest, c
g1->addWidget( groupBoxZoomFactor, 0, 0);
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);
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 "
"to move the image."));
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);
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 "
@ -356,7 +356,7 @@ void PixmapView::contentsWheelEvent( TQWheelEvent * e )
void PixmapView::contentsMousePressEvent ( TQMouseEvent * e )
{
if ( e->button() == Qt::LeftButton )
if ( e->button() == TQt::LeftButton )
{
m_xpos = e->x();
m_ypos = e->y();
@ -371,7 +371,7 @@ void PixmapView::contentsMouseReleaseEvent ( TQMouseEvent * /*e*/ )
void PixmapView::contentsMouseMoveEvent( TQMouseEvent * e )
{
if ( e->state() == Qt::LeftButton )
if ( e->state() == TQt::LeftButton )
{
uint newxpos = e->x();
uint newypos = e->y();

@ -56,7 +56,7 @@ RecompressOptionsDialog::RecompressOptionsDialog(TQWidget *parent)
// 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_JPEGCompression = new KIntNumInput(75, groupBox1);
@ -82,7 +82,7 @@ RecompressOptionsDialog::RecompressOptionsDialog(TQWidget *parent)
// 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_PNGCompression = new KIntNumInput(75, groupBox2);
@ -101,7 +101,7 @@ RecompressOptionsDialog::RecompressOptionsDialog(TQWidget *parent)
// 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_TIFFCompressionAlgo = new TQComboBox( false, groupBox3 );
@ -115,7 +115,7 @@ RecompressOptionsDialog::RecompressOptionsDialog(TQWidget *parent)
// 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_TGACompressionAlgo = new TQComboBox( false, groupBox4 );

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

@ -60,7 +60,7 @@ ResizeOptionsDialog::ResizeOptionsDialog(TQWidget *parent, int ResizeType)
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->setRange(10, 10000, 1, true );
@ -108,7 +108,7 @@ ResizeOptionsDialog::ResizeOptionsDialog(TQWidget *parent, int ResizeType)
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_Width = new KIntNumInput(1024, groupBox1);
@ -130,7 +130,7 @@ ResizeOptionsDialog::ResizeOptionsDialog(TQWidget *parent, int ResizeType)
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);
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
{
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->setRange(10, 10000, 1, true );
@ -224,7 +224,7 @@ ResizeOptionsDialog::ResizeOptionsDialog(TQWidget *parent, int ResizeType)
"all printing settings can be customized."));
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_paperSize = new TQComboBox( false, groupBox1 );
@ -256,7 +256,7 @@ ResizeOptionsDialog::ResizeOptionsDialog(TQWidget *parent, int ResizeType)
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_customXSize = new KIntNumInput(10, groupBox2);
@ -280,7 +280,7 @@ ResizeOptionsDialog::ResizeOptionsDialog(TQWidget *parent, int ResizeType)
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);
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);
monthBox->setColumnLayout(0, Qt::Vertical );
monthBox->setColumnLayout(0, TQt::Vertical );
monthBox->layout()->setSpacing( 6 );
monthBox->layout()->setMargin( 11 );

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

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

@ -174,12 +174,12 @@ void MonthWidget::mouseReleaseEvent(TQMouseEvent* e)
{
if (!contentsRect().contains(e->pos())) return;
if (e->button() == Qt::LeftButton)
if (e->button() == TQt::LeftButton)
{
KURL url = KIPI::ImageDialog::getImageURL(this, interface_);
setImage(url);
}
else if (e->button() == Qt::RightButton) {
else if (e->button() == TQt::RightButton) {
imagePath_ = TQString("");
CalSettings::instance()->setImage(month_,imagePath_);
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"),
page_setupSelection );
groupBox3->layout()->setSpacing( 6 );
@ -538,7 +538,7 @@ void CDArchivingDialog::setupBurning(void)
//---------------------------------------------
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()->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()->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()->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()->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"
"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);
optionsBox->setColumnLayout(0, Qt::Vertical);
optionsBox->setColumnLayout(0, TQt::Vertical);
optionsBox->layout()->setSpacing(KDialog::spacingHint());
optionsBox->layout()->setMargin(KDialog::spacingHint());
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);
accountBox->setColumnLayout(0, Qt::Vertical);
accountBox->setColumnLayout(0, TQt::Vertical);
accountBox->layout()->setSpacing(KDialog::spacingHint());
accountBox->layout()->setMargin(KDialog::spacingHint());
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"),
rightButtonGroup);
optionsBox->setColumnLayout(0, Qt::Vertical);
optionsBox->setColumnLayout(0, TQt::Vertical);
optionsBox->layout()->setSpacing(5);
optionsBox->layout()->setMargin(5);
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.
TQString time = trkptMetaElem.text();
if (time.isEmpty()) continue;
ptDateTime = TQDateTime::fromString(time, Qt::ISODate);
ptDateTime = TQDateTime::fromString(time, TQt::ISODate);
}
if (trkptMetaElem.tagName() == TQString("ele"))
{

@ -138,7 +138,7 @@ void GPSListViewItem::setDateTime(const TQDateTime& date)
if (date.isValid())
{
d->date = date;
setText(2, date.toString(Qt::LocalDate));
setText(2, date.toString(TQt::LocalDate));
}
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,
KDialog::spacingHint());

@ -74,12 +74,12 @@ KMLExportConfig::KMLExportConfig( TQWidget* parent, const char* name)
// --------------------------------------------------------------
// 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->setAlignment( TQt::AlignTop );
// 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->setAlignment( TQt::AlignTop );
@ -144,8 +144,8 @@ KMLExportConfig::KMLExportConfig( TQWidget* parent, const char* name)
// --------------------------------------------------------------
// Sizes
TQGroupBox *SizeGroupBox = new TQGroupBox(0, Qt::Vertical, i18n( "Sizes" ), plainPage() );
SizeGroupBox->setColumnLayout(0, Qt::Vertical );
TQGroupBox *SizeGroupBox = new TQGroupBox(0, TQt::Vertical, i18n( "Sizes" ), plainPage() );
SizeGroupBox->setColumnLayout(0, TQt::Vertical );
SizeGroupBoxLayout = new TQGridLayout( SizeGroupBox->layout(), 2, 3, KDialog::spacingHint() );
SizeGroupBoxLayout->setAlignment( TQt::AlignTop );
@ -175,7 +175,7 @@ KMLExportConfig::KMLExportConfig( TQWidget* parent, const char* name)
// --------------------------------------------------------------
// 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,
KDialog::spacingHint());
GPXTracksGroupBoxLayout->setAlignment( TQt::AlignTop );

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

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

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

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

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

@ -63,7 +63,7 @@ OptionsDialog::OptionsDialog(TQWidget *parent)
// 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);
IMBinFolderEditFilename = new KLineEdit( IMBinFolderGroup );
IMBinFolderEditFilename->setMinimumWidth( 300 );
@ -73,7 +73,7 @@ OptionsDialog::OptionsDialog(TQWidget *parent)
// 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);
MJBinFolderEditFilename = new KLineEdit( MJBinFolderGroup );
MJBinFolderEditFilename->setMinimumWidth( 300 );

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

@ -266,7 +266,7 @@ void SendImagesDialog::setupImagesList(void)
"button or use the drag-and-drop."));
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 ..." ) );
TQWhatsThis::add( m_addImagesButton, i18n("<p>Add images to the list.") );
TQPushButton* m_remImagesButton = imagesListButtonBox->addButton ( i18n( "&Remove" ));
@ -286,7 +286,7 @@ void SendImagesDialog::setupImagesList(void)
//---------------------------------------------
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()->setMargin( 11 );
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 );
groupBox2->setColumnLayout(0, Qt::Vertical );
groupBox2->setColumnLayout(0, TQt::Vertical );
groupBox2->layout()->setSpacing( 6 );
groupBox2->layout()->setMargin( 11 );
TQWhatsThis::add( groupBox2, i18n("<p>The properties of images to send.") );

@ -591,13 +591,13 @@ void SlideShow::mousePressEvent(TQMouseEvent *e)
if (m_endOfShow)
slotClose();
if (e->button() == Qt::LeftButton)
if (e->button() == TQt::LeftButton)
{
m_timer->stop();
m_toolBar->setPaused(true);
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_toolBar->setPaused(true);

@ -284,13 +284,13 @@ void SlideShowGL::mousePressEvent(TQMouseEvent *e)
if (m_endOfShow)
slotClose();
if (e->button() == Qt::LeftButton)
if (e->button() == TQt::LeftButton)
{
m_timer->stop();
m_toolBar->setPaused(true);
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_toolBar->setPaused(true);

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

@ -179,7 +179,7 @@ TimeAdjustDialog::TimeAdjustDialog(KIPI::Interface* interface, TQWidget* parent)
// -- Adjustment type ------------------------------------------------------------
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->subtract = new TQRadioButton(i18n("Subtract"), 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()
{
TQString oldDate = d->exampleDate.toString(Qt::LocalDate);
TQString oldDate = d->exampleDate.toString(TQt::LocalDate);
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, "
"change into<br><b>%2</b>")
.arg(oldDate).arg(newDate));
@ -465,9 +465,9 @@ void TimeAdjustDialog::slotOk()
if (d->syncIPTCDateCheck->isChecked())
{
ret &= exiv2Iface.setIptcTagString("Iptc.Application2.DateCreated",
dateTime.date().toString(Qt::ISODate));
dateTime.date().toString(TQt::ISODate));
ret &= exiv2Iface.setIptcTagString("Iptc.Application2.TimeCreated",
dateTime.time().toString(Qt::ISODate));
dateTime.time().toString(TQt::ISODate));
}
ret &= exiv2Iface.save(url.path());

Loading…
Cancel
Save