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
b8a12cd6
Commit
b8a12cd6
authored
May 21, 2016
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor optimization
parent
5b185ac7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
akregator/src/articleviewer-ng/webengine/articleviewerwebengine.cpp
...src/articleviewer-ng/webengine/articleviewerwebengine.cpp
+0
-1
akregator/src/tabwidget.cpp
akregator/src/tabwidget.cpp
+5
-4
No files found.
akregator/src/articleviewer-ng/webengine/articleviewerwebengine.cpp
View file @
b8a12cd6
...
...
@@ -107,7 +107,6 @@ void ArticleViewerWebEngine::slotWebPageMutedOrAudibleChanged()
#endif
}
QWebEngineView
*
ArticleViewerWebEngine
::
createWindow
(
QWebEnginePage
::
WebWindowType
type
)
{
qDebug
()
<<
" QWebEngineView *ArticleViewerWebEngine::createWindow(QWebEnginePage::WebWindowType type) not implemented yet"
<<
type
;
...
...
akregator/src/tabwidget.cpp
View file @
b8a12cd6
...
...
@@ -149,21 +149,22 @@ void TabWidget::slotTabContextMenuRequest(const QPoint &pos)
}
QMenu
menu
(
this
);
const
int
countTab
=
(
count
()
>
1
);
QAction
*
detachTab
=
menu
.
addAction
(
i18nc
(
"@action:inmenu"
,
"Detach Tab"
));
detachTab
->
setEnabled
((
indexBar
!=
0
)
&&
(
count
()
>
1
)
);
detachTab
->
setEnabled
((
indexBar
!=
0
)
&&
countTab
);
detachTab
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"tab-detach"
)));
menu
.
addSeparator
();
QAction
*
closeTab
=
menu
.
addAction
(
i18nc
(
"@action:inmenu"
,
"Close Tab"
));
closeTab
->
setEnabled
((
indexBar
!=
0
)
&&
(
count
()
>
1
)
);
closeTab
->
setEnabled
((
indexBar
!=
0
)
&&
countTab
);
closeTab
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"tab-close"
)));
QAction
*
allOther
=
menu
.
addAction
(
i18nc
(
"@action:inmenu"
,
"Close All Other Tabs"
));
allOther
->
setEnabled
(
count
()
>
1
);
allOther
->
setEnabled
(
count
Tab
);
allOther
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"tab-close-other"
)));
QAction
*
allTab
=
menu
.
addAction
(
i18nc
(
"@action:inmenu"
,
"Close All Tabs"
));
allTab
->
setEnabled
(
count
()
>
1
);
allTab
->
setEnabled
(
count
Tab
);
allTab
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"tab-close"
)));
QAction
*
action
=
menu
.
exec
(
mapToGlobal
(
pos
));
...
...
Write
Preview
Markdown
is supported
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