##// END OF EJS Templates
Added Python Console and some Wrappers....
Added Python Console and some Wrappers. More code cleaning, WIP.

File last commit:

r4:b41a5ed0a855 default
r5:92e4585e8fab default
Show More
downloadhistory.cpp
34 lines | 702 B | text/x-c | CppLexer
#include "downloadhistory.h"
#include "ui_downloadhistory.h"
DownLoadHistory::DownLoadHistory(QWidget *parent) :
QWidget(parent),
ui(new Ui::DownLoadHistory)
{
ui->setupUi(this);
vblayout = new QVBoxLayout(this->ui->scrollAreaWidgetContents);
vblayout->addStretch(1);
}
DownLoadHistory::~DownLoadHistory()
{
delete ui;
}
void DownLoadHistory::addElement(DownloadHistoryElement *element)
{
if(element)
this->vblayout->insertWidget(0,element);
}
void DownLoadHistory::changeEvent(QEvent *e)
{
QWidget::changeEvent(e);
switch (e->type()) {
case QEvent::LanguageChange:
ui->retranslateUi(this);
break;
default:
break;
}
}