Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
KDE Pim
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Unmaintained
KDE Pim
Commits
3484641c
Commit
3484641c
authored
Jun 23, 2015
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use QStringLiteral
parent
485970b7
Changes
50
Hide whitespace changes
Inline
Side-by-side
Showing
50 changed files
with
258 additions
and
258 deletions
+258
-258
akregator/src/feed.cpp
akregator/src/feed.cpp
+2
-2
calendarviews/agenda/timelabels.cpp
calendarviews/agenda/timelabels.cpp
+2
-2
composereditor-ng/private/composerview_p.cpp
composereditor-ng/private/composerview_p.cpp
+31
-31
composereditor-ng/table/composertableactionmenu.cpp
composereditor-ng/table/composertableactionmenu.cpp
+7
-7
kalarm/functions.cpp
kalarm/functions.cpp
+1
-1
kalarm/mainwindow.cpp
kalarm/mainwindow.cpp
+7
-7
kalarm/resourceselector.cpp
kalarm/resourceselector.cpp
+6
-6
kleopatra/crypto/gui/newsignencryptfileswizard.cpp
kleopatra/crypto/gui/newsignencryptfileswizard.cpp
+2
-2
kleopatra/kwatchgnupg/kwatchgnupgmainwin.cpp
kleopatra/kwatchgnupg/kwatchgnupgmainwin.cpp
+1
-1
kleopatra/mainwindow_desktop.cpp
kleopatra/mainwindow_desktop.cpp
+1
-1
kleopatra/newcertificatewizard/newcertificatewizard.cpp
kleopatra/newcertificatewizard/newcertificatewizard.cpp
+1
-1
kmail/configuredialog/configagentdelegate.cpp
kmail/configuredialog/configagentdelegate.cpp
+5
-5
kmail/configuredialog/configureappearancepage.cpp
kmail/configuredialog/configureappearancepage.cpp
+4
-4
kmail/editor/kmcomposewin.cpp
kmail/editor/kmcomposewin.cpp
+23
-23
kmail/identity/identitydialog.cpp
kmail/identity/identitydialog.cpp
+1
-1
kmail/kmmainwidget.cpp
kmail/kmmainwidget.cpp
+31
-31
kmail/kmreadermainwin.cpp
kmail/kmreadermainwin.cpp
+3
-3
kmail/kmreaderwin.cpp
kmail/kmreaderwin.cpp
+9
-9
knotes/apps/knotesapp.cpp
knotes/apps/knotesapp.cpp
+7
-7
knotes/kontactplugin/knotes_part.cpp
knotes/kontactplugin/knotes_part.cpp
+15
-15
kontact/plugins/summary/summaryview_plugin.cpp
kontact/plugins/summary/summaryview_plugin.cpp
+1
-1
kontact/src/mainwindow.cpp
kontact/src/mainwindow.cpp
+1
-1
korgac/alarmdialog.cpp
korgac/alarmdialog.cpp
+1
-1
korganizer/actionmanager.cpp
korganizer/actionmanager.cpp
+23
-23
korganizer/prefs/koprefsdialog.cpp
korganizer/prefs/koprefsdialog.cpp
+11
-11
ktnef/ktnefmain.cpp
ktnef/ktnefmain.cpp
+9
-9
libkpgp/kpgpui.cpp
libkpgp/kpgpui.cpp
+1
-1
libksieve/ksieveui/autocreatescripts/sieveactionwidgetlister.cpp
...ve/ksieveui/autocreatescripts/sieveactionwidgetlister.cpp
+3
-3
libksieve/ksieveui/autocreatescripts/sieveconditions/widgets/selectheadertypecombobox.cpp
...ipts/sieveconditions/widgets/selectheadertypecombobox.cpp
+1
-1
libksieve/ksieveui/autocreatescripts/sieveconditionwidgetlister.cpp
...ksieveui/autocreatescripts/sieveconditionwidgetlister.cpp
+2
-2
libksieve/ksieveui/autocreatescripts/sieveincludewidget.cpp
libksieve/ksieveui/autocreatescripts/sieveincludewidget.cpp
+2
-2
libksieve/ksieveui/autocreatescripts/sievescriptblockwidget.cpp
...eve/ksieveui/autocreatescripts/sievescriptblockwidget.cpp
+1
-1
mailcommon/filter/filteractions/filteractionwithurl.cpp
mailcommon/filter/filteractions/filteractionwithurl.cpp
+1
-1
mailcommon/filter/invalidfilters/invalidfilterdialog.cpp
mailcommon/filter/invalidfilters/invalidfilterdialog.cpp
+1
-1
mailcommon/filter/kmfilterdialog.cpp
mailcommon/filter/kmfilterdialog.cpp
+1
-1
mailcommon/folder/accountconfigorderdialog.cpp
mailcommon/folder/accountconfigorderdialog.cpp
+2
-2
mailcommon/search/searchpatternedit.cpp
mailcommon/search/searchpatternedit.cpp
+2
-2
mailcommon/snippets/snippetsmanager.cpp
mailcommon/snippets/snippetsmanager.cpp
+4
-4
messagecomposer/attachment/attachmentcontrollerbase.cpp
messagecomposer/attachment/attachmentcontrollerbase.cpp
+10
-10
messagelist/pane.cpp
messagelist/pane.cpp
+5
-5
messagelist/utils/configurethemesdialog.cpp
messagelist/utils/configurethemesdialog.cpp
+3
-3
messagelist/widget.cpp
messagelist/widget.cpp
+3
-3
messageviewer/adblock/adblocksettingwidget.cpp
messageviewer/adblock/adblocksettingwidget.cpp
+2
-2
messageviewer/viewer/mimeparttree/mimetreemodel.cpp
messageviewer/viewer/mimeparttree/mimetreemodel.cpp
+1
-1
messageviewer/viewer/urlhandlermanager.cpp
messageviewer/viewer/urlhandlermanager.cpp
+2
-2
messageviewer/widgets/noteedit.cpp
messageviewer/widgets/noteedit.cpp
+1
-1
pimcommon/texteditor/commonwidget/texteditfindbarbase.cpp
pimcommon/texteditor/commonwidget/texteditfindbarbase.cpp
+1
-1
pimcommon/texteditor/commonwidget/textfindreplacewidget.cpp
pimcommon/texteditor/commonwidget/textfindreplacewidget.cpp
+2
-2
pimcommon/translator/translatorwidget.cpp
pimcommon/translator/translatorwidget.cpp
+1
-1
pimcommon/widgets/emailaddressrequester.cpp
pimcommon/widgets/emailaddressrequester.cpp
+1
-1
No files found.
akregator/src/feed.cpp
View file @
3484641c
...
...
@@ -747,10 +747,10 @@ void Akregator::Feed::markAsFetchedNow()
QIcon
Akregator
::
Feed
::
icon
()
const
{
if
(
fetchErrorOccurred
())
{
return
QIcon
::
fromTheme
(
Q
Latin1String
(
"dialog-error"
));
return
QIcon
::
fromTheme
(
Q
StringLiteral
(
"dialog-error"
));
}
return
!
d
->
favicon
.
isNull
()
?
d
->
favicon
:
QIcon
::
fromTheme
(
Q
Latin1String
(
"text-html"
));
return
!
d
->
favicon
.
isNull
()
?
d
->
favicon
:
QIcon
::
fromTheme
(
Q
StringLiteral
(
"text-html"
));
}
void
Akregator
::
Feed
::
deleteExpiredArticles
(
ArticleDeleteJob
*
deleteJob
)
...
...
calendarviews/agenda/timelabels.cpp
View file @
3484641c
...
...
@@ -298,9 +298,9 @@ void TimeLabels::contextMenuEvent(QContextMenuEvent *event)
QMenu
popup
(
this
);
QAction
*
editTimeZones
=
popup
.
addAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"document-properties"
)),
i18n
(
"&Add Timezones..."
));
popup
.
addAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"document-properties"
)),
i18n
(
"&Add Timezones..."
));
QAction
*
removeTimeZone
=
popup
.
addAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"edit-delete"
)),
popup
.
addAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"edit-delete"
)),
i18n
(
"&Remove Timezone %1"
,
i18n
(
mSpec
.
timeZone
().
name
().
toUtf8
())));
if
(
!
mSpec
.
isValid
()
||
!
mTimeLabelsZone
->
preferences
()
->
timeScaleTimezones
().
count
()
||
...
...
composereditor-ng/private/composerview_p.cpp
View file @
3484641c
...
...
@@ -77,7 +77,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
switch
(
type
)
{
case
ComposerView
::
Bold
:
{
if
(
!
action_text_bold
)
{
action_text_bold
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"format-text-bold"
)),
i18nc
(
"@action boldify selected text"
,
"&Bold"
),
q
);
action_text_bold
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"format-text-bold"
)),
i18nc
(
"@action boldify selected text"
,
"&Bold"
),
q
);
QFont
bold
;
bold
.
setBold
(
true
);
action_text_bold
->
setFont
(
bold
);
...
...
@@ -89,7 +89,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
Italic
:
{
if
(
!
action_text_italic
)
{
action_text_italic
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"format-text-italic"
)),
i18nc
(
"@action italicize selected text"
,
"&Italic"
),
q
);
action_text_italic
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"format-text-italic"
)),
i18nc
(
"@action italicize selected text"
,
"&Italic"
),
q
);
QFont
italic
;
italic
.
setItalic
(
true
);
action_text_italic
->
setFont
(
italic
);
...
...
@@ -101,7 +101,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
Underline
:
{
if
(
!
action_text_underline
)
{
action_text_underline
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"format-text-underline"
)),
i18nc
(
"@action underline selected text"
,
"&Underline"
),
q
);
action_text_underline
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"format-text-underline"
)),
i18nc
(
"@action underline selected text"
,
"&Underline"
),
q
);
QFont
underline
;
underline
.
setUnderline
(
true
);
action_text_underline
->
setFont
(
underline
);
...
...
@@ -113,7 +113,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
StrikeOut
:
{
if
(
!
action_text_strikeout
)
{
action_text_strikeout
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"format-text-strikethrough"
)),
i18nc
(
"@action"
,
"&Strike Out"
),
q
);
action_text_strikeout
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"format-text-strikethrough"
)),
i18nc
(
"@action"
,
"&Strike Out"
),
q
);
action_text_strikeout
->
setShortcut
(
QKeySequence
(
Qt
::
CTRL
+
Qt
::
Key_L
));
FORWARD_ACTION
(
action_text_strikeout
,
QWebPage
::
ToggleStrikethrough
);
htmlEditorActionList
.
append
(
action_text_strikeout
);
...
...
@@ -122,7 +122,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
AlignLeft
:
{
if
(
!
action_align_left
)
{
action_align_left
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"format-justify-left"
)),
i18nc
(
"@action"
,
"Align &Left"
),
q
);
action_align_left
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"format-justify-left"
)),
i18nc
(
"@action"
,
"Align &Left"
),
q
);
action_align_left
->
setIconText
(
i18nc
(
"@label left justify"
,
"Left"
));
htmlEditorActionList
.
append
((
action_align_left
));
FORWARD_ACTION
(
action_align_left
,
QWebPage
::
AlignLeft
);
...
...
@@ -131,7 +131,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
AlignCenter
:
{
if
(
!
action_align_center
)
{
action_align_center
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"format-justify-center"
)),
i18nc
(
"@action"
,
"Align &Center"
),
q
);
action_align_center
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"format-justify-center"
)),
i18nc
(
"@action"
,
"Align &Center"
),
q
);
action_align_center
->
setIconText
(
i18nc
(
"@label center justify"
,
"Center"
));
htmlEditorActionList
.
append
((
action_align_center
));
FORWARD_ACTION
(
action_align_center
,
QWebPage
::
AlignCenter
);
...
...
@@ -140,7 +140,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
AlignRight
:
{
if
(
!
action_align_right
)
{
action_align_right
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"format-justify-right"
)),
i18nc
(
"@action"
,
"Align &Right"
),
q
);
action_align_right
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"format-justify-right"
)),
i18nc
(
"@action"
,
"Align &Right"
),
q
);
action_align_right
->
setIconText
(
i18nc
(
"@label right justify"
,
"Right"
));
htmlEditorActionList
.
append
((
action_align_right
));
FORWARD_ACTION
(
action_align_right
,
QWebPage
::
AlignRight
);
...
...
@@ -149,7 +149,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
AlignJustify
:
{
if
(
!
action_align_justify
)
{
action_align_justify
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"format-justify-fill"
)),
i18nc
(
"@action"
,
"&Justify"
),
q
);
action_align_justify
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"format-justify-fill"
)),
i18nc
(
"@action"
,
"&Justify"
),
q
);
action_align_justify
->
setIconText
(
i18nc
(
"@label justify fill"
,
"Justify"
));
htmlEditorActionList
.
append
((
action_align_justify
));
FORWARD_ACTION
(
action_align_justify
,
QWebPage
::
AlignJustified
);
...
...
@@ -158,7 +158,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
DirectionLtr
:
{
if
(
!
action_direction_ltr
)
{
action_direction_ltr
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"format-text-direction-ltr"
)),
i18nc
(
"@action"
,
"Left-to-Right"
),
q
);
action_direction_ltr
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"format-text-direction-ltr"
)),
i18nc
(
"@action"
,
"Left-to-Right"
),
q
);
action_direction_ltr
->
setIconText
(
i18nc
(
"@label left-to-right"
,
"Left-to-Right"
));
htmlEditorActionList
.
append
(
action_direction_ltr
);
FORWARD_ACTION
(
action_direction_ltr
,
QWebPage
::
SetTextDirectionLeftToRight
);
...
...
@@ -167,7 +167,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
DirectionRtl
:
{
if
(
!
action_direction_rtl
)
{
action_direction_rtl
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"format-text-direction-rtl"
)),
i18nc
(
"@action"
,
"Right-to-Left"
),
q
);
action_direction_rtl
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"format-text-direction-rtl"
)),
i18nc
(
"@action"
,
"Right-to-Left"
),
q
);
action_direction_rtl
->
setIconText
(
i18nc
(
"@label right-to-left"
,
"Right-to-Left"
));
htmlEditorActionList
.
append
(
action_direction_rtl
);
FORWARD_ACTION
(
action_direction_rtl
,
QWebPage
::
SetTextDirectionRightToLeft
);
...
...
@@ -176,7 +176,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
SubScript
:
{
if
(
!
action_text_subscript
)
{
action_text_subscript
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"format-text-subscript"
)),
i18nc
(
"@action"
,
"Subscript"
),
q
);
action_text_subscript
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"format-text-subscript"
)),
i18nc
(
"@action"
,
"Subscript"
),
q
);
htmlEditorActionList
.
append
((
action_text_subscript
));
FORWARD_ACTION
(
action_text_subscript
,
QWebPage
::
ToggleSubscript
);
}
...
...
@@ -184,7 +184,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
SuperScript
:
{
if
(
!
action_text_superscript
)
{
action_text_superscript
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"format-text-superscript"
)),
i18nc
(
"@action"
,
"Superscript"
),
q
);
action_text_superscript
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"format-text-superscript"
)),
i18nc
(
"@action"
,
"Superscript"
),
q
);
htmlEditorActionList
.
append
((
action_text_superscript
));
FORWARD_ACTION
(
action_text_superscript
,
QWebPage
::
ToggleSuperscript
);
}
...
...
@@ -192,7 +192,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
HorizontalRule
:
{
if
(
!
action_insert_horizontal_rule
)
{
action_insert_horizontal_rule
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"insert-horizontal-rule"
)),
i18nc
(
"@action"
,
"Insert Rule Line"
),
q
);
action_insert_horizontal_rule
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"insert-horizontal-rule"
)),
i18nc
(
"@action"
,
"Insert Rule Line"
),
q
);
htmlEditorActionList
.
append
((
action_insert_horizontal_rule
));
q
->
connect
(
action_insert_horizontal_rule
,
SIGNAL
(
triggered
(
bool
)),
SLOT
(
_k_slotInsertHorizontalRule
()));
}
...
...
@@ -200,7 +200,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
ListIndent
:
{
if
(
!
action_list_indent
)
{
action_list_indent
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"format-indent-more"
)),
i18nc
(
"@action"
,
"Increase Indent"
),
q
);
action_list_indent
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"format-indent-more"
)),
i18nc
(
"@action"
,
"Increase Indent"
),
q
);
htmlEditorActionList
.
append
((
action_list_indent
));
FORWARD_ACTION
(
action_list_indent
,
QWebPage
::
Indent
);
}
...
...
@@ -208,7 +208,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
ListDedent
:
{
if
(
!
action_list_dedent
)
{
action_list_dedent
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"format-indent-less"
)),
i18nc
(
"@action"
,
"Decrease Indent"
),
q
);
action_list_dedent
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"format-indent-less"
)),
i18nc
(
"@action"
,
"Decrease Indent"
),
q
);
htmlEditorActionList
.
append
(
action_list_dedent
);
FORWARD_ACTION
(
action_list_dedent
,
QWebPage
::
Outdent
);
}
...
...
@@ -216,7 +216,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
OrderedList
:
{
if
(
!
action_ordered_list
)
{
action_ordered_list
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"format-list-ordered"
)),
i18n
(
"Ordered Style"
),
q
);
action_ordered_list
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"format-list-ordered"
)),
i18n
(
"Ordered Style"
),
q
);
htmlEditorActionList
.
append
(
action_ordered_list
);
FORWARD_ACTION
(
action_ordered_list
,
QWebPage
::
InsertOrderedList
);
}
...
...
@@ -224,7 +224,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
UnorderedList
:
{
if
(
!
action_unordered_list
)
{
action_unordered_list
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"format-list-unordered"
)),
i18n
(
"Unordered List"
),
q
);
action_unordered_list
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"format-list-unordered"
)),
i18n
(
"Unordered List"
),
q
);
htmlEditorActionList
.
append
(
action_unordered_list
);
FORWARD_ACTION
(
action_unordered_list
,
QWebPage
::
InsertUnorderedList
);
}
...
...
@@ -232,7 +232,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
FormatType
:
{
if
(
!
action_format_type
)
{
action_format_type
=
new
KSelectAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"format-list-unordered"
)),
i18nc
(
"@title:menu"
,
"List Style"
),
q
);
action_format_type
=
new
KSelectAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"format-list-unordered"
)),
i18nc
(
"@title:menu"
,
"List Style"
),
q
);
QAction
*
act
=
action_format_type
->
addAction
(
i18n
(
"Paragraph"
));
act
->
setData
(
QVariant
::
fromValue
(
ComposerViewPrivate
::
Paragraph
));
act
=
action_format_type
->
addAction
(
i18n
(
"Heading 1"
));
...
...
@@ -295,7 +295,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
InsertImage
:
{
if
(
!
action_insert_image
)
{
action_insert_image
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"insert-image"
)),
i18n
(
"Add Image"
),
q
);
action_insert_image
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"insert-image"
)),
i18n
(
"Add Image"
),
q
);
q
->
connect
(
action_insert_image
,
SIGNAL
(
triggered
(
bool
)),
SLOT
(
_k_slotAddImage
()));
}
break
;
...
...
@@ -309,7 +309,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
InsertTable
:
{
if
(
!
action_insert_table
)
{
action_insert_table
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"insert-table"
)),
i18n
(
"Table..."
),
q
);
action_insert_table
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"insert-table"
)),
i18n
(
"Table..."
),
q
);
htmlEditorActionList
.
append
(
action_insert_table
);
q
->
connect
(
action_insert_table
,
SIGNAL
(
triggered
(
bool
)),
SLOT
(
_k_slotInsertTable
()));
}
...
...
@@ -317,7 +317,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
InsertLink
:
{
if
(
!
action_insert_link
)
{
action_insert_link
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"insert-link"
)),
i18nc
(
"@action"
,
"Link"
),
q
);
action_insert_link
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"insert-link"
)),
i18nc
(
"@action"
,
"Link"
),
q
);
htmlEditorActionList
.
append
(
action_insert_link
);
q
->
connect
(
action_insert_link
,
SIGNAL
(
triggered
(
bool
)),
q
,
SLOT
(
_k_insertLink
()));
}
...
...
@@ -325,7 +325,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
TextForegroundColor
:
{
if
(
!
action_text_foreground_color
)
{
action_text_foreground_color
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"format-stroke-color"
)),
i18nc
(
"@action"
,
"Text &Color..."
),
q
);
action_text_foreground_color
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"format-stroke-color"
)),
i18nc
(
"@action"
,
"Text &Color..."
),
q
);
action_text_foreground_color
->
setIconText
(
i18nc
(
"@label stroke color"
,
"Color"
));
htmlEditorActionList
.
append
((
action_text_foreground_color
));
q
->
connect
(
action_text_foreground_color
,
SIGNAL
(
triggered
()),
q
,
SLOT
(
_k_setTextForegroundColor
()));
...
...
@@ -334,7 +334,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
TextBackgroundColor
:
{
if
(
!
action_text_background_color
)
{
action_text_background_color
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"format-fill-color"
)),
i18nc
(
"@action"
,
"Text &Highlight..."
),
q
);
action_text_background_color
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"format-fill-color"
)),
i18nc
(
"@action"
,
"Text &Highlight..."
),
q
);
htmlEditorActionList
.
append
((
action_text_background_color
));
q
->
connect
(
action_text_background_color
,
SIGNAL
(
triggered
()),
q
,
SLOT
(
_k_setTextBackgroundColor
()));
}
...
...
@@ -342,14 +342,14 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
FormatReset
:
{
if
(
!
action_format_reset
)
{
action_format_reset
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"draw-eraser"
)),
i18n
(
"Reset Font Settings"
),
q
);
action_format_reset
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"draw-eraser"
)),
i18n
(
"Reset Font Settings"
),
q
);
FORWARD_ACTION
(
action_format_reset
,
QWebPage
::
RemoveFormat
);
}
break
;
}
case
ComposerView
::
SpellCheck
:
{
if
(
!
action_spell_check
)
{
action_spell_check
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"tools-check-spelling"
)),
i18n
(
"Check Spelling..."
),
q
);
action_spell_check
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"tools-check-spelling"
)),
i18n
(
"Check Spelling..."
),
q
);
htmlEditorActionList
.
append
(
action_spell_check
);
q
->
connect
(
action_spell_check
,
SIGNAL
(
triggered
(
bool
)),
q
,
SLOT
(
_k_slotSpellCheck
()));
}
...
...
@@ -365,7 +365,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
BlockQuote
:
{
if
(
!
action_block_quote
)
{
action_block_quote
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"format-text-blockquote"
)),
i18n
(
"Blockquote"
),
q
);
action_block_quote
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"format-text-blockquote"
)),
i18n
(
"Blockquote"
),
q
);
htmlEditorActionList
.
append
(
action_block_quote
);
q
->
connect
(
action_block_quote
,
SIGNAL
(
triggered
()),
q
,
SLOT
(
_k_slotToggleBlockQuote
()));
}
...
...
@@ -373,7 +373,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
Find
:
{
if
(
!
action_find
)
{
action_find
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"edit-find"
)),
i18n
(
"&Find..."
),
q
);
action_find
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"edit-find"
)),
i18n
(
"&Find..."
),
q
);
action_find
->
setShortcut
(
KStandardShortcut
::
find
().
first
());
htmlEditorActionList
.
append
(
action_find
);
q
->
connect
(
action_find
,
SIGNAL
(
triggered
()),
q
,
SLOT
(
_k_slotFind
()));
...
...
@@ -382,7 +382,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
Replace
:
{
if
(
!
action_replace
)
{
action_replace
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"edit-replace"
)),
i18n
(
"&Replace..."
),
q
);
action_replace
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"edit-replace"
)),
i18n
(
"&Replace..."
),
q
);
htmlEditorActionList
.
append
(
action_replace
);
action_replace
->
setShortcut
(
KStandardShortcut
::
replace
().
first
());
q
->
connect
(
action_replace
,
SIGNAL
(
triggered
()),
q
,
SLOT
(
_k_slotReplace
()));
...
...
@@ -391,7 +391,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
SaveAs
:
{
if
(
!
action_save_as
)
{
action_save_as
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"file_save_as"
)),
i18n
(
"Save &As..."
),
q
);
action_save_as
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"file_save_as"
)),
i18n
(
"Save &As..."
),
q
);
htmlEditorActionList
.
append
(
action_save_as
);
action_replace
->
setShortcut
(
KStandardShortcut
::
save
().
first
());
q
->
connect
(
action_save_as
,
SIGNAL
(
triggered
()),
q
,
SLOT
(
_k_slotSaveAs
()));
...
...
@@ -400,7 +400,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
Print
:
{
if
(
!
action_print
)
{
action_print
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"file_print"
)),
i18n
(
"&Print..."
),
q
);
action_print
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"file_print"
)),
i18n
(
"&Print..."
),
q
);
htmlEditorActionList
.
append
(
action_print
);
action_replace
->
setShortcut
(
KStandardShortcut
::
print
().
first
());
q
->
connect
(
action_print
,
SIGNAL
(
triggered
()),
q
,
SLOT
(
_k_slotPrint
()));
...
...
@@ -409,7 +409,7 @@ void ComposerViewPrivate::createAction(ComposerView::ComposerViewAction type)
}
case
ComposerView
::
PrintPreview
:
{
if
(
!
action_print_preview
)
{
action_print_preview
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"file_print_preview"
)),
i18n
(
"Print Previe&w"
),
q
);
action_print_preview
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"file_print_preview"
)),
i18n
(
"Print Previe&w"
),
q
);
htmlEditorActionList
.
append
(
action_print_preview
);
q
->
connect
(
action_print_preview
,
SIGNAL
(
triggered
()),
q
,
SLOT
(
_k_slotPrintPreview
()));
}
...
...
composereditor-ng/table/composertableactionmenu.cpp
View file @
3484641c
...
...
@@ -227,25 +227,25 @@ ComposerTableActionMenu::ComposerTableActionMenu(const QWebElement &element, QOb
KActionMenu
*
insertMenu
=
new
KActionMenu
(
i18n
(
"Insert"
),
this
);
addAction
(
insertMenu
);
d
->
action_insert_table
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"insert-table"
)),
i18nc
(
"@item:inmenu Insert"
,
"Table..."
),
this
);
d
->
action_insert_table
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"insert-table"
)),
i18nc
(
"@item:inmenu Insert"
,
"Table..."
),
this
);
insertMenu
->
addAction
(
d
->
action_insert_table
);
connect
(
d
->
action_insert_table
,
&
QAction
::
triggered
,
this
,
&
ComposerTableActionMenu
::
insertNewTable
);
insertMenu
->
addSeparator
();
d
->
action_insert_row_below
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"edit-table-insert-row-below"
)),
i18nc
(
"@item:inmenu Insert"
,
"Row Below"
),
this
);
d
->
action_insert_row_below
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"edit-table-insert-row-below"
)),
i18nc
(
"@item:inmenu Insert"
,
"Row Below"
),
this
);
insertMenu
->
addAction
(
d
->
action_insert_row_below
);
connect
(
d
->
action_insert_row_below
,
SIGNAL
(
triggered
(
bool
)),
SLOT
(
_k_slotInsertRowBelow
()));
d
->
action_insert_row_above
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"edit-table-insert-row-above"
)),
i18nc
(
"@item:inmenu Insert"
,
"Row Above"
),
this
);
d
->
action_insert_row_above
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"edit-table-insert-row-above"
)),
i18nc
(
"@item:inmenu Insert"
,
"Row Above"
),
this
);
insertMenu
->
addAction
(
d
->
action_insert_row_above
);
connect
(
d
->
action_insert_row_above
,
SIGNAL
(
triggered
(
bool
)),
SLOT
(
_k_slotInsertRowAbove
()));
insertMenu
->
addSeparator
();
d
->
action_insert_column_before
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"edit-table-insert-column-left"
)),
i18nc
(
"@item:inmenu Insert"
,
"Column Before"
),
this
);
d
->
action_insert_column_before
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"edit-table-insert-column-left"
)),
i18nc
(
"@item:inmenu Insert"
,
"Column Before"
),
this
);
insertMenu
->
addAction
(
d
->
action_insert_column_before
);
connect
(
d
->
action_insert_column_before
,
SIGNAL
(
triggered
(
bool
)),
SLOT
(
_k_slotInsertColumnBefore
()));
d
->
action_insert_column_after
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"edit-table-insert-column-right"
)),
i18nc
(
"@item:inmenu Insert"
,
"Column After"
),
this
);
d
->
action_insert_column_after
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"edit-table-insert-column-right"
)),
i18nc
(
"@item:inmenu Insert"
,
"Column After"
),
this
);
insertMenu
->
addAction
(
d
->
action_insert_column_after
);
connect
(
d
->
action_insert_column_after
,
SIGNAL
(
triggered
(
bool
)),
SLOT
(
_k_slotInsertColumnAfter
()));
...
...
@@ -283,11 +283,11 @@ ComposerTableActionMenu::ComposerTableActionMenu(const QWebElement &element, QOb
addSeparator
();
d
->
action_merge_cell
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"edit-table-cell-merge"
)),
i18n
(
"Join With Cell to the Right"
),
this
);
d
->
action_merge_cell
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"edit-table-cell-merge"
)),
i18n
(
"Join With Cell to the Right"
),
this
);
connect
(
d
->
action_merge_cell
,
SIGNAL
(
triggered
(
bool
)),
SLOT
(
_k_slotMergeCellToTheRight
()));
addAction
(
d
->
action_merge_cell
);
d
->
action_split_cell
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"edit-table-cell-split"
)),
i18n
(
"Split cells"
),
this
);
d
->
action_split_cell
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"edit-table-cell-split"
)),
i18n
(
"Split cells"
),
this
);
connect
(
d
->
action_split_cell
,
SIGNAL
(
triggered
(
bool
)),
SLOT
(
_k_slotSplitCell
()));
addAction
(
d
->
action_split_cell
);
...
...
kalarm/functions.cpp
View file @
3484641c
...
...
@@ -197,7 +197,7 @@ KToggleAction* createAlarmEnableAction(QObject* parent)
*/
QAction
*
createStopPlayAction
(
QObject
*
parent
)
{
QAction
*
action
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"media-playback-stop"
)),
i18nc
(
"@action"
,
"Stop Play"
),
parent
);
QAction
*
action
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"media-playback-stop"
)),
i18nc
(
"@action"
,
"Stop Play"
),
parent
);
action
->
setEnabled
(
MessageWin
::
isAudioPlaying
());
QObject
::
connect
(
action
,
SIGNAL
(
triggered
(
bool
)),
theApp
(),
SLOT
(
stopAudio
()));
// The following line ensures that all instances are kept in the same state
...
...
kalarm/mainwindow.cpp
View file @
3484641c
...
...
@@ -458,17 +458,17 @@ void MainWindow::initActions()
actions
->
addAction
(
QLatin1String
(
"createTemplate"
),
mActionCreateTemplate
);
connect
(
mActionCreateTemplate
,
&
QAction
::
triggered
,
this
,
&
MainWindow
::
slotNewTemplate
);
mActionCopy
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"edit-copy"
)),
i18nc
(
"@action"
,
"&Copy..."
),
this
);
mActionCopy
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"edit-copy"
)),
i18nc
(
"@action"
,
"&Copy..."
),
this
);
actions
->
addAction
(
QLatin1String
(
"copy"
),
mActionCopy
);
actions
->
setDefaultShortcut
(
mActionCopy
,
QKeySequence
(
Qt
::
SHIFT
+
Qt
::
Key_Insert
));
connect
(
mActionCopy
,
&
QAction
::
triggered
,
this
,
&
MainWindow
::
slotCopy
);
mActionModify
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"document-properties"
)),
i18nc
(
"@action"
,
"&Edit..."
),
this
);
mActionModify
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"document-properties"
)),
i18nc
(
"@action"
,
"&Edit..."
),
this
);
actions
->
addAction
(
QLatin1String
(
"modify"
),
mActionModify
);
actions
->
setDefaultShortcut
(
mActionModify
,
QKeySequence
(
Qt
::
CTRL
+
Qt
::
Key_E
));
connect
(
mActionModify
,
&
QAction
::
triggered
,
this
,
&
MainWindow
::
slotModify
);
mActionDelete
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"edit-delete"
)),
i18nc
(
"@action"
,
"&Delete"
),
this
);
mActionDelete
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"edit-delete"
)),
i18nc
(
"@action"
,
"&Delete"
),
this
);
actions
->
addAction
(
QLatin1String
(
"delete"
),
mActionDelete
);
actions
->
setDefaultShortcut
(
mActionDelete
,
QKeySequence
::
Delete
);
connect
(
mActionDelete
,
&
QAction
::
triggered
,
this
,
&
MainWindow
::
slotDeleteIf
);
...
...
@@ -515,7 +515,7 @@ void MainWindow::initActions()
actions
->
addAction
(
QLatin1String
(
"showInSystemTray"
),
mActionToggleTrayIcon
);
connect
(
mActionToggleTrayIcon
,
&
KToggleAction
::
triggered
,
this
,
&
MainWindow
::
slotToggleTrayIcon
);
mActionToggleResourceSel
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"view-choose"
)),
i18nc
(
"@action"
,
"Show &Calendars"
),
this
);
mActionToggleResourceSel
=
new
KToggleAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"view-choose"
)),
i18nc
(
"@action"
,
"Show &Calendars"
),
this
);
actions
->
addAction
(
QLatin1String
(
"showResources"
),
mActionToggleResourceSel
);
connect
(
mActionToggleResourceSel
,
&
KToggleAction
::
triggered
,
this
,
&
MainWindow
::
slotToggleResourceSelector
);
...
...
@@ -541,7 +541,7 @@ void MainWindow::initActions()
actions
->
addAction
(
QLatin1String
(
"export"
),
mActionExport
);
connect
(
mActionExport
,
&
QAction
::
triggered
,
this
,
&
MainWindow
::
slotExportAlarms
);
action
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"view-refresh"
)),
i18nc
(
"@action"
,
"&Refresh Alarms"
),
this
);
action
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"view-refresh"
)),
i18nc
(
"@action"
,
"&Refresh Alarms"
),
this
);
actions
->
addAction
(
QLatin1String
(
"refreshAlarms"
),
action
);
connect
(
action
,
&
QAction
::
triggered
,
this
,
&
MainWindow
::
slotRefreshAlarms
);
...
...
@@ -561,12 +561,12 @@ void MainWindow::initActions()
redoTextStripped
=
KLocalizedString
::
removeAcceleratorMarker
(
redoText
);
delete
act
;
}
mActionUndo
=
new
KToolBarPopupAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"edit-undo"
)),
undoText
,
this
);
mActionUndo
=
new
KToolBarPopupAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"edit-undo"
)),
undoText
,
this
);
actions
->
addAction
(
QLatin1String
(
"edit_undo"
),
mActionUndo
);
mActionUndo
->
setShortcuts
(
undoShortcut
);
connect
(
mActionUndo
,
&
KToolBarPopupAction
::
triggered
,
this
,
&
MainWindow
::
slotUndo
);
mActionRedo
=
new
KToolBarPopupAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"edit-redo"
)),
redoText
,
this
);
mActionRedo
=
new
KToolBarPopupAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"edit-redo"
)),
redoText
,
this
);
actions
->
addAction
(
QLatin1String
(
"edit_redo"
),
mActionRedo
);
mActionRedo
->
setShortcuts
(
redoShortcut
);
connect
(
mActionRedo
,
&
KToolBarPopupAction
::
triggered
,
this
,
&
MainWindow
::
slotRedo
);
...
...
kalarm/resourceselector.cpp
View file @
3484641c
...
...
@@ -355,31 +355,31 @@ void ResourceSelector::selectionChanged()
*/
void
ResourceSelector
::
initActions
(
KActionCollection
*
actions
)
{
mActionReload
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"view-refresh"
)),
i18nc
(
"@action Reload calendar"
,
"Re&load"
),
this
);
mActionReload
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"view-refresh"
)),
i18nc
(
"@action Reload calendar"
,
"Re&load"
),
this
);
actions
->
addAction
(
QLatin1String
(
"resReload"
),
mActionReload
);
connect
(
mActionReload
,
&
QAction
::
triggered
,
this
,
&
ResourceSelector
::
reloadResource
);
mActionShowDetails
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"help-about"
)),
i18nc
(
"@action"
,
"Show &Details"
),
this
);
mActionShowDetails
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"help-about"
)),
i18nc
(
"@action"
,
"Show &Details"
),
this
);
actions
->
addAction
(
QLatin1String
(
"resDetails"
),
mActionShowDetails
);
connect
(
mActionShowDetails
,
&
QAction
::
triggered
,
this
,
&
ResourceSelector
::
showInfo
);
mActionSetColour
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"color-picker"
)),
i18nc
(
"@action"
,
"Set &Color..."
),
this
);
mActionSetColour
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"color-picker"
)),
i18nc
(
"@action"
,
"Set &Color..."
),
this
);
actions
->
addAction
(
QLatin1String
(
"resSetColour"
),
mActionSetColour
);
connect
(
mActionSetColour
,
&
QAction
::
triggered
,
this
,
&
ResourceSelector
::
setColour
);
mActionClearColour
=
new
QAction
(
i18nc
(
"@action"
,
"Clear C&olor"
),
this
);
actions
->
addAction
(
QLatin1String
(
"resClearColour"
),
mActionClearColour
);
connect
(
mActionClearColour
,
&
QAction
::
triggered
,
this
,
&
ResourceSelector
::
clearColour
);
mActionEdit
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"document-properties"
)),
i18nc
(
"@action"
,
"&Edit..."
),
this
);
mActionEdit
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"document-properties"
)),
i18nc
(
"@action"
,
"&Edit..."
),
this
);
actions
->
addAction
(
QLatin1String
(
"resEdit"
),
mActionEdit
);
connect
(
mActionEdit
,
&
QAction
::
triggered
,
this
,
&
ResourceSelector
::
editResource
);
mActionUpdate
=
new
QAction
(
i18nc
(
"@action"
,
"&Update Calendar Format"
),
this
);
actions
->
addAction
(
QLatin1String
(
"resUpdate"
),
mActionUpdate
);
connect
(
mActionUpdate
,
&
QAction
::
triggered
,
this
,
&
ResourceSelector
::
updateResource
);
mActionRemove
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"edit-delete"
)),
i18nc
(
"@action"
,
"&Remove"
),
this
);
mActionRemove
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"edit-delete"
)),
i18nc
(
"@action"
,
"&Remove"
),
this
);
actions
->
addAction
(
QLatin1String
(
"resRemove"
),
mActionRemove
);
connect
(
mActionRemove
,
&
QAction
::
triggered
,
this
,
&
ResourceSelector
::
removeResource
);
mActionSetDefault
=
new
KToggleAction
(
this
);
actions
->
addAction
(
QLatin1String
(
"resDefault"
),
mActionSetDefault
);
connect
(
mActionSetDefault
,
&
KToggleAction
::
triggered
,
this
,
&
ResourceSelector
::
setStandard
);
QAction
*
action
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"document-new"
)),
i18nc
(
"@action"
,
"&Add..."
),
this
);
QAction
*
action
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"document-new"
)),
i18nc
(
"@action"
,
"&Add..."
),
this
);
actions
->
addAction
(
QLatin1String
(
"resAdd"
),
action
);
connect
(
action
,
&
QAction
::
triggered
,
this
,
&
ResourceSelector
::
addResource
);
mActionImport
=
new
QAction
(
i18nc
(
"@action"
,
"Im&port..."
),
this
);
...
...
kleopatra/crypto/gui/newsignencryptfileswizard.cpp
View file @
3484641c
...
...
@@ -714,8 +714,8 @@ public:
KDAB_SET_OBJECT_NAME
(
m_unselectPB
);
KDAB_SET_OBJECT_NAME
(
m_selectedKTV
);
m_selectPB
.
setIcon
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"arrow-down"
)));
m_unselectPB
.
setIcon
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"arrow-up"
)));
m_selectPB
.
setIcon
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"arrow-down"
)));
m_unselectPB
.
setIcon
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"arrow-up"
)));
m_selectPB
.
setEnabled
(
false
);
m_unselectPB
.
setEnabled
(
false
);
...
...
kleopatra/kwatchgnupg/kwatchgnupgmainwin.cpp
View file @
3484641c
...
...
@@ -102,7 +102,7 @@ void KWatchGnuPGMainWindow::slotClear()
void
KWatchGnuPGMainWindow
::
createActions
()
{
QAction
*
action
=
actionCollection
()
->
addAction
(
QLatin1String
(
"clear_log"
));
action
->
setIcon
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"edit-clear-history"
)));
action
->
setIcon
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"edit-clear-history"
)));
action
->
setText
(
i18n
(
"C&lear History"
));
connect
(
action
,
&
QAction
::
triggered
,
this
,
&
KWatchGnuPGMainWindow
::
slotClear
);
actionCollection
()
->
setDefaultShortcut
(
action
,
QKeySequence
(
Qt
::
CTRL
+
Qt
::
Key_L
));
...
...
kleopatra/mainwindow_desktop.cpp
View file @
3484641c
...
...
@@ -397,7 +397,7 @@ void MainWindow::Private::setupActions()
connect
(
focusToClickSearchAction
,
SIGNAL
(
triggered
(
bool
)),
q
,
SLOT
(
slotFocusQuickSearch
()));
clipboadMenu
=
new
ClipboardMenu
(
q
);
clipboadMenu
->
setMainWindow
(
q
);
clipboadMenu
->
clipboardMenu
()
->
setIcon
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"edit-paste"
)));
clipboadMenu
->
clipboardMenu
()
->
setIcon
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"edit-paste"
)));
clipboadMenu
->
clipboardMenu
()
->
setDelayed
(
false
);
coll
->
addAction
(
QLatin1String
(
"clipboard_menu"
),
clipboadMenu
->
clipboardMenu
());
...
...
kleopatra/newcertificatewizard/newcertificatewizard.cpp
View file @
3484641c
...
...
@@ -747,7 +747,7 @@ public:
ui
()
{
ui
.
setupUi
(
this
);
ui
.
dragQueen
->
setPixmap
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"kleopatra"
)).
pixmap
(
64
,
64
));
ui
.
dragQueen
->
setPixmap
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"kleopatra"
)).
pixmap
(
64
,
64
));
registerField
(
QLatin1String
(
"error"
),
ui
.
errorTB
,
"plainText"
);
registerField
(
QLatin1String
(
"result"
),
ui
.
resultTB
,
"plainText"
);
registerField
(
QLatin1String
(
"url"
),
ui
.
dragQueen
,
"url"
);
...
...
kmail/configuredialog/configagentdelegate.cpp
View file @
3484641c
...
...
@@ -41,11 +41,11 @@ static const int s_delegatePaddingSize = 7;
struct
Icons
{
Icons
()
:
readyPixmap
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"user-online"
)).
pixmap
(
QSize
(
16
,
16
)))
,
syncPixmap
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"network-connect"
)).
pixmap
(
QSize
(
16
,
16
)))
,
errorPixmap
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"dialog-error"
)).
pixmap
(
QSize
(
16
,
16
)))
,
offlinePixmap
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"network-disconnect"
)).
pixmap
(
QSize
(
16
,
16
)))
,
checkMailIcon
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"mail-receive"
)))
:
readyPixmap
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"user-online"
)).
pixmap
(
QSize
(
16
,
16
)))
,
syncPixmap
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"network-connect"
)).
pixmap
(
QSize
(
16
,
16
)))
,
errorPixmap
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"dialog-error"
)).
pixmap
(
QSize
(
16
,
16
)))
,
offlinePixmap
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"network-disconnect"
)).
pixmap
(
QSize
(
16
,
16
)))
,
checkMailIcon
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"mail-receive"
)))
{
}
QPixmap
readyPixmap
,
syncPixmap
,
errorPixmap
,
offlinePixmap
;
...
...
kmail/configuredialog/configureappearancepage.cpp
View file @
3484641c
...
...
@@ -1049,12 +1049,12 @@ AppearancePageMessageTagTab::AppearancePageMessageTagTab(QWidget *parent)
mTagAddButton
=
new
QPushButton
(
mTagsGroupBox
);
mTagAddButton
->
setToolTip
(
i18n
(
"Add new tag"
));
mTagAddButton
->
setIcon
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"list-add"
)));
mTagAddButton
->
setIcon
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"list-add"
)));
addremovegrid
->
addWidget
(
mTagAddButton
);
mTagRemoveButton
=
new
QPushButton
(
mTagsGroupBox
);
mTagRemoveButton
->
setToolTip
(
i18n
(
"Remove selected tag"
));
mTagRemoveButton
->
setIcon
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"list-remove"
)));
mTagRemoveButton
->
setIcon
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"list-remove"
)));
addremovegrid
->
addWidget
(
mTagRemoveButton
);
//Up and down buttons
...
...
@@ -1063,13 +1063,13 @@ AppearancePageMessageTagTab::AppearancePageMessageTagTab(QWidget *parent)
mTagUpButton
=
new
QPushButton
(
mTagsGroupBox
);
mTagUpButton
->
setToolTip
(
i18n
(
"Increase tag priority"
));
mTagUpButton
->
setIcon
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"arrow-up"
)));
mTagUpButton
->
setIcon
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"arrow-up"
)));
mTagUpButton
->
setAutoRepeat
(
true
);
updowngrid
->
addWidget
(
mTagUpButton
);
mTagDownButton
=
new
QPushButton
(
mTagsGroupBox
);
mTagDownButton
->
setToolTip
(
i18n
(
"Decrease tag priority"
));
mTagDownButton
->
setIcon
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"arrow-down"
)));
mTagDownButton
->
setIcon
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"arrow-down"
)));
mTagDownButton
->
setAutoRepeat
(
true
);
updowngrid
->
addWidget
(
mTagDownButton
);
...
...
kmail/editor/kmcomposewin.cpp
View file @
3484641c
...
...
@@ -1095,29 +1095,29 @@ void KMComposeWin::setupActions(void)
if
(
MessageComposer
::
MessageComposerSettings
::
self
()
->
sendImmediate
())
{
//default = send now, alternative = queue
QAction
*
action
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"mail-send"
)),
i18n
(
"&Send Mail"
),
this
);
QAction
*
action
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"mail-send"
)),
i18n
(
"&Send Mail"
),
this
);
actionCollection
()
->
addAction
(
QLatin1String
(
"send_mail_default"
),
action
);
connect
(
action
,
&
QAction
::
triggered
,
this
,
&
KMComposeWin
::
slotSendNow
);
action
=
new
QAction
(
QIcon
::
fromTheme
(
Q
Latin1String
(
"mail-send"
)),
i18n
(
"Send Mail Using Shortcut"
),
this
);
action
=
new
QAction
(
QIcon
::
fromTheme
(
Q
StringLiteral
(
"mail-send"
)),
i18n
(
"Send Mail Using Shortcut"
),
this
);
actionCollection
()
->
addAction
(
QLatin1String
(
"send_mail"
),
action
);
actionCollection
()
->
setDefaultShortcut
(
action
,
QKeySequence
(
Qt
::
CTRL
+
Qt
::
Key_Return
));