[Fix] Fixed scrollbar in TableView.

This commit is contained in:
Rtch90 2014-12-16 12:39:35 +00:00
parent 5f682408da
commit 9d9dd9ebf4
4 changed files with 4 additions and 3 deletions

View File

@ -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 += \

View File

@ -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();

View File

@ -14,6 +14,7 @@
#define CHILD_AREA_HEIGHT 180
FileWidget::FileWidget(QWidget* parent) {
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
setAcceptDrops(true);
mainLayout = new QHBoxLayout();

View File

@ -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());