made notes about arrow sizing

This commit is contained in:
itsmattkc
2019-07-19 00:40:26 -07:00
parent 136bb52fef
commit 6c52c45aea
2 changed files with 6 additions and 0 deletions
@@ -43,6 +43,10 @@ NodeParamViewItem::NodeParamViewItem(QWidget *parent) :
title_bar_collapse_btn_->setStyleSheet("border: none; background: none;");
title_bar_collapse_btn_->setCheckable(true);
title_bar_collapse_btn_->setChecked(true);
// FIXME: Revise icon sizing algorithm (share with NodeViewItem)
title_bar_collapse_btn_->setIconSize(QSize(fontMetrics().height()/2, fontMetrics().height()/2));
connect(title_bar_collapse_btn_, SIGNAL(clicked(bool)), this, SLOT(SetExpanded(bool)));
title_bar_layout->addWidget(title_bar_collapse_btn_);
+2
View File
@@ -66,6 +66,8 @@ NodeViewItem::NodeViewItem(QGraphicsItem *parent) :
// Set text and icon padding
node_text_padding_ = font_metrics.height() / 6;
// FIXME: Revise icon sizing algorithm (share with NodeParamViewItem)
node_icon_padding_ = node_text_padding_ * 3;
// Use the current default font height to size this widget