[vlc-commits] Qt, remove unnecessary headers
Jean-Baptiste Kempf
git at videolan.org
Wed Apr 27 13:39:29 CEST 2011
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Apr 27 12:11:58 2011 +0200| [e5ebfa67a2e42b7dfd4f7ce2e259bb2d4bf80168] | committer: Jean-Baptiste Kempf
Qt, remove unnecessary headers
setHeaderHidden() was introduced in 4.4
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e5ebfa67a2e42b7dfd4f7ce2e259bb2d4bf80168
---
.../gui/qt4/components/complete_preferences.cpp | 1 -
modules/gui/qt4/components/info_panels.cpp | 4 ++--
modules/gui/qt4/components/simple_preferences.cpp | 1 -
modules/gui/qt4/dialogs/vlm.cpp | 1 -
4 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/modules/gui/qt4/components/complete_preferences.cpp b/modules/gui/qt4/components/complete_preferences.cpp
index 49a217b..bd7d6ec 100644
--- a/modules/gui/qt4/components/complete_preferences.cpp
+++ b/modules/gui/qt4/components/complete_preferences.cpp
@@ -35,7 +35,6 @@
#include <QScrollArea>
#include <QVBoxLayout>
#include <QGridLayout>
-#include <QHeaderView>
#include "components/complete_preferences.hpp"
#include "components/preferences_widgets.hpp"
diff --git a/modules/gui/qt4/components/info_panels.cpp b/modules/gui/qt4/components/info_panels.cpp
index db9cc4a..0c66e78 100644
--- a/modules/gui/qt4/components/info_panels.cpp
+++ b/modules/gui/qt4/components/info_panels.cpp
@@ -338,7 +338,7 @@ ExtraMetaPanel::ExtraMetaPanel( QWidget *parent,
extraMetaTree->setAlternatingRowColors( true );
extraMetaTree->setColumnCount( 2 );
extraMetaTree->resizeColumnToContents( 0 );
- extraMetaTree->header()->hide();
+ extraMetaTree->setHeaderHidden( true );
layout->addWidget( extraMetaTree, 1, 0 );
}
@@ -485,7 +485,7 @@ InputStatsPanel::InputStatsPanel( QWidget *parent,
StatsTree = new QTreeWidget(this);
StatsTree->setColumnCount( 3 );
- StatsTree->header()->hide();
+ StatsTree->setHeaderHidden( true );
#define CREATE_TREE_ITEM( itemName, itemText, itemValue, unit ) { \
itemName = \
diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp
index d3ad7db..fd8b630 100644
--- a/modules/gui/qt4/components/simple_preferences.cpp
+++ b/modules/gui/qt4/components/simple_preferences.cpp
@@ -887,7 +887,6 @@ void SPrefsPanel::changeStyle( QString s_style )
#ifdef WIN32
#include <QDialogButtonBox>
-#include <QHeaderView>
#include "util/registry.hpp"
#include <string>
diff --git a/modules/gui/qt4/dialogs/vlm.cpp b/modules/gui/qt4/dialogs/vlm.cpp
index 8a08de9..b4fc237 100644
--- a/modules/gui/qt4/dialogs/vlm.cpp
+++ b/modules/gui/qt4/dialogs/vlm.cpp
@@ -50,7 +50,6 @@
#include <QDateTimeEdit>
#include <QDateTime>
#include <QSpinBox>
-#include <QHeaderView>
#include <QScrollArea>
#include <QFileDialog>
More information about the vlc-commits
mailing list