##// END OF EJS Templates
A lot of refactoring:...
A lot of refactoring: QLopPlot now handle more than one plot. File browser uses QFileSystemModel and QItemView Wrapped QCustomPlot.

File last commit:

r5:92e4585e8fab default
r6:665de41c4c74 default
Show More
PythonCompleterPopup.cpp
27 lines | 625 B | text/x-c | CppLexer
#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();
}