Summary: | Layout error in endnote/footnote dialog | ||
---|---|---|---|
Product: | kword | Reporter: | Mike McBride <mpmcbride7> |
Component: | general | Assignee: | Thomas Zander <zander> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.5 or before | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | Pix of dialog box. |
Description
Mike McBride
2003-02-01 03:13:19 UTC
Created attachment 852 [details]
Pix of dialog box.
Subject: koffice/kword CVS commit by faure: When using our own layout for a QGroupBox, we must remember to reserve row 0 for the title of the groupbox, and to use addRowSpacing( 0, fontHeight / 2 ) on it. CCMAIL: 53794-done@bugs.kde.org M +5 -3 footnotedia.cc 1.31 --- koffice/kword/footnotedia.cc #1.30:1.31 @@ -51,6 +51,8 @@ KWFootNoteDia::KWFootNoteDia( NoteType _ grp->setExclusive( true ); - grid->addWidget( m_rbAuto, 0, 0); - grid->addWidget( m_rbManual, 1, 0); + int fHeight = grp->fontMetrics().height(); + grid->addRowSpacing( 0, fHeight/2 ); // groupbox title + grid->addWidget( m_rbAuto, 1, 0); + grid->addWidget( m_rbManual, 2, 0); if ( _numberingType == KWFootNoteVariable::Auto ) m_rbAuto->setChecked( true ); @@ -61,5 +63,5 @@ KWFootNoteDia::KWFootNoteDia( NoteType _ connect( m_footLine, SIGNAL( textChanged ( const QString & )), this, SLOT(footLineChanged( const QString & ))); connect( grp, SIGNAL( clicked ( int ) ), this, SLOT(footNoteTypeChanged())); - grid->addWidget( m_footLine, 1, 1); + grid->addWidget( m_footLine, 2, 1); |