Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
System
Dolphin
Commits
7c2559dd
Commit
7c2559dd
authored
Aug 26, 2020
by
Nikita Churaev
Browse files
Text style fixes
parent
6072005d
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/dolphincontextmenu.cpp
View file @
7c2559dd
...
...
@@ -378,7 +378,7 @@ void DolphinContextMenu::insertDefaultItemActions(const KFileItemListProperties&
{
const
KActionCollection
*
collection
=
m_mainWindow
->
actionCollection
();
// Insert 'Cut', 'Copy', 'Copy
l
ocation' and 'Paste'
// Insert 'Cut', 'Copy', 'Copy
L
ocation' and 'Paste'
addAction
(
collection
->
action
(
KStandardAction
::
name
(
KStandardAction
::
Cut
)));
addAction
(
collection
->
action
(
KStandardAction
::
name
(
KStandardAction
::
Copy
)));
QAction
*
copyPathAction
=
collection
->
action
(
QString
(
"copy_location"
));
...
...
src/dolphinmainwindow.cpp
View file @
7c2559dd
...
...
@@ -1349,20 +1349,20 @@ void DolphinMainWindow::setupActions()
"action they are removed from their old location."
)
+
cutCopyPastePara
);
QAction
*
copyToOtherViewAction
=
actionCollection
()
->
addAction
(
QStringLiteral
(
"copy_to_inactive_split_view"
));
copyToOtherViewAction
->
setText
(
i18nc
(
"@action:inmenu"
,
"Copy to
i
nactive
s
plit
v
iew"
));
copyToOtherViewAction
->
setText
(
i18nc
(
"@action:inmenu"
,
"Copy to
I
nactive
S
plit
V
iew"
));
copyToOtherViewAction
->
setWhatsThis
(
xi18nc
(
"@info:whatsthis Copy"
,
"This copies the selected items from "
"the <emphasis>active</emphasis> view to the inactive split view."
));
copyToOtherViewAction
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"edit-copy"
)));
copyToOtherViewAction
->
setIconText
(
i18nc
(
"@action:inmenu Edit"
,
"Copy to
i
nactive
s
plit
v
iew"
));
copyToOtherViewAction
->
setIconText
(
i18nc
(
"@action:inmenu Edit"
,
"Copy to
I
nactive
S
plit
V
iew"
));
actionCollection
()
->
setDefaultShortcut
(
copyToOtherViewAction
,
Qt
::
SHIFT
+
Qt
::
Key_F5
);
connect
(
copyToOtherViewAction
,
&
QAction
::
triggered
,
m_tabWidget
,
&
DolphinTabWidget
::
copyToInactiveSplitView
);
QAction
*
moveToOtherViewAction
=
actionCollection
()
->
addAction
(
QStringLiteral
(
"move_to_inactive_split_view"
));
moveToOtherViewAction
->
setText
(
i18nc
(
"@action:inmenu"
,
"Move to
i
nactive
s
plit
v
iew"
));
moveToOtherViewAction
->
setText
(
i18nc
(
"@action:inmenu"
,
"Move to
I
nactive
S
plit
V
iew"
));
moveToOtherViewAction
->
setWhatsThis
(
xi18nc
(
"@info:whatsthis Move"
,
"This moves the selected items from "
"the <emphasis>active</emphasis> view to the inactive split view."
));
moveToOtherViewAction
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"edit-cut"
)));
moveToOtherViewAction
->
setIconText
(
i18nc
(
"@action:inmenu Edit"
,
"Move to
i
nactive
s
plit
v
iew"
));
moveToOtherViewAction
->
setIconText
(
i18nc
(
"@action:inmenu Edit"
,
"Move to
I
nactive
S
plit
V
iew"
));
actionCollection
()
->
setDefaultShortcut
(
moveToOtherViewAction
,
Qt
::
SHIFT
+
Qt
::
Key_F6
);
connect
(
moveToOtherViewAction
,
&
QAction
::
triggered
,
m_tabWidget
,
&
DolphinTabWidget
::
moveToInactiveSplitView
);
...
...
src/views/dolphinviewactionhandler.cpp
View file @
7c2559dd
...
...
@@ -143,7 +143,7 @@ void DolphinViewActionHandler::createActions()
connect
(
propertiesAction
,
&
QAction
::
triggered
,
this
,
&
DolphinViewActionHandler
::
slotProperties
);
QAction
*
copyPathAction
=
m_actionCollection
->
addAction
(
QStringLiteral
(
"copy_location"
)
);
copyPathAction
->
setText
(
i18nc
(
"@action:incontextmenu"
,
"Copy
l
ocation"
));
copyPathAction
->
setText
(
i18nc
(
"@action:incontextmenu"
,
"Copy
L
ocation"
));
copyPathAction
->
setWhatsThis
(
i18nc
(
"@info:whatsthis copy_location"
,
"This will copy the path of the first selected item into the clipboard."
));
...
...
@@ -620,14 +620,14 @@ void DolphinViewActionHandler::slotSortRoleChanged(const QByteArray& role)
descending
->
setText
(
i18nc
(
"Sort descending"
,
"Z-A"
));
ascending
->
setText
(
i18nc
(
"Sort ascending"
,
"A-Z"
));
}
else
if
(
role
==
"size"
)
{
descending
->
setText
(
i18nc
(
"Sort descending"
,
"Largest
f
irst"
));
ascending
->
setText
(
i18nc
(
"Sort ascending"
,
"Smallest
f
irst"
));
descending
->
setText
(
i18nc
(
"Sort descending"
,
"Largest
F
irst"
));
ascending
->
setText
(
i18nc
(
"Sort ascending"
,
"Smallest
F
irst"
));
}
else
if
(
role
==
"modificationtime"
||
role
==
"creationtime"
||
role
==
"accesstime"
)
{
descending
->
setText
(
i18nc
(
"Sort descending"
,
"Newest
f
irst"
));
ascending
->
setText
(
i18nc
(
"Sort ascending"
,
"Oldest
f
irst"
));
descending
->
setText
(
i18nc
(
"Sort descending"
,
"Newest
F
irst"
));
ascending
->
setText
(
i18nc
(
"Sort ascending"
,
"Oldest
F
irst"
));
}
else
if
(
role
==
"rating"
)
{
descending
->
setText
(
i18nc
(
"Sort descending"
,
"Highest
f
irst"
));
ascending
->
setText
(
i18nc
(
"Sort ascending"
,
"Lowest
f
irst"
));
descending
->
setText
(
i18nc
(
"Sort descending"
,
"Highest
F
irst"
));
ascending
->
setText
(
i18nc
(
"Sort ascending"
,
"Lowest
F
irst"
));
}
else
{
descending
->
setText
(
i18nc
(
"Sort descending"
,
"Descending"
));
ascending
->
setText
(
i18nc
(
"Sort ascending"
,
"Ascending"
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment