mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-09 04:30:43 +00:00
AutoFill background set to false
This commit is contained in:
parent
4f6608780c
commit
9408a75b19
12
daily.cpp
12
daily.cpp
@ -44,18 +44,18 @@ void MyScrollArea::scrollContentsBy(int dx, int dy)
|
|||||||
QScrollArea::scrollContentsBy(dx,dy);
|
QScrollArea::scrollContentsBy(dx,dy);
|
||||||
m_daily->RedrawGraphs();
|
m_daily->RedrawGraphs();
|
||||||
#ifdef Q_WS_MAC
|
#ifdef Q_WS_MAC
|
||||||
/* if (timer->isActive()) timer->stop();
|
if (timer->isActive()) timer->stop();
|
||||||
timer->setSingleShot(true);
|
timer->setSingleShot(true);
|
||||||
timer->setInterval(250);
|
timer->setInterval(200);
|
||||||
connect(timer,SIGNAL(timeout()),SLOT(UpdateGraphs()));
|
connect(timer,SIGNAL(timeout()),SLOT(UpdateGraphs()));
|
||||||
timer->start();
|
timer->start();
|
||||||
m_time.start();*/
|
m_time.start();
|
||||||
//m_daily->RedrawGraphs();
|
//m_daily->RedrawGraphs();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
void MyScrollArea::UpdateGraphs()
|
void MyScrollArea::UpdateGraphs()
|
||||||
{
|
{
|
||||||
if (m_time.elapsed()<250)
|
if (m_time.elapsed()<200)
|
||||||
return;
|
return;
|
||||||
m_time.start();
|
m_time.start();
|
||||||
qDebug() << "Redraw!";
|
qDebug() << "Redraw!";
|
||||||
@ -81,10 +81,10 @@ Daily::Daily(QWidget *parent,QGLWidget * shared, MainWindow *mw)
|
|||||||
ui->graphLayout->setMargin(0);
|
ui->graphLayout->setMargin(0);
|
||||||
ui->graphLayout->setContentsMargins(0,0,0,0);
|
ui->graphLayout->setContentsMargins(0,0,0,0);
|
||||||
scrollArea->setWidgetResizable(true);
|
scrollArea->setWidgetResizable(true);
|
||||||
scrollArea->setAutoFillBackground(true);
|
scrollArea->setAutoFillBackground(false);
|
||||||
|
|
||||||
GraphLayout=new QWidget(scrollArea);
|
GraphLayout=new QWidget(scrollArea);
|
||||||
GraphLayout->setAutoFillBackground(true);
|
GraphLayout->setAutoFillBackground(false);
|
||||||
scrollArea->setWidget(GraphLayout);
|
scrollArea->setWidget(GraphLayout);
|
||||||
|
|
||||||
splitter=new QVBoxLayout(GraphLayout);
|
splitter=new QVBoxLayout(GraphLayout);
|
||||||
|
Loading…
Reference in New Issue
Block a user