Replace Qt with TQt

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

@ -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();

@ -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);

@ -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);

@ -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

@ -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);

@ -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);

@ -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();

@ -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);

Loading…
Cancel
Save