comparison src/gui/widgets/sidebar.cpp @ 68:2417121d894e

*: normalize usage of layouts before, I used them two ways, once was by setting the layout later by using setLayout(QWidget), and the other was just using the constructor. I find the constructor to be easier to read, so I chose that one.
author Paper <mrpapersonic@gmail.com>
date Mon, 02 Oct 2023 21:33:25 -0400
parents 3d2decf093bb
children 27a19dd6cba1
comparison
equal deleted inserted replaced
67:442065432549 68:2417121d894e
51 line->setFrameShape(QFrame::HLine); 51 line->setFrameShape(QFrame::HLine);
52 line->setFrameShadow(QFrame::Sunken); 52 line->setFrameShadow(QFrame::Sunken);
53 line->setMouseTracking(true); 53 line->setMouseTracking(true);
54 line->setEnabled(false); 54 line->setEnabled(false);
55 55
56 /*
57 QPalette pal;
58 pal.setColor(QPalette::Window, Qt::transparent);
59 line->setPalette(pal);
60 */
61
62 setItemWidget(item, line); 56 setItemWidget(item, line);
63 item->setFlags(Qt::NoItemFlags); 57 item->setFlags(Qt::NoItemFlags);
58 item->setBackground(QBrush(Qt::transparent));
64 return item; 59 return item;
65 } 60 }
66 61
67 int SideBar::AddSeparatorsToIndex(int index) { 62 int SideBar::AddSeparatorsToIndex(int index) {
68 int i, j; 63 int i, j;