[vlmc-devel] Fix Import compilation for qt4

Jean-Baptiste Kempf git at videolan.org
Wed Feb 5 00:24:31 CET 2014


vlmc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Feb  2 14:05:34 2014 +0100| [0f2214e05fcfb33c8f97a21c976fe264d82077dd] | committer: Hugo Beauzée-Luyssen

Fix Import compilation for qt4

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=0f2214e05fcfb33c8f97a21c976fe264d82077dd
---

 src/Gui/import/ImportController.cpp |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/Gui/import/ImportController.cpp b/src/Gui/import/ImportController.cpp
index ea6b62d..46d7543 100644
--- a/src/Gui/import/ImportController.cpp
+++ b/src/Gui/import/ImportController.cpp
@@ -79,7 +79,11 @@ ImportController::ImportController(QWidget *parent) :
     m_ui->treeView->setCurrentIndex( m_filesModel->index( m_currentlyWatchedDir ) );
     m_ui->treeView->setExpanded( m_ui->treeView->currentIndex() , true );
     m_ui->treeView->header()->setStretchLastSection( false );
+#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
     m_ui->treeView->header()->setSectionResizeMode( QHeaderView::ResizeToContents );
+#else
+    m_ui->treeView->header()->setResizeMode( QHeaderView::ResizeToContents );
+#endif
     m_ui->treeView->setColumnHidden( 1, true );
     m_ui->treeView->setColumnHidden( 2, true );
     m_ui->treeView->setColumnHidden( 3, true );



More information about the Vlmc-devel mailing list