old Qt fix
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include <QPlainTextEdit>
|
||||
#include <QTreeWidget>
|
||||
#include <QScrollBar>
|
||||
#include <QUrl>
|
||||
#include "iconedlabel.h"
|
||||
#include "qad_widgets_export.h"
|
||||
|
||||
|
||||
@@ -8,7 +8,9 @@ QCodeEditCompleter::QCodeEditCompleter(QWidget * parent): QTreeWidget(parent) {
|
||||
setColumnCount(2);
|
||||
setRootIsDecorated(false);
|
||||
setHeaderHidden(true);
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 2, 0)
|
||||
setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents);
|
||||
#endif
|
||||
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
|
||||
header()->setDefaultAlignment(Qt::AlignCenter);
|
||||
header()->
|
||||
|
||||
Reference in New Issue
Block a user