Skip to content

Commit

Permalink
BUG: Fix Volume item selection area
Browse files Browse the repository at this point in the history
  • Loading branch information
NicerNewerCar committed Feb 20, 2024
1 parent 22b1a41 commit 23d8884
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions autoscoper/src/ui/VolumeListWidgetItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,13 @@ VolumeListWidgetItem::VolumeListWidgetItem(QListWidget* listWidget,const QString
void VolumeListWidgetItem::setup(QListWidget* listWidget) {
// add a layout
QFrame* pFrame = new QFrame(listWidget);
pFrame->setMinimumHeight(32);
QGridLayout* pLayout = new QGridLayout(pFrame);
pLayout->addWidget(new QLabel(name_), 0, 1);
visibilityCheckBox_ = new QCheckBox();
visibilityCheckBox_->setChecked(true);
pLayout->addWidget(visibilityCheckBox_, 0, 0);
pLayout->addItem(new QSpacerItem(1, 1, QSizePolicy::Expanding, QSizePolicy::Minimum), 0, 2);
pLayout->setMargin(5);
pLayout->setMargin(1);
pFrame->setLayout(pLayout);
listWidget->setItemWidget(this, pFrame);
QObject::connect(visibilityCheckBox_, SIGNAL(toggled(bool)), this, SLOT(on_visiblilityCheckBox__toggled(bool)));
Expand Down

0 comments on commit 23d8884

Please sign in to comment.