Gui: [skip ci] fix several warnings:
* -Wunused-variable * -Wunused-lambda-capture
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user