mirror of
https://github.com/YACReader/yacreader
synced 2025-09-07 13:55:01 -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
|
||||
|
@ -2,8 +2,7 @@
|
||||
#define YACREADER_TOOL_BAR_STRETCH_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class QHBoxLayout;
|
||||
#include <QHBoxLayout>
|
||||
|
||||
class QToolBarStretch : public QWidget
|
||||
{
|
||||
@ -16,4 +15,4 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
#endif // YACREADER_TOOL_BAR_STRETCH_H
|
||||
#endif // YACREADER_TOOL_BAR_STRETCH_H
|
||||
|
Reference in New Issue
Block a user