Updates
This commit is contained in:
parent
21246a0063
commit
0e75c08314
|
@ -49,18 +49,25 @@ MainWindow::MainWindow( QWidget *parent )
|
|||
this->font_size );
|
||||
|
||||
// parent font for every tab
|
||||
this->ui->CrapTabs->setFont( this->FONTS["main_big"] );
|
||||
this->ui->CrapTabs->setFont( this->FONTS.at("main_big") );
|
||||
|
||||
// TreeView for the LogFiles
|
||||
this->ui->checkBox_LogFiles_CheckAll->setFont( this->FONTS["main_small"] );
|
||||
this->ui->listLogFiles->setFont( this->FONTS["main"] );
|
||||
this->ui->checkBox_LogFiles_CheckAll->setFont( this->FONTS.at("main_small") );
|
||||
this->ui->listLogFiles->setFont( this->FONTS.at("main") );
|
||||
// TextBrowser for the LogFiles
|
||||
this->TB.setColorScheme( 1, this->TB_COLOR_SCHEMES[1] );
|
||||
this->TB.setColorScheme( 1, this->TB_COLOR_SCHEMES.at(1) );
|
||||
this->TB.setFontFamily( this->main_font_family );
|
||||
this->TB.setFont( QFont(
|
||||
this->main_font_family,
|
||||
this->font_size ));
|
||||
this->TB.setFont( this->FONTS.at("main") );
|
||||
this->ui->textLogFiles->setFont( this->TB.getFont() );
|
||||
// MakeStats labels
|
||||
this->ui->label_MakeStats_Size->setFont( this->FONTS.at("main") );
|
||||
this->ui->label_MakeStats_Lines->setFont( this->FONTS.at("main") );
|
||||
this->ui->label_MakeStats_Time->setFont( this->FONTS.at("main") );
|
||||
this->ui->label_MakeStats_Speed->setFont( this->FONTS.at("main") );
|
||||
// MakeStats charts
|
||||
this->ui->chart_MakeStats_Access->setFont( this->FONTS.at("main") );
|
||||
this->ui->chart_MakeStats_Error->setFont( this->FONTS.at("main") );
|
||||
this->ui->chart_MakeStats_Traffic->setFont( this->FONTS.at("main") );
|
||||
|
||||
|
||||
////////////////////////
|
||||
|
@ -621,7 +628,9 @@ void MainWindow::craplogFinished()
|
|||
{
|
||||
// update the perf data one last time, just in case
|
||||
this->update_MakeStats_labels();
|
||||
this->craplog.makeGraphs( this->FONTS.at("main_small"), *this->ui->chart_MakeStats_Access, *this->ui->chart_MakeStats_Error, *this->ui->chart_MakeStats_Traffic );
|
||||
// clean up temp vars
|
||||
this->craplog.clearDataCollection();
|
||||
this->craplog.logOps.resetPerfData();
|
||||
|
||||
// refresh the logs list
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include "qmessagebox.h"
|
||||
|
||||
#include "qtreewidget.h"
|
||||
#include "qchartview.h"
|
||||
|
||||
#include <thread>
|
||||
|
||||
|
@ -77,7 +78,7 @@ private:
|
|||
//// GENERAL USE ////
|
||||
/////////////////////
|
||||
// get a printable size, from Bytes to the best fit
|
||||
QString printableSize(const int bytes ),
|
||||
QString printableSize( const int bytes ),
|
||||
printableSpeed( const int bytes, const int secs ),
|
||||
printableTime( const int seconds );
|
||||
|
||||
|
@ -116,7 +117,9 @@ private:
|
|||
//////////////////////////
|
||||
//// LOGS PERFORMANCE ////
|
||||
void update_MakeStats_labels(),
|
||||
reset_MakeStats_labels();
|
||||
update_MakeStats_graphs(),
|
||||
reset_MakeStats_labels(),
|
||||
reset_MakeStats_graphs();
|
||||
|
||||
};
|
||||
#endif // MAINWINDOW_H
|
||||
|
|
|
@ -885,7 +885,7 @@ hr { height: 1px; border-width: 0; }
|
|||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QGraphicsView" name="graphicsView_3">
|
||||
<widget class="QChartView" name="chart_MakeStats_Error">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
|
@ -901,7 +901,7 @@ hr { height: 1px; border-width: 0; }
|
|||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QGraphicsView" name="graphicsView_2">
|
||||
<widget class="QChartView" name="chart_MakeStats_Access">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
|
@ -917,7 +917,7 @@ hr { height: 1px; border-width: 0; }
|
|||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0" colspan="2">
|
||||
<widget class="QGraphicsView" name="graphicsView">
|
||||
<widget class="QChartView" name="chart_MakeStats_Traffic">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
|
@ -1001,6 +1001,13 @@ hr { height: 1px; border-width: 0; }
|
|||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>QChartView</class>
|
||||
<extends>QGraphicsView</extends>
|
||||
<header>QtCharts</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources>
|
||||
<include location="resources/resources.qrc"/>
|
||||
</resources>
|
||||
|
|
Loading…
Reference in New Issue