Gui: [skip ci] fix several warnings:

* -Wunused-variable
* -Wunused-lambda-capture
This commit is contained in:
wmayer
2022-12-05 12:22:22 +01:00
parent ab41f7d091
commit 633fb4488a
2 changed files with 2 additions and 3 deletions

View File

@@ -88,7 +88,6 @@ static TreeWidget* _LastSelectedTreeWidget;
const int TreeWidget::DocumentType = 1000;
const int TreeWidget::ObjectType = 1001;
static bool _DragEventFilter;
static bool _DraggingActive;
void TreeParams::onItemBackgroundChanged()
{
@@ -479,7 +478,7 @@ TreeWidget::TreeWidget(const char* name, QWidget* parent)
setupResizableColumn(this);
this->header()->setStretchLastSection(false);
QObject::connect(this->header(), &QHeaderView::sectionResized, [this](int idx, int, int newSize) {
QObject::connect(this->header(), &QHeaderView::sectionResized, [](int idx, int, int newSize) {
if (idx)
TreeParams::setColumnSize2(newSize);
else

View File

@@ -1404,7 +1404,7 @@ void TreeParams::onResizableColumnChanged() {
}
void TreeParams::onIconSizeChanged() {
auto tree = TreeWidget::instance();
// auto tree = TreeWidget::instance();
// Commented out temporarily while merging PR #7888
//if (tree)
//tree->setIconHeight(TreeParams::getIconSize());