QHeaderView::setResizeMode is deprecated.
authorThiago Macieira <thiago.macieira@intel.com>
Wed, 1 Aug 2012 15:10:20 +0000 (17:10 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 1 Aug 2012 16:03:27 +0000 (18:03 +0200)
Replace with the Qt 5 name setSectionResizeMode.

Change-Id: I908e669708c3595f110e41774475eea4cbdb7325
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
src/linguist/linguist/phrasebookbox.cpp

index 7812e17..df47230 100644 (file)
@@ -79,7 +79,7 @@ PhraseBookBox::PhraseBookBox(PhraseBook *phraseBook, QWidget *parent)
 
     phraseList->setModel(m_sortedPhraseModel);
     phraseList->header()->setDefaultSectionSize(150);
-    phraseList->header()->setResizeMode(QHeaderView::Interactive);
+    phraseList->header()->setSectionResizeMode(QHeaderView::Interactive);
 
     connect(sourceLed, SIGNAL(textChanged(QString)),
             this, SLOT(sourceChanged(QString)));