mirror of https://github.com/KLayout/klayout.git
trying to provide a log along with progress
This commit is contained in:
parent
9d349239b5
commit
b97413234a
|
|
@ -26,6 +26,7 @@
|
|||
#include <QFrame>
|
||||
#include <QGridLayout>
|
||||
#include <QLabel>
|
||||
#include <QListView>
|
||||
|
||||
#include <math.h>
|
||||
|
||||
|
|
@ -136,7 +137,7 @@ ProgressBarWidget::resizeEvent (QResizeEvent *)
|
|||
|
||||
ProgressWidget::ProgressWidget (ProgressReporter *pr, QWidget *parent, bool full_width)
|
||||
: QFrame (parent),
|
||||
mp_widget (0), mp_pr (pr)
|
||||
mp_widget (0), mp_pr (pr), m_log_file (6, true)
|
||||
{
|
||||
QVBoxLayout *top_layout = new QVBoxLayout (this);
|
||||
top_layout->addStretch (1);
|
||||
|
|
@ -144,6 +145,10 @@ ProgressWidget::ProgressWidget (ProgressReporter *pr, QWidget *parent, bool full
|
|||
QFrame *bar_frame = new QFrame (this);
|
||||
top_layout->addWidget (bar_frame);
|
||||
|
||||
QListView *log_list = new QListView (this);
|
||||
log_list->setModel (&m_log_file);
|
||||
top_layout->addWidget (log_list);
|
||||
|
||||
top_layout->addStretch (1);
|
||||
|
||||
// this does not allow the label to control the overall size, so a long string does not hurt:
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@
|
|||
#include <QHBoxLayout>
|
||||
|
||||
#include "layProgress.h"
|
||||
#include "layLogViewerDialog.h"
|
||||
|
||||
class QToolButton;
|
||||
class QLabel;
|
||||
|
|
@ -73,6 +74,7 @@ private:
|
|||
QGridLayout *mp_layout;
|
||||
QToolButton *mp_cancel_button;
|
||||
ProgressReporter *mp_pr;
|
||||
lay::LogFile m_log_file;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue