diff options
Diffstat (limited to 'digikam/utilities/setup/setupmime.cpp')
-rw-r--r-- | digikam/utilities/setup/setupmime.cpp | 142 |
1 files changed, 71 insertions, 71 deletions
diff --git a/digikam/utilities/setup/setupmime.cpp b/digikam/utilities/setup/setupmime.cpp index bf1acf1..b86a27d 100644 --- a/digikam/utilities/setup/setupmime.cpp +++ b/digikam/utilities/setup/setupmime.cpp @@ -21,17 +21,17 @@ * * ============================================================ */ -// Qt includes. - -#include <qlayout.h> -#include <qhbox.h> -#include <qhgroupbox.h> -#include <qgroupbox.h> -#include <qlabel.h> -#include <qlineedit.h> -#include <qwhatsthis.h> -#include <qtoolbutton.h> -#include <qtooltip.h> +// TQt includes. + +#include <tqlayout.h> +#include <tqhbox.h> +#include <tqhgroupbox.h> +#include <tqgroupbox.h> +#include <tqlabel.h> +#include <tqlineedit.h> +#include <tqwhatsthis.h> +#include <tqtoolbutton.h> +#include <tqtooltip.h> // KDE includes. @@ -65,160 +65,160 @@ public: revertRawFileFilterBtn = 0; } - QToolButton *revertImageFileFilterBtn; - QToolButton *revertMovieFileFilterBtn; - QToolButton *revertAudioFileFilterBtn; - QToolButton *revertRawFileFilterBtn; + TQToolButton *revertImageFileFilterBtn; + TQToolButton *revertMovieFileFilterBtn; + TQToolButton *revertAudioFileFilterBtn; + TQToolButton *revertRawFileFilterBtn; - QLineEdit *imageFileFilterEdit; - QLineEdit *movieFileFilterEdit; - QLineEdit *audioFileFilterEdit; - QLineEdit *rawFileFilterEdit; + TQLineEdit *imageFileFilterEdit; + TQLineEdit *movieFileFilterEdit; + TQLineEdit *audioFileFilterEdit; + TQLineEdit *rawFileFilterEdit; }; -SetupMime::SetupMime(QWidget* parent ) - : QWidget(parent) +SetupMime::SetupMime(TQWidget* tqparent ) + : TQWidget(tqparent) { d = new SetupMimePriv; - QVBoxLayout *layout = new QVBoxLayout(parent, 0, KDialog::spacingHint()); + TQVBoxLayout *tqlayout = new TQVBoxLayout(tqparent, 0, KDialog::spacingHint()); // -------------------------------------------------------- - QGroupBox *imageFileFilterBox = new QGroupBox(0, Qt::Horizontal, i18n("Image Files"), parent); - QGridLayout* grid1 = new QGridLayout(imageFileFilterBox->layout(), 1, 1, KDialog::spacingHint()); + TQGroupBox *imageFileFilterBox = new TQGroupBox(0, Qt::Horizontal, i18n("Image Files"), tqparent); + TQGridLayout* grid1 = new TQGridLayout(imageFileFilterBox->tqlayout(), 1, 1, KDialog::spacingHint()); - QLabel *logoLabel1 = new QLabel(imageFileFilterBox); + TQLabel *logoLabel1 = new TQLabel(imageFileFilterBox); logoLabel1->setPixmap(DesktopIcon("image")); - QLabel *imageFileFilterLabel = new QLabel(imageFileFilterBox); + TQLabel *imageFileFilterLabel = new TQLabel(imageFileFilterBox); imageFileFilterLabel->setText(i18n("Show only &image files with extensions:")); - QHBox *hbox1 = new QHBox(imageFileFilterBox); - d->imageFileFilterEdit = new QLineEdit(hbox1); - QWhatsThis::add( d->imageFileFilterEdit, i18n("<p>Here you can set the extensions of image files " + TQHBox *hbox1 = new TQHBox(imageFileFilterBox); + d->imageFileFilterEdit = new TQLineEdit(hbox1); + TQWhatsThis::add( d->imageFileFilterEdit, i18n("<p>Here you can set the extensions of image files " "to be displayed in Albums (such as JPEG or TIFF); " "clicking on these files will " "open them in the digiKam Image Editor.")); imageFileFilterLabel->setBuddy(d->imageFileFilterEdit); hbox1->setStretchFactor(d->imageFileFilterEdit, 10); - d->revertImageFileFilterBtn = new QToolButton(hbox1); + d->revertImageFileFilterBtn = new TQToolButton(hbox1); d->revertImageFileFilterBtn->setIconSet(SmallIcon("reload_page")); - QToolTip::add(d->revertImageFileFilterBtn, i18n("Revert to default settings")); + TQToolTip::add(d->revertImageFileFilterBtn, i18n("Revert to default settings")); grid1->addMultiCellWidget(logoLabel1, 0, 1, 0, 0); grid1->addMultiCellWidget(imageFileFilterLabel, 0, 0, 1, 1); grid1->addMultiCellWidget(hbox1, 1, 1, 1, 1); grid1->setColStretch(1, 10); - layout->addWidget(imageFileFilterBox); + tqlayout->addWidget(imageFileFilterBox); // -------------------------------------------------------- - QGroupBox *movieFileFilterBox = new QGroupBox(0, Qt::Horizontal, i18n("Movie Files"), parent); - QGridLayout* grid2 = new QGridLayout(movieFileFilterBox->layout(), 1, 1, KDialog::spacingHint()); + TQGroupBox *movieFileFilterBox = new TQGroupBox(0, Qt::Horizontal, i18n("Movie Files"), tqparent); + TQGridLayout* grid2 = new TQGridLayout(movieFileFilterBox->tqlayout(), 1, 1, KDialog::spacingHint()); - QLabel *logoLabel2 = new QLabel(movieFileFilterBox); + TQLabel *logoLabel2 = new TQLabel(movieFileFilterBox); logoLabel2->setPixmap(DesktopIcon("video")); - QLabel *movieFileFilterLabel = new QLabel(movieFileFilterBox); + TQLabel *movieFileFilterLabel = new TQLabel(movieFileFilterBox); movieFileFilterLabel->setText(i18n("Show only &movie files with extensions:")); - QHBox *hbox2 = new QHBox(movieFileFilterBox); - d->movieFileFilterEdit = new QLineEdit(hbox2); - QWhatsThis::add( d->movieFileFilterEdit, i18n("<p>Here you can set the extensions of movie files " + TQHBox *hbox2 = new TQHBox(movieFileFilterBox); + d->movieFileFilterEdit = new TQLineEdit(hbox2); + TQWhatsThis::add( d->movieFileFilterEdit, i18n("<p>Here you can set the extensions of movie files " "to be displayed in Albums (such as MPEG or AVI); " "clicking on these files will " "open them with the default KDE movie player.")); movieFileFilterLabel->setBuddy(d->movieFileFilterEdit); hbox2->setStretchFactor(d->movieFileFilterEdit, 10); - d->revertMovieFileFilterBtn = new QToolButton(hbox2); + d->revertMovieFileFilterBtn = new TQToolButton(hbox2); d->revertMovieFileFilterBtn->setIconSet(SmallIcon("reload_page")); - QToolTip::add(d->revertMovieFileFilterBtn, i18n("Revert to default settings")); + TQToolTip::add(d->revertMovieFileFilterBtn, i18n("Revert to default settings")); grid2->addMultiCellWidget(logoLabel2, 0, 1, 0, 0); grid2->addMultiCellWidget(movieFileFilterLabel, 0, 0, 1, 1); grid2->addMultiCellWidget(hbox2, 1, 1, 1, 1); grid2->setColStretch(1, 10); - layout->addWidget(movieFileFilterBox); + tqlayout->addWidget(movieFileFilterBox); // -------------------------------------------------------- - QGroupBox *audioFileFilterBox = new QGroupBox(0, Qt::Horizontal, i18n("Audio Files"), parent); - QGridLayout* grid3 = new QGridLayout(audioFileFilterBox->layout(), 1, 1, KDialog::spacingHint()); + TQGroupBox *audioFileFilterBox = new TQGroupBox(0, Qt::Horizontal, i18n("Audio Files"), tqparent); + TQGridLayout* grid3 = new TQGridLayout(audioFileFilterBox->tqlayout(), 1, 1, KDialog::spacingHint()); - QLabel *logoLabel3 = new QLabel(audioFileFilterBox); + TQLabel *logoLabel3 = new TQLabel(audioFileFilterBox); logoLabel3->setPixmap(DesktopIcon("sound")); - QLabel *audioFileFilterLabel = new QLabel(audioFileFilterBox); + TQLabel *audioFileFilterLabel = new TQLabel(audioFileFilterBox); audioFileFilterLabel->setText(i18n("Show only &audio files with extensions:")); - QHBox *hbox3 = new QHBox(audioFileFilterBox); - d->audioFileFilterEdit = new QLineEdit(hbox3); - QWhatsThis::add( d->audioFileFilterEdit, i18n("<p>Here you can set the extensions of audio files " + TQHBox *hbox3 = new TQHBox(audioFileFilterBox); + d->audioFileFilterEdit = new TQLineEdit(hbox3); + TQWhatsThis::add( d->audioFileFilterEdit, i18n("<p>Here you can set the extensions of audio files " "to be displayed in Albums (such as MP3 or OGG); " "clicking on these files will " "open them with the default KDE audio player.")); audioFileFilterLabel->setBuddy(d->audioFileFilterEdit); hbox3->setStretchFactor(d->audioFileFilterEdit, 10); - d->revertAudioFileFilterBtn = new QToolButton(hbox3); + d->revertAudioFileFilterBtn = new TQToolButton(hbox3); d->revertAudioFileFilterBtn->setIconSet(SmallIcon("reload_page")); - QToolTip::add(d->revertAudioFileFilterBtn, i18n("Revert to default settings")); + TQToolTip::add(d->revertAudioFileFilterBtn, i18n("Revert to default settings")); grid3->addMultiCellWidget(logoLabel3, 0, 1, 0, 0); grid3->addMultiCellWidget(audioFileFilterLabel, 0, 0, 1, 1); grid3->addMultiCellWidget(hbox3, 1, 1, 1, 1); grid3->setColStretch(1, 10); - layout->addWidget(audioFileFilterBox); + tqlayout->addWidget(audioFileFilterBox); // -------------------------------------------------------- - QGroupBox *rawFileFilterBox = new QGroupBox(0, Qt::Horizontal, i18n("RAW Files"), parent); - QGridLayout* grid4 = new QGridLayout(rawFileFilterBox->layout(), 1, 1, KDialog::spacingHint()); + TQGroupBox *rawFileFilterBox = new TQGroupBox(0, Qt::Horizontal, i18n("RAW Files"), tqparent); + TQGridLayout* grid4 = new TQGridLayout(rawFileFilterBox->tqlayout(), 1, 1, KDialog::spacingHint()); - QLabel *logoLabel4 = new QLabel(rawFileFilterBox); + TQLabel *logoLabel4 = new TQLabel(rawFileFilterBox); logoLabel4->setPixmap(DesktopIcon("kdcraw")); - QLabel *rawFileFilterLabel = new QLabel(rawFileFilterBox); + TQLabel *rawFileFilterLabel = new TQLabel(rawFileFilterBox); rawFileFilterLabel->setText(i18n("Show only &RAW files with extensions:")); - QHBox *hbox4 = new QHBox(rawFileFilterBox); - d->rawFileFilterEdit = new QLineEdit(hbox4); - QWhatsThis::add( d->rawFileFilterEdit, i18n("<p>Here you can set the extensions of RAW image files " + TQHBox *hbox4 = new TQHBox(rawFileFilterBox); + d->rawFileFilterEdit = new TQLineEdit(hbox4); + TQWhatsThis::add( d->rawFileFilterEdit, i18n("<p>Here you can set the extensions of RAW image files " "to be displayed in Albums (such as CRW, for Canon cameras, " "or NEF, for Nikon cameras).")); rawFileFilterLabel->setBuddy(d->rawFileFilterEdit); hbox4->setStretchFactor(d->rawFileFilterEdit, 10); - d->revertRawFileFilterBtn = new QToolButton(hbox4); + d->revertRawFileFilterBtn = new TQToolButton(hbox4); d->revertRawFileFilterBtn->setIconSet(SmallIcon("reload_page")); - QToolTip::add(d->revertRawFileFilterBtn, i18n("Revert to default settings")); + TQToolTip::add(d->revertRawFileFilterBtn, i18n("Revert to default settings")); grid4->addMultiCellWidget(logoLabel4, 0, 1, 0, 0); grid4->addMultiCellWidget(rawFileFilterLabel, 0, 0, 1, 1); grid4->addMultiCellWidget(hbox4, 1, 1, 1, 1); grid4->setColStretch(1, 10); - layout->addWidget(rawFileFilterBox); - layout->addStretch(); + tqlayout->addWidget(rawFileFilterBox); + tqlayout->addStretch(); // -------------------------------------------------------- - connect(d->revertImageFileFilterBtn, SIGNAL(clicked()), - this, SLOT(slotRevertImageFileFilter())); + connect(d->revertImageFileFilterBtn, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotRevertImageFileFilter())); - connect(d->revertMovieFileFilterBtn, SIGNAL(clicked()), - this, SLOT(slotRevertMovieFileFilter())); + connect(d->revertMovieFileFilterBtn, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotRevertMovieFileFilter())); - connect(d->revertAudioFileFilterBtn, SIGNAL(clicked()), - this, SLOT(slotRevertAudioFileFilter())); + connect(d->revertAudioFileFilterBtn, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotRevertAudioFileFilter())); - connect(d->revertRawFileFilterBtn, SIGNAL(clicked()), - this, SLOT(slotRevertRawFileFilter())); + connect(d->revertRawFileFilterBtn, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotRevertRawFileFilter())); // -------------------------------------------------------- |