summaryrefslogtreecommitdiffstats
path: root/kipi-plugins/flickrexport/flickrwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kipi-plugins/flickrexport/flickrwidget.cpp')
-rw-r--r--kipi-plugins/flickrexport/flickrwidget.cpp106
1 files changed, 53 insertions, 53 deletions
diff --git a/kipi-plugins/flickrexport/flickrwidget.cpp b/kipi-plugins/flickrexport/flickrwidget.cpp
index 45e5afb..52d4dd6 100644
--- a/kipi-plugins/flickrexport/flickrwidget.cpp
+++ b/kipi-plugins/flickrexport/flickrwidget.cpp
@@ -21,20 +21,20 @@
*
* ============================================================ */
-// Qt includes.
-
-#include <qpushbutton.h>
-#include <qlabel.h>
-#include <qframe.h>
-#include <qheader.h>
-#include <qbuttongroup.h>
-#include <qradiobutton.h>
-#include <qgroupbox.h>
-#include <qspinbox.h>
-#include <qcheckbox.h>
-#include <qlayout.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
+// TQt includes.
+
+#include <tqpushbutton.h>
+#include <tqlabel.h>
+#include <tqframe.h>
+#include <tqheader.h>
+#include <tqbuttongroup.h>
+#include <tqradiobutton.h>
+#include <tqgroupbox.h>
+#include <tqspinbox.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
// KDE includes.
@@ -62,18 +62,18 @@
namespace KIPIFlickrExportPlugin
{
-FlickrWidget::FlickrWidget(QWidget* parent, KIPI::Interface *iface)
- : QWidget(parent)
+FlickrWidget::FlickrWidget(TQWidget* tqparent, KIPI::Interface *iface)
+ : TQWidget(tqparent)
{
setName("FlickrWidget");
- QVBoxLayout* flickrWidgetLayout = new QVBoxLayout(this, 5, 5);
+ TQVBoxLayout* flickrWidgetLayout = new TQVBoxLayout(this, 5, 5);
m_photoView = 0; //new KHTMLPart(splitter);
- KSeparator *line = new KSeparator(Horizontal, this);
+ KSeparator *line = new KSeparator(Qt::Horizontal, this);
m_tab = new KTabWidget(this);
KActiveLabel *headerLabel = new KActiveLabel(this);
- headerLabel->setFocusPolicy(NoFocus);
+ headerLabel->setFocusPolicy(TQ_NoFocus);
headerLabel->setLinkUnderline(false);
headerLabel->setText(i18n("<qt><b><h2><a href='http://www.flickr.com'>"
"<font color=\"#0065DE\">flick</font>"
@@ -84,21 +84,21 @@ FlickrWidget::FlickrWidget(QWidget* parent, KIPI::Interface *iface)
// -------------------------------------------------------------------
m_imglst = new ImagesList(m_tab, iface);
- QWidget* settingsBox = new QWidget(m_tab);
- QVBoxLayout* settingsBoxLayout = new QVBoxLayout(settingsBox);
+ TQWidget* settingsBox = new TQWidget(m_tab);
+ TQVBoxLayout* settingsBoxLayout = new TQVBoxLayout(settingsBox);
- //m_newAlbumBtn = new QPushButton(settingsBox, "m_newAlbumBtn");
- //m_newAlbumBtn->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
+ //m_newAlbumBtn = new TQPushButton(settingsBox, "m_newAlbumBtn");
+ //m_newAlbumBtn->tqsetSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed);
//m_newAlbumBtn->setText(i18n("&New Album"));
- QGridLayout* tagsLayout = new QGridLayout(1, 1);
- QLabel* tagsLabel = new QLabel(i18n("Added Tags: "), settingsBox);
+ TQGridLayout* tagsLayout = new TQGridLayout(1, 1);
+ TQLabel* tagsLabel = new TQLabel(i18n("Added Tags: "), settingsBox);
m_tagsLineEdit = new KLineEdit(settingsBox);
- m_exportHostTagsCheckBox = new QCheckBox(settingsBox);
+ m_exportHostTagsCheckBox = new TQCheckBox(settingsBox);
m_exportHostTagsCheckBox->setText(i18n("Use Host Application Tags"));
- m_stripSpaceTagsCheckBox = new QCheckBox(settingsBox);
+ m_stripSpaceTagsCheckBox = new TQCheckBox(settingsBox);
m_stripSpaceTagsCheckBox->setText(i18n("Strip Space From Host Application Tags"));
- QToolTip::add(m_tagsLineEdit, i18n("Enter here new tags separated by space."));
+ TQToolTip::add(m_tagsLineEdit, i18n("Enter here new tags separated by space."));
tagsLayout->addWidget(tagsLabel, 0, 0);
tagsLayout->addWidget(m_tagsLineEdit, 0, 1);
@@ -107,38 +107,38 @@ FlickrWidget::FlickrWidget(QWidget* parent, KIPI::Interface *iface)
// ------------------------------------------------------------------------
- QGroupBox* optionsBox = new QGroupBox(i18n("Override Default Options"), settingsBox);
+ TQGroupBox* optionsBox = new TQGroupBox(i18n("Override Default Options"), settingsBox);
optionsBox->setColumnLayout(0, Qt::Vertical);
- optionsBox->layout()->setSpacing(KDialog::spacingHint());
- optionsBox->layout()->setMargin(KDialog::spacingHint());
- QGridLayout* optionsBoxLayout = new QGridLayout(optionsBox->layout(), 5, 3);
+ optionsBox->tqlayout()->setSpacing(KDialog::spacingHint());
+ optionsBox->tqlayout()->setMargin(KDialog::spacingHint());
+ TQGridLayout* optionsBoxLayout = new TQGridLayout(optionsBox->tqlayout(), 5, 3);
- m_publicCheckBox = new QCheckBox(optionsBox);
+ m_publicCheckBox = new TQCheckBox(optionsBox);
m_publicCheckBox->setText(i18n("As in accessible for people", "Public (anyone can see them)"));
- m_familyCheckBox = new QCheckBox(optionsBox);
+ m_familyCheckBox = new TQCheckBox(optionsBox);
m_familyCheckBox->setText(i18n("Visible to Family"));
- m_friendsCheckBox = new QCheckBox(optionsBox);
+ m_friendsCheckBox = new TQCheckBox(optionsBox);
m_friendsCheckBox->setText(i18n("Visible to Friends"));
- m_resizeCheckBox = new QCheckBox(optionsBox);
+ m_resizeCheckBox = new TQCheckBox(optionsBox);
m_resizeCheckBox->setText(i18n("Resize photos before uploading"));
m_resizeCheckBox->setChecked(false);
- m_dimensionSpinBox = new QSpinBox(0, 5000, 10, optionsBox);
+ m_dimensionSpinBox = new TQSpinBox(0, 5000, 10, optionsBox);
m_dimensionSpinBox->setValue(600);
- m_dimensionSpinBox->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
+ m_dimensionSpinBox->tqsetSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed);
m_dimensionSpinBox->setEnabled(false);
- QLabel* resizeLabel = new QLabel(i18n("Maximum dimension (pixels):"), optionsBox);
+ TQLabel* resizeLabel = new TQLabel(i18n("Maximum dimension (pixels):"), optionsBox);
- m_imageQualitySpinBox = new QSpinBox(0, 100, 1, optionsBox);
+ m_imageQualitySpinBox = new TQSpinBox(0, 100, 1, optionsBox);
m_imageQualitySpinBox->setValue(85);
- m_imageQualitySpinBox->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
+ m_imageQualitySpinBox->tqsetSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed);
// NOTE: The term Compression factor may be to technical to write in the label
- QLabel* imageQualityLabel = new QLabel(i18n("JPEG Image Quality (higher is better):"), optionsBox);
+ TQLabel* imageQualityLabel = new TQLabel(i18n("JPEG Image Quality (higher is better):"), optionsBox);
optionsBoxLayout->addMultiCellWidget(m_publicCheckBox, 0, 0, 0, 3);
optionsBoxLayout->addMultiCellWidget(m_familyCheckBox, 1, 1, 0, 3);
@@ -155,15 +155,15 @@ FlickrWidget::FlickrWidget(QWidget* parent, KIPI::Interface *iface)
// ------------------------------------------------------------------------
- QGroupBox* accountBox = new QGroupBox(i18n("Account"), settingsBox);
+ TQGroupBox* accountBox = new TQGroupBox(i18n("Account"), settingsBox);
accountBox->setColumnLayout(0, Qt::Vertical);
- accountBox->layout()->setSpacing(KDialog::spacingHint());
- accountBox->layout()->setMargin(KDialog::spacingHint());
- QGridLayout* accountBoxLayout = new QGridLayout(accountBox->layout(), 1, 3);
+ accountBox->tqlayout()->setSpacing(KDialog::spacingHint());
+ accountBox->tqlayout()->setMargin(KDialog::spacingHint());
+ TQGridLayout* accountBoxLayout = new TQGridLayout(accountBox->tqlayout(), 1, 3);
- QLabel *userNameLabel = new QLabel(i18n("User Name: "), accountBox);
- m_userNameDisplayLabel = new QLabel(accountBox);
- m_changeUserButton = new QPushButton(accountBox);
+ TQLabel *userNameLabel = new TQLabel(i18n("User Name: "), accountBox);
+ m_userNameDisplayLabel = new TQLabel(accountBox);
+ m_changeUserButton = new TQPushButton(accountBox);
m_changeUserButton->setText(i18n("Use a different account"));
m_changeUserButton->setIconSet(SmallIcon("switchuser"));
@@ -194,11 +194,11 @@ FlickrWidget::FlickrWidget(QWidget* parent, KIPI::Interface *iface)
// ------------------------------------------------------------------------
- connect(m_resizeCheckBox, SIGNAL(clicked()),
- this, SLOT(slotResizeChecked()));
+ connect(m_resizeCheckBox, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotResizeChecked()));
- connect(m_exportHostTagsCheckBox, SIGNAL(clicked()),
- this, SLOT(slotExportHostTagsChecked()));
+ connect(m_exportHostTagsCheckBox, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotExportHostTagsChecked()));
}
FlickrWidget::~FlickrWidget()