[Fix] Fixed scrollbar in TableView.
This commit is contained in:
parent
5f682408da
commit
9d9dd9ebf4
@ -3,7 +3,7 @@ QT += widgets
|
|||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
TARGET = hpdf
|
TARGET = hpdf
|
||||||
DEPENDPATH += .
|
DEPENDPATH += .
|
||||||
INCLUDEPATH += /usr/include/poppler/qt5
|
INCLUDEPATH += /usr/include/poppler/qt5/
|
||||||
LIBS += -L/usr/lib -lpoppler-qt5
|
LIBS += -L/usr/lib -lpoppler-qt5
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#define COLLAPSE_BUTTON_HEIGHT 40
|
#define COLLAPSE_BUTTON_HEIGHT 40
|
||||||
|
|
||||||
FileFrameWidget::FileFrameWidget(QWidget* parent) {
|
FileFrameWidget::FileFrameWidget(QWidget* parent) {
|
||||||
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
|
||||||
|
|
||||||
topLayout = new QGridLayout();
|
topLayout = new QGridLayout();
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
#define CHILD_AREA_HEIGHT 180
|
#define CHILD_AREA_HEIGHT 180
|
||||||
|
|
||||||
FileWidget::FileWidget(QWidget* parent) {
|
FileWidget::FileWidget(QWidget* parent) {
|
||||||
|
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
|
||||||
setAcceptDrops(true);
|
setAcceptDrops(true);
|
||||||
mainLayout = new QHBoxLayout();
|
mainLayout = new QHBoxLayout();
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ TableView::TableView(QWidget* parent) : QWidget(parent) {
|
|||||||
|
|
||||||
void TableView::paintEvent(QPaintEvent* event) {
|
void TableView::paintEvent(QPaintEvent* event) {
|
||||||
frame->adjustSize();
|
frame->adjustSize();
|
||||||
int newWidth = width();
|
int newWidth = width() - 50;
|
||||||
|
|
||||||
for(int i = 0; i < 10; i++) {
|
for(int i = 0; i < 10; i++) {
|
||||||
test[i]->resize(newWidth, test[i]->height());
|
test[i]->resize(newWidth, test[i]->height());
|
||||||
|
Loading…
Reference in New Issue
Block a user