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
Utilities
Kate
Commits
e4296db0
Commit
e4296db0
authored
Jun 26, 2020
by
Christoph Cullmann
🐮
Browse files
enable document mode for the tabbar we have
parent
2d4c501b
Changes
1
Hide whitespace changes
Inline
Side-by-side
kate/katetabbar.cpp
View file @
e4296db0
...
...
@@ -44,9 +44,21 @@ Q_DECLARE_METATYPE(KateTabButtonData)
KateTabBar
::
KateTabBar
(
QWidget
*
parent
)
:
QTabBar
(
parent
)
{
// enable document mode, docs tell this will trigger:
// On macOS this will look similar to the tabs in Safari or Sierra's Terminal.app.
// this seems reasonable for our document tabs
setDocumentMode
(
true
);
// we want drag and drop
setAcceptDrops
(
true
);
// use as much size as possible for each tab
setExpanding
(
true
);
// document close function should be there
setTabsClosable
(
true
);
// allow users to re-arrange the tabs
setMovable
(
true
);
}
...
...
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