mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
Quick status bar cleanup
This commit is contained in:
parent
ee49d4dedd
commit
1eadb3c19a
@ -90,6 +90,18 @@ bool gGraphWindow::isEmpty()
|
|||||||
}
|
}
|
||||||
return empty;
|
return empty;
|
||||||
}
|
}
|
||||||
|
void gGraphWindow::resizeEvent(QResizeEvent *e)
|
||||||
|
{
|
||||||
|
this->setUpdatesEnabled(false);
|
||||||
|
this->blockSignals(true);
|
||||||
|
QGLWidget::resizeEvent(e);
|
||||||
|
this->blockSignals(false);
|
||||||
|
this->setUpdatesEnabled(true);
|
||||||
|
//this->resizeGL(e->size().width(),e->size().height());
|
||||||
|
//this->paintGL();
|
||||||
|
//e->accept();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void gGraphWindow::AddLayer(gLayer *l) {
|
void gGraphWindow::AddLayer(gLayer *l) {
|
||||||
if (l) {
|
if (l) {
|
||||||
|
@ -134,7 +134,7 @@ public:
|
|||||||
bool isDraggingGraph() { return m_dragGraph; }
|
bool isDraggingGraph() { return m_dragGraph; }
|
||||||
protected:
|
protected:
|
||||||
void updateSelectionTime(qint64 span);
|
void updateSelectionTime(qint64 span);
|
||||||
|
void resizeEvent(QResizeEvent *);
|
||||||
void initializeGL();
|
void initializeGL();
|
||||||
QSplitter *splitter;
|
QSplitter *splitter;
|
||||||
list<gGraphWindow *>link_zoom;
|
list<gGraphWindow *>link_zoom;
|
||||||
|
@ -57,6 +57,8 @@ Daily::Daily(QWidget *parent,QGLWidget * shared) :
|
|||||||
gSplitter=new QSplitter(Qt::Vertical,ui->scrollArea);
|
gSplitter=new QSplitter(Qt::Vertical,ui->scrollArea);
|
||||||
gSplitter->setStyleSheet("QSplitter::handle { background-color: 'light grey'; }");
|
gSplitter->setStyleSheet("QSplitter::handle { background-color: 'light grey'; }");
|
||||||
gSplitter->setHandleWidth(3);
|
gSplitter->setHandleWidth(3);
|
||||||
|
gSplitter->setOpaqueResize(false);
|
||||||
|
|
||||||
ui->scrollArea->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
|
ui->scrollArea->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
|
||||||
ui->scrollArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
ui->scrollArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||||
ui->scrollArea->setWidget(gSplitter);
|
ui->scrollArea->setWidget(gSplitter);
|
||||||
|
@ -74,9 +74,9 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
qstatus=new QLabel("",this);
|
qstatus=new QLabel("",this);
|
||||||
qprogress->hide();
|
qprogress->hide();
|
||||||
ui->statusbar->setMinimumWidth(200);
|
ui->statusbar->setMinimumWidth(200);
|
||||||
ui->statusbar->addPermanentWidget(qstatus2,0);
|
|
||||||
ui->statusbar->addPermanentWidget(qstatus,0);
|
ui->statusbar->addPermanentWidget(qstatus,0);
|
||||||
ui->statusbar->addPermanentWidget(qprogress,10);
|
ui->statusbar->addPermanentWidget(qprogress,10);
|
||||||
|
ui->statusbar->addPermanentWidget(qstatus2,0);
|
||||||
Profiles::Scan();
|
Profiles::Scan();
|
||||||
|
|
||||||
pref["AppName"]="SleepyHead";
|
pref["AppName"]="SleepyHead";
|
||||||
@ -163,7 +163,7 @@ void MainWindow::Startup()
|
|||||||
}*/
|
}*/
|
||||||
|
|
||||||
qprogress->hide();
|
qprogress->hide();
|
||||||
qstatus->setText(tr("Ready"));
|
qstatus->setText("");
|
||||||
//qstatusbar->clearMessage();
|
//qstatusbar->clearMessage();
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -199,7 +199,7 @@ void MainWindow::on_action_Import_Data_triggered()
|
|||||||
} */
|
} */
|
||||||
//qDebug() << "overview->ReloadGraphs();";
|
//qDebug() << "overview->ReloadGraphs();";
|
||||||
}
|
}
|
||||||
qstatus->setText(tr("Ready"));
|
qstatus->setText("");
|
||||||
qprogress->hide();
|
qprogress->hide();
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -267,7 +267,7 @@ void MainWindow::on_webView_loadFinished(bool arg1)
|
|||||||
QTimer::singleShot(0,this,SLOT(Startup()));
|
QTimer::singleShot(0,this,SLOT(Startup()));
|
||||||
first_load=false;
|
first_load=false;
|
||||||
} else {
|
} else {
|
||||||
qstatus->setText(tr("Ready"));
|
qstatus->setText("");
|
||||||
}
|
}
|
||||||
ui->backButton->setEnabled(ui->webView->history()->canGoBack());
|
ui->backButton->setEnabled(ui->webView->history()->canGoBack());
|
||||||
ui->forwardButton->setEnabled(ui->webView->history()->canGoForward());
|
ui->forwardButton->setEnabled(ui->webView->history()->canGoForward());
|
||||||
|
Loading…
Reference in New Issue
Block a user