Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 446414 Details for
Bug 632217
[BACKPORT REQUEST] konsole tab minimum width is too wide
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
upstream fix from 4.5 branch
kdebase-4.5.1-konsole-tab-width.patch (text/plain), 1.58 KB, created by
Stefan Becker
on 2010-09-10 03:28:12 UTC
(
hide
)
Description:
upstream fix from 4.5 branch
Filename:
MIME Type:
Creator:
Stefan Becker
Created:
2010-09-10 03:28:12 UTC
Size:
1.58 KB
patch
obsolete
>--- branches/KDE/4.5/kdebase/apps/konsole/src/ViewContainer.cpp 2010/09/10 02:31:00 1173667 >+++ branches/KDE/4.5/kdebase/apps/konsole/src/ViewContainer.cpp 2010/09/10 02:31:33 1173668 >@@ -260,6 +260,7 @@ > , _dropIndicatorIndex(-1) > , _drawIndicatorDisabled(false) > { >+ setStyleSheet("QTabBar::tab { min-width: 2em; max-width: 25em }"); > setElideMode(Qt::ElideLeft); > } > void ViewContainerTabBar::setDropIndicator(int index, bool drawDisabled) >@@ -396,29 +397,10 @@ > event->ignore(); > } > >-/* Try to provide a reasonable tab width: >- * If there are less than 5 tabs, let the tabs fill out the tabbar. >- * Otherwise, check the tab text size and the minimumTabWidth value. >- * The minimumTabWidth is to prevent the tabs from getting too >- * small such that no scroll indicators will appear. >-*/ >+/* A stylesheet is used now to handle width of tab. */ > QSize ViewContainerTabBar::tabSizeHint(int index) const > { >- const int fillTabCount = 5; >- const int minimumTabWidth = 150; // Arbitrary value >- int tabBarWidth = rect().width(); >- int tabCount = count(); >- int tabMaxWidth; >- if (tabCount <= fillTabCount) >- tabMaxWidth = tabBarWidth / (tabCount + 0.5); >- else >- tabMaxWidth = tabBarWidth / (fillTabCount + 0.5); >- >- int tabTextWidth = fontMetrics().width(tabText(index)); >- // qBound ( minimum, value, max ) >- QSize size (qBound(minimumTabWidth, tabTextWidth, tabMaxWidth), >- QTabBar::tabSizeHint(index).height()); >- return size; >+ return QTabBar::tabSizeHint(index); > } > QPixmap ViewContainerTabBar::dragDropPixmap(int tab) > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 632217
:
446242
| 446414