Commit e5ebfa67 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt, remove unnecessary headers

setHeaderHidden() was introduced in 4.4
parent 85316077
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
#include <QScrollArea> #include <QScrollArea>
#include <QVBoxLayout> #include <QVBoxLayout>
#include <QGridLayout> #include <QGridLayout>
#include <QHeaderView>
#include "components/complete_preferences.hpp" #include "components/complete_preferences.hpp"
#include "components/preferences_widgets.hpp" #include "components/preferences_widgets.hpp"
......
...@@ -338,7 +338,7 @@ ExtraMetaPanel::ExtraMetaPanel( QWidget *parent, ...@@ -338,7 +338,7 @@ ExtraMetaPanel::ExtraMetaPanel( QWidget *parent,
extraMetaTree->setAlternatingRowColors( true ); extraMetaTree->setAlternatingRowColors( true );
extraMetaTree->setColumnCount( 2 ); extraMetaTree->setColumnCount( 2 );
extraMetaTree->resizeColumnToContents( 0 ); extraMetaTree->resizeColumnToContents( 0 );
extraMetaTree->header()->hide(); extraMetaTree->setHeaderHidden( true );
layout->addWidget( extraMetaTree, 1, 0 ); layout->addWidget( extraMetaTree, 1, 0 );
} }
...@@ -485,7 +485,7 @@ InputStatsPanel::InputStatsPanel( QWidget *parent, ...@@ -485,7 +485,7 @@ InputStatsPanel::InputStatsPanel( QWidget *parent,
StatsTree = new QTreeWidget(this); StatsTree = new QTreeWidget(this);
StatsTree->setColumnCount( 3 ); StatsTree->setColumnCount( 3 );
StatsTree->header()->hide(); StatsTree->setHeaderHidden( true );
#define CREATE_TREE_ITEM( itemName, itemText, itemValue, unit ) { \ #define CREATE_TREE_ITEM( itemName, itemText, itemValue, unit ) { \
itemName = \ itemName = \
......
...@@ -887,7 +887,6 @@ void SPrefsPanel::changeStyle( QString s_style ) ...@@ -887,7 +887,6 @@ void SPrefsPanel::changeStyle( QString s_style )
#ifdef WIN32 #ifdef WIN32
#include <QDialogButtonBox> #include <QDialogButtonBox>
#include <QHeaderView>
#include "util/registry.hpp" #include "util/registry.hpp"
#include <string> #include <string>
......
...@@ -50,7 +50,6 @@ ...@@ -50,7 +50,6 @@
#include <QDateTimeEdit> #include <QDateTimeEdit>
#include <QDateTime> #include <QDateTime>
#include <QSpinBox> #include <QSpinBox>
#include <QHeaderView>
#include <QScrollArea> #include <QScrollArea>
#include <QFileDialog> #include <QFileDialog>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment