Skip to content

Commit e272a04

Browse files
committed
#234 | Reduce editGroupBox and analysisBox minimum heights (160→100, 180→120 px)
Tighter spacing and margins in the Statistics Panel grid (setSpacing(3), setContentsMargins(4,4,4,4)) Shrink miniChart height (140→100 px); replace oversized MinimumExpanding spacer with a slim Preferred one Set m_tableWidget->setMinimumHeight(80) so the table dock can't collapse to zero Fix tab-switching logic in slotCacheSelection / slotEditNodeEditSelectionInTable: only switch to Edges tab when the selection is entirely edges (no nodes) Move GraphTableWidget compact button/search QSS from inline setStyleSheet() into default.qss under the GraphTableWidget selector
1 parent 01e3bb7 commit e272a04

2 files changed

Lines changed: 20 additions & 6 deletions

File tree

src/qss/default.qss

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ QComboBox:disabled {
363363
QGroupBox#leftPanel QComboBox {
364364
min-width: 120px;
365365
max-width: 120px;
366+
min-height: 22px;
366367
}
367368

368369
QComboBox::drop-down {
@@ -741,3 +742,22 @@ FilterBarWidget QPushButton#ClearAllButton:hover {
741742
background-color: #c5cae9;
742743
border-color: #5c6bc0;
743744
}
745+
746+
747+
/* -----------------------------------------------------------------------
748+
* Data Table toolbar (#228)
749+
* Compact button and search-box appearance inside GraphTableWidget so the
750+
* toolbar row stays slim while the global QPushButton style (padding 5px 16px,
751+
* min-width 100px) is left untouched everywhere else.
752+
* ----------------------------------------------------------------------- */
753+
754+
GraphTableWidget QPushButton {
755+
padding: 1px 5px;
756+
min-width: 0;
757+
font-size: 11px;
758+
}
759+
760+
GraphTableWidget QLineEdit {
761+
font-size: 11px;
762+
min-height: 0;
763+
}

src/widgets/graphtablewidget.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@ GraphTableWidget::GraphTableWidget(QWidget *parent)
4747
{
4848
setObjectName("GraphTableWidget");
4949

50-
// Compact button/search styling — reduces toolbar height
51-
setStyleSheet(
52-
"QPushButton { padding: 1px 5px; font-size: 11px; }"
53-
"QLineEdit { font-size: 11px; }"
54-
"QComboBox { font-size: 11px; }"
55-
);
5650

5751
// -----------------------------------------------------------------------
5852
// Create models

0 commit comments

Comments
 (0)