Commit 4d1332bc authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Deprecated--

Compile

svn path=/trunk/koffice/; revision=531912
parent 09862763
......@@ -30,7 +30,7 @@
//Added by qt3to4:
#include <QTextStream>
#include <QKeyEvent>
#include <QDomElement>
#include <kcommand.h>
//#include <KoCommandHistory.h>
#include "kformuladefs.h"
......
......@@ -64,8 +64,8 @@ void KoCharSelectDia::initDialog(const QChar &_chr, const QString &_font, bool /
charSelect->enableFontCombo( true );
grid->addWidget( charSelect, 0, 0 );
grid->addColSpacing( 0, charSelect->width() );
grid->addRowSpacing( 0, charSelect->height() );
grid->addItem( new QSpacerItem( charSelect->width(), 0 ), 0, 0 );
grid->addItem( new QSpacerItem( 0, charSelect->height() ), 0, 0 );
grid->setRowStretch( 0, 0 );
charSelect->setFocus();
}
......
......@@ -121,7 +121,7 @@ KFontChooser_local::KFontChooser_local(QWidget *parent, const char *name,
page = new Q3GroupBox( i18n("Requested Font"), this );
topLayout->addWidget(page);
gridLayout = new Q3GridLayout( page, 5, 3, KDialog::marginHint(), KDialog::spacingHint() );
gridLayout->addRowSpacing( 0, fontMetrics().lineSpacing() );
gridLayout->addItem( new QSpacerItem( 0, fontMetrics().lineSpacing() ), 0, 0 );
row = 1;
}
else
......
......@@ -74,7 +74,7 @@ KoCounterStyleWidget::KoCounterStyleWidget( bool displayDepth, bool onlyStyleTyp
gStyle = new Q3GroupBox( i18n( "St&yle" ), this, "styleLayout" );
vbox->addWidget( gStyle);
Q3GridLayout * grid = new Q3GridLayout(gStyle, 12, 5, KDialog::marginHint(), KDialog::spacingHint());
grid->addRowSpacing(0, fontMetrics().height()/2);
grid->addItem( new QSpacerItem( 0, fontMetrics().height()/2), 0, 0 );
makeCounterRepresenterList( stylesList, onlyStyleTypeLetter );
......@@ -927,7 +927,7 @@ KoIndentSpacingWidget::KoIndentSpacingWidget( KoUnit::Unit unit, double _frameWi
indentGrid->addWidget( eFirstLine, 3, 1 );
// grid row spacing
indentGrid->addRowSpacing( 0, fontMetrics().height() / 2 ); // groupbox title
indentGrid->addItem( new QSpacerItem( 0, fontMetrics().height() / 2 ), 0, 0 ); // groupbox title
for ( int i = 1 ; i < indentGrid->rowCount() ; ++i )
indentGrid->setRowStretch( i, 1 );
mainGrid->addWidget( indentFrame, 0, 0 );
......@@ -966,7 +966,7 @@ KoIndentSpacingWidget::KoIndentSpacingWidget( KoUnit::Unit unit, double _frameWi
spacingGrid->addWidget( sSpacingStack, 1, 1 );
// grid row spacing
spacingGrid->addRowSpacing( 0, fontMetrics().height() / 2 ); // groupbox title
spacingGrid->addItem( new QSpacerItem( 0, fontMetrics().height() / 2 ), 0, 0 ); // groupbox title
for ( int i = 1 ; i < spacingGrid->rowCount() ; ++i )
spacingGrid->setRowStretch( i, 1 );
mainGrid->addWidget( spacingFrame, 1, 0 );
......@@ -997,7 +997,7 @@ KoIndentSpacingWidget::KoIndentSpacingWidget( KoUnit::Unit unit, double _frameWi
pSpaceGrid->addWidget( eAfter, 2, 1 );
// grid row spacing
pSpaceGrid->addRowSpacing( 0, fontMetrics().height() / 2 ); // groupbox title
pSpaceGrid->addItem( new QSpacerItem( 0, fontMetrics().height() / 2 ), 0, 0 ); // groupbox title
for ( int i = 1 ; i < pSpaceGrid->rowCount() ; ++i )
pSpaceGrid->setRowStretch( i, 1 );
mainGrid->addWidget( pSpaceFrame, 2, 0 );
......@@ -1246,7 +1246,7 @@ KoParagAlignWidget::KoParagAlignWidget( bool breakLine, QWidget * parent )
cHardBreakAfter = new QCheckBox( i18n("Insert break after paragraph"),endFramePage);
endFramePageGrid->addWidget( cHardBreakAfter, 3, 0 );
endFramePageGrid->addRowSpacing( 0, fontMetrics().height() / 2 ); // groupbox title
endFramePageGrid->addItem( new QSpacerItem( 0, fontMetrics().height() / 2 ), 0, 0 ); // groupbox title
for ( int i = 0 ; i < endFramePageGrid->rowCount()-1 ; ++i )
endFramePageGrid->setRowStretch( 0, 0 );
endFramePageGrid->setRowStretch( endFramePageGrid->rowCount()-1, 1 );
......@@ -1960,7 +1960,7 @@ void KoParagTabulatorsWidget::newClicked() {
newTab.type=m_tabList[selected].type;
newTab.filling=m_tabList[selected].filling;
newTab.ptWidth=m_tabList[selected].ptWidth;
m_tabList.insert(m_tabList.at(selected), newTab);
m_tabList.insert(selected, newTab);
lstTabs->insertItem( tabToString(newTab), selected);
lstTabs->setCurrentItem(lstTabs->findItem(tabToString(newTab)));
sortLists();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment