mirror of
https://github.com/YACReader/yacreader
synced 2025-07-19 13:34:44 -04:00
Fixed YACReader compilation under Qt5 (YACReader-YACReaderLibrary communication is broken at runtime)
This commit is contained in:
@ -31,7 +31,7 @@ YACReaderTableView::YACReaderTableView(QWidget *parent) :
|
||||
setContextMenuPolicy(Qt::ActionsContextMenu);
|
||||
|
||||
setShowGrid(false);
|
||||
#if QT_VERSION >= 0x050100
|
||||
#if QT_VERSION >= 0x050000
|
||||
verticalHeader()->setSectionResizeMode(QHeaderView::Fixed);
|
||||
#else
|
||||
verticalHeader()->setResizeMode(QHeaderView::Fixed);
|
||||
@ -39,14 +39,14 @@ YACReaderTableView::YACReaderTableView(QWidget *parent) :
|
||||
|
||||
//comicView->horizontalHeader()->setResizeMode(QHeaderView::ResizeToContents);
|
||||
horizontalHeader()->setStretchLastSection(true);
|
||||
#if QT_VERSION >= 0x050100
|
||||
#if QT_VERSION >= 0x050000
|
||||
horizontalHeader()->setSectionsClickable(false);
|
||||
#else
|
||||
horizontalHeader()->setClickable(false);
|
||||
#endif
|
||||
//comicView->verticalHeader()->setResizeMode(QHeaderView::ResizeToContents);
|
||||
verticalHeader()->setDefaultSectionSize(24);
|
||||
#if QT_VERSION >= 0x050100
|
||||
#if QT_VERSION >= 0x050000
|
||||
verticalHeader()->setSectionsClickable(false); //TODO comportamiento an<61>malo
|
||||
#else
|
||||
verticalHeader()->setClickable(false); //TODO comportamiento an<61>malo
|
||||
|
Reference in New Issue
Block a user