##// END OF EJS Templates
Fixed stupid mistake.
Fixed stupid mistake.

File last commit:

r0:1aa783210b8e default
r99:bb6776ca85e6 default
Show More
PythonCompleterPopup.cpp
27 lines | 625 B | text/x-c | CppLexer
/ src / NicePyConsole / PythonCompleterPopup.cpp
#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();
}