Changeset View
Changeset View
Standalone View
Standalone View
krusader/Panel/sidebar.cpp
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | 50 | { | |||
---|---|---|---|---|---|
57 | dataLine->setFont(lg.readEntry("Filelist Font", _FilelistFont)); | 57 | dataLine->setFont(lg.readEntry("Filelist Font", _FilelistFont)); | ||
58 | // --- hack: setup colors to be the same as an inactive panel | 58 | // --- hack: setup colors to be the same as an inactive panel | ||
59 | dataLine->setBackgroundRole(QPalette::Window); | 59 | dataLine->setBackgroundRole(QPalette::Window); | ||
60 | int sheight = QFontMetrics(dataLine->font()).height() + 4; | 60 | int sheight = QFontMetrics(dataLine->font()).height() + 4; | ||
61 | dataLine->setMaximumHeight(sheight); | 61 | dataLine->setMaximumHeight(sheight); | ||
62 | 62 | | |||
63 | btns = new QButtonGroup(this); | 63 | btns = new QButtonGroup(this); | ||
64 | btns->setExclusive(true); | 64 | btns->setExclusive(true); | ||
65 | connect(btns, QOverload<int>::of(&QButtonGroup::buttonClicked), this, &Sidebar::tabSelected); | 65 | connect(btns, static_cast<void (QButtonGroup::*)(int)>(&QButtonGroup::buttonClicked), | ||
66 | this, &Sidebar::tabSelected); | ||||
66 | 67 | | |||
67 | treeBtn = new QToolButton(this); | 68 | treeBtn = new QToolButton(this); | ||
68 | treeBtn->setToolTip(i18n("Tree Panel: a tree view of the local file system")); | 69 | treeBtn->setToolTip(i18n("Tree Panel: a tree view of the local file system")); | ||
69 | treeBtn->setIcon(Icon("view-list-tree")); | 70 | treeBtn->setIcon(Icon("view-list-tree")); | ||
70 | treeBtn->setFixedSize(20, 20); | 71 | treeBtn->setFixedSize(20, 20); | ||
71 | treeBtn->setCheckable(true); | 72 | treeBtn->setCheckable(true); | ||
72 | btns->addButton(treeBtn, Tree); | 73 | btns->addButton(treeBtn, Tree); | ||
73 | 74 | | |||
▲ Show 20 Lines • Show All 216 Lines • Show Last 20 Lines |