Mercurial > minori
comparison src/gui/widgets/sidebar.cpp @ 75:d3e9310598b1
*: refactor some stuff
text: "TextParagraph"s are now called sections, because that's the
actual word for it :P
text: new classes: Line and OneLineSection, solves many problems with
paragraphs that are only one line long (ex. going out of bounds)
http: reworked http stuff to allow threaded get requests, also moved it
to its own file to (hopefully) remove clutter
eventually I'll make a threaded post request method and use that in
the "basic" function
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 04 Oct 2023 01:42:30 -0400 |
parents | 5ccb99bfa605 |
children | 6f7385bd334c |
comparison
equal
deleted
inserted
replaced
74:5ccb99bfa605 | 75:d3e9310598b1 |
---|---|
1 #include "gui/widgets/sidebar.h" | 1 #include "gui/widgets/sidebar.h" |
2 #include <QDebug> | |
3 #include <QFrame> | 2 #include <QFrame> |
4 #include <QListWidget> | 3 #include <QListWidget> |
5 #include <QListWidgetItem> | 4 #include <QListWidgetItem> |
6 #include <QMessageBox> | |
7 #include <QMouseEvent> | 5 #include <QMouseEvent> |
8 | 6 |
9 SideBar::SideBar(QWidget* parent) : QListWidget(parent) { | 7 SideBar::SideBar(QWidget* parent) : QListWidget(parent) { |
10 setFrameShape(QFrame::NoFrame); | 8 setFrameShape(QFrame::NoFrame); |
11 setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); | 9 setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); |