Changeset View
Changeset View
Standalone View
Standalone View
src/KGantt/kganttview.cpp
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | |||||
43 | using namespace KGantt; | 43 | using namespace KGantt; | ||
44 | 44 | | |||
45 | namespace { | 45 | namespace { | ||
46 | class HeaderView : public QHeaderView { | 46 | class HeaderView : public QHeaderView { | ||
47 | public: | 47 | public: | ||
48 | explicit HeaderView( QWidget* parent=nullptr ) : QHeaderView( Qt::Horizontal, parent ) { | 48 | explicit HeaderView( QWidget* parent=nullptr ) : QHeaderView( Qt::Horizontal, parent ) { | ||
49 | } | 49 | } | ||
50 | 50 | | |||
51 | QSize sizeHint() const Q_DECL_OVERRIDE { QSize s = QHeaderView::sizeHint(); s.rheight() *= 2; return s; } | 51 | QSize sizeHint() const override { QSize s = QHeaderView::sizeHint(); s.rheight() *= 2; return s; } | ||
52 | }; | 52 | }; | ||
53 | } | 53 | } | ||
54 | 54 | | |||
55 | KGanttTreeView::KGanttTreeView( QAbstractProxyModel* proxy, QWidget* parent ) | 55 | KGanttTreeView::KGanttTreeView( QAbstractProxyModel* proxy, QWidget* parent ) | ||
56 | : QTreeView( parent ), | 56 | : QTreeView( parent ), | ||
57 | m_controller( this, proxy ) | 57 | m_controller( this, proxy ) | ||
58 | { | 58 | { | ||
59 | setHeader( new HeaderView ); | 59 | setHeader( new HeaderView ); | ||
▲ Show 20 Lines • Show All 606 Lines • Show Last 20 Lines |