Quick status bar cleanup

This commit is contained in:
Mark Watkins 2011-07-30 11:51:52 +10:00
parent ee49d4dedd
commit 1eadb3c19a
4 changed files with 19 additions and 5 deletions

View File

@ -90,6 +90,18 @@ bool gGraphWindow::isEmpty()
}
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) {
if (l) {

View File

@ -134,7 +134,7 @@ public:
bool isDraggingGraph() { return m_dragGraph; }
protected:
void updateSelectionTime(qint64 span);
void resizeEvent(QResizeEvent *);
void initializeGL();
QSplitter *splitter;
list<gGraphWindow *>link_zoom;

View File

@ -57,6 +57,8 @@ Daily::Daily(QWidget *parent,QGLWidget * shared) :
gSplitter=new QSplitter(Qt::Vertical,ui->scrollArea);
gSplitter->setStyleSheet("QSplitter::handle { background-color: 'light grey'; }");
gSplitter->setHandleWidth(3);
gSplitter->setOpaqueResize(false);
ui->scrollArea->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
ui->scrollArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
ui->scrollArea->setWidget(gSplitter);

View File

@ -74,9 +74,9 @@ MainWindow::MainWindow(QWidget *parent) :
qstatus=new QLabel("",this);
qprogress->hide();
ui->statusbar->setMinimumWidth(200);
ui->statusbar->addPermanentWidget(qstatus2,0);
ui->statusbar->addPermanentWidget(qstatus,0);
ui->statusbar->addPermanentWidget(qprogress,10);
ui->statusbar->addPermanentWidget(qstatus2,0);
Profiles::Scan();
pref["AppName"]="SleepyHead";
@ -163,7 +163,7 @@ void MainWindow::Startup()
}*/
qprogress->hide();
qstatus->setText(tr("Ready"));
qstatus->setText("");
//qstatusbar->clearMessage();
}
@ -199,7 +199,7 @@ void MainWindow::on_action_Import_Data_triggered()
} */
//qDebug() << "overview->ReloadGraphs();";
}
qstatus->setText(tr("Ready"));
qstatus->setText("");
qprogress->hide();
}
@ -267,7 +267,7 @@ void MainWindow::on_webView_loadFinished(bool arg1)
QTimer::singleShot(0,this,SLOT(Startup()));
first_load=false;
} else {
qstatus->setText(tr("Ready"));
qstatus->setText("");
}
ui->backButton->setEnabled(ui->webView->history()->canGoBack());
ui->forwardButton->setEnabled(ui->webView->history()->canGoForward());