made notes about arrow sizing
This commit is contained in:
@@ -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_);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user