Rename setResizeMode() to setSectionResizeMode()

Another method rename, see here: https://wiki.qt.io/Transition_from_Qt_4.x_to_Qt5
This commit is contained in:
Sebastian Lohff 2022-06-30 23:23:13 +02:00
parent d345f490b6
commit a47f434771
2 changed files with 8 additions and 8 deletions

View File

@ -33,9 +33,9 @@ CDlgLearnAssistant::CDlgLearnAssistant (QWidget *pParent) : QDialog(pParent)
tvChapters->setModel (&m_modelChapter);
tvChapters->header()->setStretchLastSection(false);
tvChapters->header()->setResizeMode (0, QHeaderView::Stretch);
tvChapters->header()->setResizeMode (1, QHeaderView::Interactive);
tvChapters->header()->setResizeMode (3, QHeaderView::Interactive);
tvChapters->header()->setSectionResizeMode (0, QHeaderView::Stretch);
tvChapters->header()->setSectionResizeMode (1, QHeaderView::Interactive);
tvChapters->header()->setSectionResizeMode (3, QHeaderView::Interactive);
tvChapters->header()->resizeSection(1, 50);
tvChapters->header()->resizeSection(2, 140);
tvChapters->header()->resizeSection(3, 20);

View File

@ -48,9 +48,9 @@ CMainWindow::CMainWindow() : QMainWindow()
m_pViewChapter = new QTreeView (m_pSplitter);
m_pViewChapter->setModel(&m_modelCatalog);
m_pViewChapter->header()->setStretchLastSection(false);
m_pViewChapter->header()->setResizeMode (0, QHeaderView::Stretch);
m_pViewChapter->header()->setResizeMode (1, QHeaderView::Interactive);
m_pViewChapter->header()->setResizeMode (3, QHeaderView::Interactive);
m_pViewChapter->header()->setSectionResizeMode (0, QHeaderView::Stretch);
m_pViewChapter->header()->setSectionResizeMode (1, QHeaderView::Interactive);
m_pViewChapter->header()->setSectionResizeMode (3, QHeaderView::Interactive);
m_pViewChapter->header()->resizeSection(1, 45);
m_pViewChapter->header()->resizeSection(2, 150);
m_pViewChapter->header()->resizeSection(3, 20);
@ -62,8 +62,8 @@ CMainWindow::CMainWindow() : QMainWindow()
m_pViewQuestions = new QTreeView (m_pSplitter2);
m_pViewQuestions->setModel(&m_modelQuestion);
m_pViewQuestions->header()->setStretchLastSection(false);
m_pViewQuestions->header()->setResizeMode (0, QHeaderView::Interactive);
m_pViewQuestions->header()->setResizeMode (1, QHeaderView::Stretch);
m_pViewQuestions->header()->setSectionResizeMode (0, QHeaderView::Interactive);
m_pViewQuestions->header()->setSectionResizeMode (1, QHeaderView::Stretch);
m_pViewQuestions->header()->resizeSection(0, 60);
m_pViewQuestions->header()->resizeSection(2, 20);
m_pViewQuestions->header()->resizeSection(3, 20);