Commit 025e5e99 authored by Nate Graham's avatar Nate Graham
Browse files

[Properties dialog] Make all field values on general tab selectable

Summary:
The {nav Location} field was already selectable; this patch extends that courtesy to all the rest.

BUG: 105692
FIXED-IN 5.48

Test Plan: {F5913321}

Reviewers: #frameworks, #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D13554
parent 486c4e86
......@@ -1035,6 +1035,7 @@ KFilePropsPlugin::KFilePropsPlugin(KPropertiesDialog *_props)
boxLayout->setMargin(0);
l = new QLabel(mimeComment, box);
l->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard);
grid->addWidget(box, curRow++, 2);
QPushButton *button = new QPushButton(box);
......@@ -1085,6 +1086,7 @@ KFilePropsPlugin::KFilePropsPlugin(KPropertiesDialog *_props)
grid->addWidget(l, curRow, 0, Qt::AlignRight);
d->m_sizeLabel = new QLabel(d->m_frame);
d->m_sizeLabel->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard);
grid->addWidget(d->m_sizeLabel, curRow++, 2);
if (!hasDirs) { // Only files [and symlinks]
......@@ -1139,6 +1141,7 @@ KFilePropsPlugin::KFilePropsPlugin(KPropertiesDialog *_props)
grid->addWidget(l, curRow, 0, Qt::AlignRight);
l = new QLabel(dt.toString(Qt::DefaultLocaleLongDate), d->m_frame);
l->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard);
grid->addWidget(l, curRow++, 2);
}
......@@ -1148,6 +1151,7 @@ KFilePropsPlugin::KFilePropsPlugin(KPropertiesDialog *_props)
grid->addWidget(l, curRow, 0, Qt::AlignRight);
l = new QLabel(dt.toString(Qt::DefaultLocaleLongDate), d->m_frame);
l->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard);
grid->addWidget(l, curRow++, 2);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment