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