comparison src/gui/widgets/sidebar.cpp @ 77:6f7385bd334c

*: update formatted all source files, no more subclassing QThread... many other changes :)
author Paper <mrpapersonic@gmail.com>
date Fri, 06 Oct 2023 06:18:53 -0400
parents d3e9310598b1
children
comparison
equal deleted inserted replaced
76:3364fadc8a36 77:6f7385bd334c
13 setMouseTracking(true); 13 setMouseTracking(true);
14 /* FIXME: is there an easy way to do this with palettes? */ 14 /* FIXME: is there an easy way to do this with palettes? */
15 setStyleSheet("QListWidget::item:disabled { background: transparent }"); 15 setStyleSheet("QListWidget::item:disabled { background: transparent }");
16 16
17 SetBackgroundColor(Qt::transparent); 17 SetBackgroundColor(Qt::transparent);
18
19 QFont font;
20 font.setPixelSize(12);
21 setFont(font);
22 18
23 connect(this, &QListWidget::currentRowChanged, this, 19 connect(this, &QListWidget::currentRowChanged, this,
24 [this](int index) { emit CurrentItemChanged(RemoveSeparatorsFromIndex(index)); }); 20 [this](int index) { emit CurrentItemChanged(RemoveSeparatorsFromIndex(index)); });
25 } 21 }
26 22