Improvements

This commit is contained in:
Valentino Orlandi 2022-07-20 23:02:26 +02:00
parent e38a520899
commit a21dac101e
Signed by: elB4RTO
GPG Key ID: 1719E976DB2D4E71
2 changed files with 61 additions and 47 deletions

View File

@ -971,11 +971,11 @@ hr { height: 1px; border-width: 0; }
<item row="0" column="0">
<widget class="QTabWidget" name="StatsTabs">
<property name="currentIndex">
<number>1</number>
<number>3</number>
</property>
<property name="iconSize">
<size>
<width>148</width>
<width>160</width>
<height>32</height>
</size>
</property>
@ -2177,10 +2177,16 @@ hr { height: 1px; border-width: 0; }
<widget class="QPushButton" name="button_StatsDay_Draw">
<property name="minimumSize">
<size>
<width>88</width>
<width>100</width>
<height>88</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>100</width>
<height>16777215</height>
</size>
</property>
<property name="font">
<font>
<pointsize>23</pointsize>
@ -2615,20 +2621,44 @@ hr { height: 1px; border-width: 0; }
</size>
</property>
<layout class="QGridLayout" name="gridLayout_14">
<item row="0" column="0">
<spacer name="verticalSpacer_4">
<item row="2" column="0">
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>0</height>
<height>4</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="1" rowspan="3">
<item row="1" column="0">
<widget class="QComboBox" name="box_StatsCount_WebServercomboBox_StatsSpeed_WebServer">
<property name="minimumSize">
<size>
<width>100</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>32</height>
</size>
</property>
<property name="font">
<font>
<pointsize>13</pointsize>
</font>
</property>
<property name="toolTip">
<string>Select a Web Server</string>
</property>
</widget>
</item>
<item row="0" column="2" rowspan="3">
<widget class="QFrame" name="frame_9">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
@ -2850,48 +2880,11 @@ hr { height: 1px; border-width: 0; }
</layout>
</widget>
</item>
<item row="1" column="0">
<widget class="QComboBox" name="box_StatsCount_WebServercomboBox_StatsSpeed_WebServer">
<property name="minimumSize">
<size>
<width>100</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>32</height>
</size>
</property>
<property name="font">
<font>
<pointsize>13</pointsize>
</font>
</property>
<property name="toolTip">
<string>Select a Web Server</string>
</property>
</widget>
</item>
<item row="2" column="0">
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>4</height>
</size>
</property>
</spacer>
</item>
<item row="3" column="0">
<widget class="QPushButton" name="button_StatsRelat_Draw">
<property name="minimumSize">
<size>
<width>88</width>
<width>100</width>
<height>88</height>
</size>
</property>
@ -2914,7 +2907,20 @@ hr { height: 1px; border-width: 0; }
</property>
</widget>
</item>
<item row="3" column="1">
<item row="0" column="0">
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
<item row="3" column="2">
<widget class="QFrame" name="frame_11">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
@ -3141,7 +3147,7 @@ hr { height: 1px; border-width: 0; }
<property name="sizeHint" stdset="0">
<size>
<width>131</width>
<height>8</height>
<height>12</height>
</size>
</property>
</spacer>
@ -3165,6 +3171,13 @@ hr { height: 1px; border-width: 0; }
</layout>
</widget>
</item>
<item row="1" column="1" rowspan="3">
<widget class="Line" name="line_5">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
</item>
</layout>
</widget>
</item>

View File

@ -310,6 +310,7 @@ void Craplog::scanLogsDir()
bool proceed = true;
std::vector<std::string> content;
try {
// read 32 random lines
content = IOutils::readLines( path, 32, true );
} catch (const std::ios_base::failure& err) {
// failed reading