diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-05 15:22:45 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-05 15:22:45 +0900 |
commit | fda1c3c5d01e1b9093f6d17574face12274c6e3f (patch) | |
tree | ed8678b4ec9030323fc9f0066a36cd5f4a9573dc | |
parent | 8e316244abe01c719e630ab4c8120e38aa81cef9 (diff) | |
download | dolphin-fda1c3c5d01e1b9093f6d17574face12274c6e3f.tar.gz dolphin-fda1c3c5d01e1b9093f6d17574face12274c6e3f.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r-- | src/bookmarkssidebarpage.cpp | 6 | ||||
-rw-r--r-- | src/detailsviewsettingspage.cpp | 6 | ||||
-rw-r--r-- | src/dolphindetailsview.cpp | 2 | ||||
-rw-r--r-- | src/editbookmarkdialog.cpp | 2 | ||||
-rw-r--r-- | src/generalsettingspage.cpp | 4 | ||||
-rw-r--r-- | src/iconsviewsettingspage.cpp | 12 | ||||
-rw-r--r-- | src/urlnavigatorbutton.cpp | 4 | ||||
-rw-r--r-- | src/viewpropertiesdialog.cpp | 4 |
8 files changed, 20 insertions, 20 deletions
diff --git a/src/bookmarkssidebarpage.cpp b/src/bookmarkssidebarpage.cpp index 94a37eb..175879e 100644 --- a/src/bookmarkssidebarpage.cpp +++ b/src/bookmarkssidebarpage.cpp @@ -83,7 +83,7 @@ void BookmarksSidebarPage::updateBookmarks() void BookmarksSidebarPage::slotMouseButtonClicked(int button, TQListBoxItem* item) { - if ((button != Qt::LeftButton) || (item == 0)) { + if ((button != TQt::LeftButton) || (item == 0)) { return; } @@ -255,14 +255,14 @@ void BookmarksListBox::paintEvent(TQPaintEvent* /* event */) void BookmarksListBox::contentsMousePressEvent(TQMouseEvent *event) { - if (event->button() == Qt::LeftButton) + if (event->button() == TQt::LeftButton) dragPos = event->pos(); TQListBox::contentsMousePressEvent(event); } void BookmarksListBox::contentsMouseMoveEvent(TQMouseEvent *event) { - if (event->state() & Qt::LeftButton) { + if (event->state() & TQt::LeftButton) { int distance = (event->pos() - dragPos).manhattanLength(); if (distance > TQApplication::startDragDistance()) startDrag(); diff --git a/src/detailsviewsettingspage.cpp b/src/detailsviewsettingspage.cpp index ae044e0..e571de8 100644 --- a/src/detailsviewsettingspage.cpp +++ b/src/detailsviewsettingspage.cpp @@ -57,7 +57,7 @@ DetailsViewSettingsPage::DetailsViewSettingsPage(TQWidget *parent) : assert(settings != 0); // create "Columns" properties - TQGroupBox* columnsGroup = new TQGroupBox(4, Qt::Vertical, i18n("Columns"), this); + TQGroupBox* columnsGroup = new TQGroupBox(4, TQt::Vertical, i18n("Columns"), this); columnsGroup->setSizePolicy(sizePolicy); columnsGroup->setMargin(margin); @@ -75,7 +75,7 @@ DetailsViewSettingsPage::DetailsViewSettingsPage(TQWidget *parent) : m_groupBox->setChecked(settings->isColumnEnabled(DolphinDetailsView::GroupColumn)); // Create "Icon" properties - TQButtonGroup* iconSizeGroup = new TQButtonGroup(3, Qt::Horizontal, i18n("Icon Size"), this); + TQButtonGroup* iconSizeGroup = new TQButtonGroup(3, TQt::Horizontal, i18n("Icon Size"), this); iconSizeGroup->setSizePolicy(sizePolicy); iconSizeGroup->setMargin(margin); m_smallIconSize = new TQRadioButton(i18n("Small"), iconSizeGroup); @@ -102,7 +102,7 @@ DetailsViewSettingsPage::DetailsViewSettingsPage(TQWidget *parent) : //m_iconSizeBox->insertItem(i18n("Large")); // create "Text" properties - TQGroupBox* textGroup = new TQGroupBox(2, Qt::Horizontal, i18n("Text"), this); + TQGroupBox* textGroup = new TQGroupBox(2, TQt::Horizontal, i18n("Text"), this); textGroup->setSizePolicy(sizePolicy); textGroup->setMargin(margin); diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp index 8b74e9a..53ece02 100644 --- a/src/dolphindetailsview.cpp +++ b/src/dolphindetailsview.cpp @@ -378,7 +378,7 @@ void DolphinDetailsView::contentsMousePressEvent(TQMouseEvent* event) if ((item != 0) && isOnFilename(item, pos)) { KFileDetailView::contentsMousePressEvent(event); } - else if (event->button() == Qt::LeftButton) { + else if (event->button() == TQt::LeftButton) { const ButtonState keyboardState = TDEApplication::keyboardMouseState(); const bool isSelectionActive = (keyboardState & ShiftButton) || (keyboardState & ControlButton); diff --git a/src/editbookmarkdialog.cpp b/src/editbookmarkdialog.cpp index bbb0644..f326783 100644 --- a/src/editbookmarkdialog.cpp +++ b/src/editbookmarkdialog.cpp @@ -65,7 +65,7 @@ EditBookmarkDialog::EditBookmarkDialog(const TQString& title, { TQVBoxLayout* topLayout = new TQVBoxLayout(plainPage(), 0, spacingHint()); - TQGrid* grid = new TQGrid(2, Qt::Horizontal, plainPage()); + TQGrid* grid = new TQGrid(2, TQt::Horizontal, plainPage()); grid->setSpacing(spacingHint()); // create icon widgets diff --git a/src/generalsettingspage.cpp b/src/generalsettingspage.cpp index 1eb4395..27926a1 100644 --- a/src/generalsettingspage.cpp +++ b/src/generalsettingspage.cpp @@ -59,7 +59,7 @@ GeneralSettingsPage::GeneralSettingsPage(TQWidget* parent) : vBox->setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Ignored); // create 'Home URL' editor - TQGroupBox* homeGroup = new TQGroupBox(1, Qt::Horizontal, i18n("Home URL"), vBox); + TQGroupBox* homeGroup = new TQGroupBox(1, TQt::Horizontal, i18n("Home URL"), vBox); homeGroup->setSizePolicy(sizePolicy); homeGroup->setMargin(margin); @@ -85,7 +85,7 @@ GeneralSettingsPage::GeneralSettingsPage(TQWidget* parent) : this, TQT_SLOT(useDefaulLocation())); // create 'Default View Mode' group - TQButtonGroup* buttonGroup = new TQButtonGroup(3, Qt::Vertical, i18n("Default View Mode"), vBox); + TQButtonGroup* buttonGroup = new TQButtonGroup(3, TQt::Vertical, i18n("Default View Mode"), vBox); buttonGroup->setSizePolicy(sizePolicy); buttonGroup->setMargin(margin); diff --git a/src/iconsviewsettingspage.cpp b/src/iconsviewsettingspage.cpp index 41b2d6c..ffb4e9f 100644 --- a/src/iconsviewsettingspage.cpp +++ b/src/iconsviewsettingspage.cpp @@ -66,7 +66,7 @@ IconsViewSettingsPage::IconsViewSettingsPage(DolphinIconsView::LayoutMode mode, sizesLayout->setSizePolicy(sizePolicy); // create 'Icon Size' group including slider and preview - TQGroupBox* iconSizeGroup = new TQGroupBox(2, Qt::Vertical, i18n("Icon Size"), sizesLayout); + TQGroupBox* iconSizeGroup = new TQGroupBox(2, TQt::Vertical, i18n("Icon Size"), sizesLayout); iconSizeGroup->setSizePolicy(sizePolicy); iconSizeGroup->setMargin(margin); @@ -75,7 +75,7 @@ IconsViewSettingsPage::IconsViewSettingsPage(DolphinIconsView::LayoutMode mode, TQHBox* iconSizeVBox = new TQHBox(iconSizeGroup); iconSizeVBox->setSpacing(spacing); new TQLabel(i18n("Small"), iconSizeVBox); - m_iconSizeSlider = new TQSlider(0, 5, 1, 0, Qt::Horizontal, iconSizeVBox); + m_iconSizeSlider = new TQSlider(0, 5, 1, 0, TQt::Horizontal, iconSizeVBox); m_iconSizeSlider->setValue(sliderValue(settings->iconSize())); m_iconSizeSlider->setTickmarks(TQSlider::Below); connect(m_iconSizeSlider, TQT_SIGNAL(valueChanged(int)), @@ -90,14 +90,14 @@ IconsViewSettingsPage::IconsViewSettingsPage(DolphinIconsView::LayoutMode mode, if (m_mode == DolphinIconsView::Previews) { // create 'Preview Size' group including slider and preview - TQGroupBox* previewSizeGroup = new TQGroupBox(2, Qt::Vertical, i18n("Preview Size"), sizesLayout); + TQGroupBox* previewSizeGroup = new TQGroupBox(2, TQt::Vertical, i18n("Preview Size"), sizesLayout); previewSizeGroup->setSizePolicy(sizePolicy); previewSizeGroup->setMargin(margin); TQHBox* previewSizeVBox = new TQHBox(previewSizeGroup); previewSizeVBox->setSpacing(spacing); new TQLabel(i18n("Small"), previewSizeVBox); - m_previewSizeSlider = new TQSlider(0, 5, 1, 0, Qt::Horizontal, previewSizeVBox); + m_previewSizeSlider = new TQSlider(0, 5, 1, 0, TQt::Horizontal, previewSizeVBox); m_previewSizeSlider->setValue(sliderValue(settings->previewSize())); m_previewSizeSlider->setTickmarks(TQSlider::Below); connect(m_previewSizeSlider, TQT_SIGNAL(valueChanged(int)), @@ -112,7 +112,7 @@ IconsViewSettingsPage::IconsViewSettingsPage(DolphinIconsView::LayoutMode mode, slotPreviewSizeChanged(m_previewSizeSlider->value()); } - TQGroupBox* textGroup = new TQGroupBox(2, Qt::Horizontal, i18n("Text"), this); + TQGroupBox* textGroup = new TQGroupBox(2, TQt::Horizontal, i18n("Text"), this); textGroup->setSizePolicy(sizePolicy); textGroup->setMargin(margin); @@ -134,7 +134,7 @@ IconsViewSettingsPage::IconsViewSettingsPage(DolphinIconsView::LayoutMode mode, m_textWidthBox->insertItem(i18n("Medium")); m_textWidthBox->insertItem(i18n("Large")); - TQGroupBox* gridGroup = new TQGroupBox(2, Qt::Horizontal, i18n("Grid"), this); + TQGroupBox* gridGroup = new TQGroupBox(2, TQt::Horizontal, i18n("Grid"), this); gridGroup->setSizePolicy(sizePolicy); gridGroup->setMargin(margin); diff --git a/src/urlnavigatorbutton.cpp b/src/urlnavigatorbutton.cpp index 2066143..fbfa02e 100644 --- a/src/urlnavigatorbutton.cpp +++ b/src/urlnavigatorbutton.cpp @@ -368,14 +368,14 @@ bool URLNavigatorButton::isTextClipped() const void URLNavigatorButton::mousePressEvent(TQMouseEvent * event) { - if (event->button() == Qt::LeftButton) + if (event->button() == TQt::LeftButton) dragPos = event->pos(); URLButton::mousePressEvent(event); } void URLNavigatorButton::mouseMoveEvent(TQMouseEvent * event) { - if (event->state() & Qt::LeftButton) { + if (event->state() & TQt::LeftButton) { int distance = (event->pos() - dragPos).manhattanLength(); if (distance > TQApplication::startDragDistance()*2)//don't start on small move (for submenu usability) startDrag(); diff --git a/src/viewpropertiesdialog.cpp b/src/viewpropertiesdialog.cpp index a6ab133..449ad94 100644 --- a/src/viewpropertiesdialog.cpp +++ b/src/viewpropertiesdialog.cpp @@ -55,7 +55,7 @@ ViewPropertiesDialog::ViewPropertiesDialog(DolphinView* dolphinView) : TQVBoxLayout* topLayout = new TQVBoxLayout(plainPage(), 0, spacingHint()); // create 'Properties' group containing view mode, sorting, sort order and show hidden files - TQGroupBox* propsGroup = new TQGroupBox(2, Qt::Horizontal, i18n("Properties"), plainPage()); + TQGroupBox* propsGroup = new TQGroupBox(2, TQt::Horizontal, i18n("Properties"), plainPage()); propsGroup->setSizePolicy(sizePolicy); propsGroup->setMargin(margin); @@ -93,7 +93,7 @@ ViewPropertiesDialog::ViewPropertiesDialog(DolphinView* dolphinView) : // create 'Apply view properties to:' group TQButtonGroup* buttonGroup = new TQButtonGroup(3, - Qt::Vertical, + TQt::Vertical, i18n("Apply view properties to:"), plainPage()); buttonGroup->setSizePolicy(sizePolicy); |