##// END OF EJS Templates
Working snapshot.
Working snapshot.

File last commit:

r0:1aa783210b8e default
r5:483cfe27e044 Working snapshot default
Show More
PythonCompleterPopup.cpp
27 lines | 625 B | text/x-c | CppLexer
/ src / NicePyConsole / PythonCompleterPopup.cpp
Jeandet Alexis
First init of SocExplorer Repository.
r0 #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();
}