diff --git a/plugins/textshape/dialogs/TableOfContentsConfigure.cpp b/plugins/textshape/dialogs/TableOfContentsConfigure.cpp --- a/plugins/textshape/dialogs/TableOfContentsConfigure.cpp +++ b/plugins/textshape/dialogs/TableOfContentsConfigure.cpp @@ -115,8 +115,8 @@ ui.configureToCEntryStyle->verticalHeader()->hide(); ui.configureToCEntryStyle->setEditTriggers(QAbstractItemView::CurrentChanged | QAbstractItemView::DoubleClicked | QAbstractItemView::SelectedClicked); ui.configureToCEntryStyle->setSelectionBehavior(QAbstractItemView::SelectRows); - ui.configureToCEntryStyle->horizontalHeader()->setResizeMode(0, QHeaderView::ResizeToContents); - ui.configureToCEntryStyle->horizontalHeader()->setResizeMode(1, QHeaderView::Stretch); + ui.configureToCEntryStyle->horizontalHeader()->setSectionResizeMode(0, QHeaderView::ResizeToContents); + ui.configureToCEntryStyle->horizontalHeader()->setSectionResizeMode(1, QHeaderView::Stretch); connect(this, SIGNAL(accepted()), this, SLOT(save())); connect(this, SIGNAL(rejected()), this, SLOT(cleanUp())); diff --git a/plugins/textshape/dialogs/TableOfContentsStyleConfigure.cpp b/plugins/textshape/dialogs/TableOfContentsStyleConfigure.cpp --- a/plugins/textshape/dialogs/TableOfContentsStyleConfigure.cpp +++ b/plugins/textshape/dialogs/TableOfContentsStyleConfigure.cpp @@ -68,7 +68,7 @@ ui->tableView->verticalHeader()->hide(); ui->tableView->setEditTriggers(QAbstractItemView::CurrentChanged | QAbstractItemView::DoubleClicked | QAbstractItemView::SelectedClicked); ui->tableView->setSelectionBehavior(QAbstractItemView::SelectRows); - ui->tableView->horizontalHeader()->setResizeMode(0, QHeaderView::Stretch); + ui->tableView->horizontalHeader()->setSectionResizeMode(0, QHeaderView::Stretch); ui->tableView->horizontalHeader()->resizeSection(1, 100); this->setVisible(true); diff --git a/sheets/dialogs/SortDialog.cpp b/sheets/dialogs/SortDialog.cpp --- a/sheets/dialogs/SortDialog.cpp +++ b/sheets/dialogs/SortDialog.cpp @@ -338,8 +338,8 @@ d->mainWidget.m_upButton->setIcon(koIcon("go-up")); d->mainWidget.m_downButton->setIcon(koIcon("go-down")); QHeaderView *const header = d->mainWidget.m_tableWidget->horizontalHeader(); - header->setResizeMode(QHeaderView::ResizeToContents); - header->setResizeMode(0, QHeaderView::Stretch); + header->setSectionResizeMode(QHeaderView::ResizeToContents); + header->setSectionResizeMode(0, QHeaderView::Stretch); d->mainWidget.m_tableWidget->setItemDelegateForColumn(0, d); connect(d->mainWidget.m_useHeader, SIGNAL(toggled(bool)), diff --git a/words/part/dockers/KWNavigationWidget.cpp b/words/part/dockers/KWNavigationWidget.cpp --- a/words/part/dockers/KWNavigationWidget.cpp +++ b/words/part/dockers/KWNavigationWidget.cpp @@ -109,8 +109,8 @@ m_model->setHorizontalHeaderLabels(head); m_model->setColumnCount(2); - m_treeView->header()->setResizeMode(0, QHeaderView::Stretch); - m_treeView->header()->setResizeMode(1, QHeaderView::ResizeToContents); + m_treeView->header()->setSectionResizeMode(0, QHeaderView::Stretch); + m_treeView->header()->setSectionResizeMode(1, QHeaderView::ResizeToContents); m_treeView->header()->setStretchLastSection(false); QStack< QPair > curChain;