mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
kcontrol: ensure the keyboard KCM options dialog state text is not elided
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
f9f7c94639
commit
86d4e57798
1 changed files with 7 additions and 1 deletions
|
@ -67,7 +67,13 @@ KCMKeyboardOptionsDialog::KCMKeyboardOptionsDialog(QWidget *parent)
|
|||
m_optionstree->header()->setMovable(false);
|
||||
m_optionstree->header()->setStretchLastSection(false);
|
||||
m_optionstree->header()->setResizeMode(0, QHeaderView::Stretch);
|
||||
m_optionstree->header()->setResizeMode(1, QHeaderView::Interactive);
|
||||
m_optionstree->header()->setResizeMode(1, QHeaderView::ResizeToContents);
|
||||
const QFontMetrics fontmetrics(m_optionstree->header()->font());
|
||||
int minsectionsize = fontmetrics.width(m_enabledi18n);
|
||||
minsectionsize = qMax(minsectionsize, fontmetrics.width(m_disabledi18n));
|
||||
// some space for the checkbox
|
||||
minsectionsize = (minsectionsize + 20);
|
||||
m_optionstree->header()->setMinimumSectionSize(minsectionsize);
|
||||
connect(
|
||||
m_optionstree, SIGNAL(itemChanged(QTreeWidgetItem*,int)),
|
||||
this, SLOT(slotItemChanged(QTreeWidgetItem*,int))
|
||||
|
|
Loading…
Add table
Reference in a new issue