##// END OF EJS Templates
Now Works with Python 2 & 3, Qt 4 & 5....
Now Works with Python 2 & 3, Qt 4 & 5. CMake now generates different librariy files depending on the linked Qt/Python versions: PythonQt - Qt 4.x + Python 2.x PythonQt_3 - Qt 4.x + Python 3.x PythonQt5 - Qt 5.x + Python 2.x PythonQt5_3 - Qt 5.x + Python 3.x Fix Qt 4 build.

File last commit:

r205:706df4355685
r208:1476f2d2cf46
Show More
PythonCompleterPopup.cpp
27 lines | 625 B | text/x-c | CppLexer
Orochimarufan
Redo CMake build system, get Qt5 support...
r205 #include "PythonCompleterPopup.h"
#include <QShowEvent>
#include <QHideEvent>
PythonCompleterPopup::PythonCompleterPopup(QWidget *parent) :
QListView(parent)
{
setEditTriggers(QAbstractItemView::NoEditTriggers);
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setSelectionBehavior(QAbstractItemView::SelectRows);
setSelectionMode(QAbstractItemView::SingleSelection);
}
void PythonCompleterPopup::showEvent(QShowEvent *e)
{
if( !e->spontaneous() )
emit aboutToShow();
}
void PythonCompleterPopup::hideEvent(QHideEvent *e)
{
if( !e->spontaneous() )
emit aboutToHide();
}