Changeset View
Changeset View
Standalone View
Standalone View
krusader/Panel/PanelView/krinterdetailedview.cpp
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | |||||
47 | #include "../GUI/krstyleproxy.h" | 47 | #include "../GUI/krstyleproxy.h" | ||
48 | 48 | | |||
49 | 49 | | |||
50 | KrInterDetailedView::KrInterDetailedView(QWidget *parent, KrViewInstance &instance, KConfig *cfg): | 50 | KrInterDetailedView::KrInterDetailedView(QWidget *parent, KrViewInstance &instance, KConfig *cfg): | ||
51 | QTreeView(parent), | 51 | QTreeView(parent), | ||
52 | KrInterView(instance, cfg, this), | 52 | KrInterView(instance, cfg, this), | ||
53 | _autoResizeColumns(true) | 53 | _autoResizeColumns(true) | ||
54 | { | 54 | { | ||
55 | connect(_mouseHandler, SIGNAL(renameCurrentItem()), this, SLOT(renameCurrentItem())); | 55 | connect(_mouseHandler, &KrMouseHandler::renameCurrentItem, this, &KrInterDetailedView::renameCurrentItem); | ||
56 | setWidget(this); | 56 | setWidget(this); | ||
57 | 57 | | |||
58 | KConfigGroup grpSvr(_config, "Look&Feel"); | 58 | KConfigGroup grpSvr(_config, "Look&Feel"); | ||
59 | _viewFont = grpSvr.readEntry("Filelist Font", _FilelistFont); | 59 | _viewFont = grpSvr.readEntry("Filelist Font", _FilelistFont); | ||
60 | 60 | | |||
61 | setModel(_model); | 61 | setModel(_model); | ||
62 | setRootIsDecorated(false); | 62 | setRootIsDecorated(false); | ||
63 | setItemsExpandable(false); | 63 | setItemsExpandable(false); | ||
Show All 13 Lines | |||||
77 | 77 | | |||
78 | KrStyleProxy *style = new KrStyleProxy(); | 78 | KrStyleProxy *style = new KrStyleProxy(); | ||
79 | style->setParent(this); | 79 | style->setParent(this); | ||
80 | setStyle(style); | 80 | setStyle(style); | ||
81 | viewport()->setStyle(style); // for custom tooltip delay | 81 | viewport()->setStyle(style); // for custom tooltip delay | ||
82 | 82 | | |||
83 | setItemDelegate(new KrViewItemDelegate(this)); | 83 | setItemDelegate(new KrViewItemDelegate(this)); | ||
84 | 84 | | |||
85 | connect(header(), SIGNAL(sectionResized(int,int,int)), this, SLOT(sectionResized(int,int,int))); | 85 | connect(header(), &QHeaderView::sectionResized, this, &KrInterDetailedView::sectionResized); | ||
86 | connect(header(), SIGNAL(sectionMoved(int,int,int)), this, SLOT(sectionMoved(int,int,int))); | 86 | connect(header(), &QHeaderView::sectionMoved, this, &KrInterDetailedView::sectionMoved); | ||
87 | } | 87 | } | ||
88 | 88 | | |||
89 | KrInterDetailedView::~KrInterDetailedView() | 89 | KrInterDetailedView::~KrInterDetailedView() | ||
90 | { | 90 | { | ||
91 | delete _properties; | 91 | delete _properties; | ||
92 | _properties = 0; | 92 | _properties = 0; | ||
93 | delete _operator; | 93 | delete _operator; | ||
94 | _operator = 0; | 94 | _operator = 0; | ||
▲ Show 20 Lines • Show All 356 Lines • Show Last 20 Lines |