diff options
Diffstat (limited to 'src/iconsviewsettingspage.cpp')
-rw-r--r-- | src/iconsviewsettingspage.cpp | 100 |
1 files changed, 50 insertions, 50 deletions
diff --git a/src/iconsviewsettingspage.cpp b/src/iconsviewsettingspage.cpp index f23e185..5050db7 100644 --- a/src/iconsviewsettingspage.cpp +++ b/src/iconsviewsettingspage.cpp @@ -20,11 +20,11 @@ #include "iconsviewsettingspage.h" -#include <qlabel.h> -#include <qslider.h> -#include <qbuttongroup.h> -#include <qradiobutton.h> -#include <qspinbox.h> +#include <tqlabel.h> +#include <tqslider.h> +#include <tqbuttongroup.h> +#include <tqradiobutton.h> +#include <tqspinbox.h> #include <kiconloader.h> #include <kfontcombo.h> #include <kdialog.h> @@ -39,8 +39,8 @@ #define GRID_SPACING_INC 12 IconsViewSettingsPage::IconsViewSettingsPage(DolphinIconsView::LayoutMode mode, - QWidget* parent) : - QVBox(parent), + TQWidget* tqparent) : + TQVBox(tqparent), m_mode(mode), m_iconSizeSlider(0), m_previewSizeSlider(0), @@ -53,7 +53,7 @@ IconsViewSettingsPage::IconsViewSettingsPage(DolphinIconsView::LayoutMode mode, { const int spacing = KDialog::spacingHint(); const int margin = KDialog::marginHint(); - const QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); + const TQSizePolicy sizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); setSpacing(spacing); setMargin(margin); @@ -61,26 +61,26 @@ IconsViewSettingsPage::IconsViewSettingsPage(DolphinIconsView::LayoutMode mode, DolphinIconsViewSettings* settings = DolphinSettings::instance().iconsView(m_mode); assert(settings != 0); - QHBox* sizesLayout = new QHBox(this); + TQHBox* sizesLayout = new TQHBox(this); sizesLayout->setSpacing(spacing); - sizesLayout->setSizePolicy(sizePolicy); + sizesLayout->tqsetSizePolicy(sizePolicy); // create 'Icon Size' group including slider and preview - QGroupBox* iconSizeGroup = new QGroupBox(2, Qt::Vertical, i18n("Icon Size"), sizesLayout); - iconSizeGroup->setSizePolicy(sizePolicy); + TQGroupBox* iconSizeGroup = new TQGroupBox(2, Qt::Vertical, i18n("Icon Size"), sizesLayout); + iconSizeGroup->tqsetSizePolicy(sizePolicy); iconSizeGroup->setMargin(margin); - const QColor iconBackgroundColor(KGlobalSettings::baseColor()); + const TQColor iconBackgroundColor(KGlobalSettings::baseColor()); - QHBox* iconSizeVBox = new QHBox(iconSizeGroup); + TQHBox* iconSizeVBox = new TQHBox(iconSizeGroup); iconSizeVBox->setSpacing(spacing); - new QLabel(i18n("Small"), iconSizeVBox); - m_iconSizeSlider = new QSlider(0, 5, 1, 0, Qt::Horizontal, iconSizeVBox); + new TQLabel(i18n("Small"), iconSizeVBox); + m_iconSizeSlider = new TQSlider(0, 5, 1, 0, Qt::Horizontal, iconSizeVBox); m_iconSizeSlider->setValue(sliderValue(settings->iconSize())); - m_iconSizeSlider->setTickmarks(QSlider::Below); - connect(m_iconSizeSlider, SIGNAL(valueChanged(int)), - this, SLOT(slotIconSizeChanged(int))); - new QLabel(i18n("Large"), iconSizeVBox); + m_iconSizeSlider->setTickmarks(TQSlider::Below); + connect(m_iconSizeSlider, TQT_SIGNAL(valueChanged(int)), + this, TQT_SLOT(slotIconSizeChanged(int))); + new TQLabel(i18n("Large"), iconSizeVBox); m_iconSizeViewer = new PixmapViewer(iconSizeGroup); m_iconSizeViewer->setMinimumWidth(KIcon::SizeEnormous); @@ -90,19 +90,19 @@ IconsViewSettingsPage::IconsViewSettingsPage(DolphinIconsView::LayoutMode mode, if (m_mode == DolphinIconsView::Previews) { // create 'Preview Size' group including slider and preview - QGroupBox* previewSizeGroup = new QGroupBox(2, Qt::Vertical, i18n("Preview Size"), sizesLayout); - previewSizeGroup->setSizePolicy(sizePolicy); + TQGroupBox* previewSizeGroup = new TQGroupBox(2, Qt::Vertical, i18n("Preview Size"), sizesLayout); + previewSizeGroup->tqsetSizePolicy(sizePolicy); previewSizeGroup->setMargin(margin); - QHBox* previewSizeVBox = new QHBox(previewSizeGroup); + TQHBox* previewSizeVBox = new TQHBox(previewSizeGroup); previewSizeVBox->setSpacing(spacing); - new QLabel(i18n("Small"), previewSizeVBox); - m_previewSizeSlider = new QSlider(0, 5, 1, 0, Qt::Horizontal, previewSizeVBox); + new TQLabel(i18n("Small"), previewSizeVBox); + m_previewSizeSlider = new TQSlider(0, 5, 1, 0, Qt::Horizontal, previewSizeVBox); m_previewSizeSlider->setValue(sliderValue(settings->previewSize())); - m_previewSizeSlider->setTickmarks(QSlider::Below); - connect(m_previewSizeSlider, SIGNAL(valueChanged(int)), - this, SLOT(slotPreviewSizeChanged(int))); - new QLabel(i18n("Large"), previewSizeVBox); + m_previewSizeSlider->setTickmarks(TQSlider::Below); + connect(m_previewSizeSlider, TQT_SIGNAL(valueChanged(int)), + this, TQT_SLOT(slotPreviewSizeChanged(int))); + new TQLabel(i18n("Large"), previewSizeVBox); m_previewSizeViewer = new PixmapViewer(previewSizeGroup); m_previewSizeViewer->setMinimumWidth(KIcon::SizeEnormous); @@ -112,50 +112,50 @@ IconsViewSettingsPage::IconsViewSettingsPage(DolphinIconsView::LayoutMode mode, slotPreviewSizeChanged(m_previewSizeSlider->value()); } - QGroupBox* textGroup = new QGroupBox(2, Qt::Horizontal, i18n("Text"), this); - textGroup->setSizePolicy(sizePolicy); + TQGroupBox* textGroup = new TQGroupBox(2, Qt::Horizontal, i18n("Text"), this); + textGroup->tqsetSizePolicy(sizePolicy); textGroup->setMargin(margin); - new QLabel(i18n("Font family:"), textGroup); + new TQLabel(i18n("Font family:"), textGroup); m_fontFamilyBox = new KFontCombo(textGroup); m_fontFamilyBox->setCurrentFont(settings->fontFamily()); - new QLabel(i18n("Font size:"), textGroup); - m_fontSizeBox = new QSpinBox(6, 99, 1, textGroup); + new TQLabel(i18n("Font size:"), textGroup); + m_fontSizeBox = new TQSpinBox(6, 99, 1, textGroup); m_fontSizeBox->setValue(settings->fontSize()); - new QLabel(i18n("Number of lines:"), textGroup); - m_textlinesCountBox = new QSpinBox(1, 5, 1, textGroup); + new TQLabel(i18n("Number of lines:"), textGroup); + m_textlinesCountBox = new TQSpinBox(1, 5, 1, textGroup); m_textlinesCountBox->setValue(settings->textlinesCount()); - new QLabel(i18n("Text width:"), textGroup); - m_textWidthBox = new QComboBox(textGroup); + new TQLabel(i18n("Text width:"), textGroup); + m_textWidthBox = new TQComboBox(textGroup); m_textWidthBox->insertItem(i18n("Small")); m_textWidthBox->insertItem(i18n("Medium")); m_textWidthBox->insertItem(i18n("Large")); - QGroupBox* gridGroup = new QGroupBox(2, Qt::Horizontal, i18n("Grid"), this); - gridGroup->setSizePolicy(sizePolicy); + TQGroupBox* gridGroup = new TQGroupBox(2, Qt::Horizontal, i18n("Grid"), this); + gridGroup->tqsetSizePolicy(sizePolicy); gridGroup->setMargin(margin); - const bool leftToRightArrangement = (settings->arrangement() == QIconView::LeftToRight); - new QLabel(i18n("Arrangement:"), gridGroup); - m_arrangementBox = new QComboBox(gridGroup); + const bool leftToRightArrangement = (settings->arrangement() == TQIconView::LeftToRight); + new TQLabel(i18n("Arrangement:"), gridGroup); + m_arrangementBox = new TQComboBox(gridGroup); m_arrangementBox->insertItem(i18n("Left to right")); m_arrangementBox->insertItem(i18n("Top to bottom")); m_arrangementBox->setCurrentItem(leftToRightArrangement ? 0 : 1); - new QLabel(i18n("Grid spacing:"), gridGroup); - m_gridSpacingBox = new QComboBox(gridGroup); + new TQLabel(i18n("Grid spacing:"), gridGroup); + m_gridSpacingBox = new TQComboBox(gridGroup); m_gridSpacingBox->insertItem(i18n("Small")); m_gridSpacingBox->insertItem(i18n("Medium")); m_gridSpacingBox->insertItem(i18n("Large")); m_gridSpacingBox->setCurrentItem((settings->gridSpacing() - GRID_SPACING_BASE) / GRID_SPACING_INC); // Add a dummy widget with no restriction regarding - // a vertical resizing. This assures that the dialog layout + // a vertical resizing. This assures that the dialog tqlayout // is not stretched vertically. - new QWidget(this); + new TQWidget(this); adjustTextWidthSelection(); } @@ -183,9 +183,9 @@ void IconsViewSettingsPage::applySettings() const int fontSize = m_fontSizeBox->value(); - QIconView::Arrangement arrangement = (m_arrangementBox->currentItem() == 0) ? - QIconView::LeftToRight : - QIconView::TopToBottom; + TQIconView::Arrangement arrangement = (m_arrangementBox->currentItem() == 0) ? + TQIconView::LeftToRight : + TQIconView::TopToBottom; settings->setArrangement(arrangement); settings->calculateGridSize(m_textWidthBox->currentItem()); |