Skip to content

Commit

Permalink
Statistics: Narrow layout
Browse files Browse the repository at this point in the history
  • Loading branch information
foldynl committed Aug 21, 2024
1 parent 8b6d17d commit b93218f
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/StatisticsWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,8 @@ void StatisticsWidget::drawBarGraphs(const QString &title, QSqlQuery &query)
chart->setTitle(title);
chart->legend()->hide();
chart->setAnimationOptions(QChart::SeriesAnimations);
chart->layout()->setContentsMargins(0, 0, 0, 0);
chart->setBackgroundRoundness(0);

ui->stackedWidget->setCurrentIndex(0);
ui->graphView->setChart(chart);
Expand Down
60 changes: 60 additions & 0 deletions ui/StatisticsWidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,21 @@
<string>Statistics</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>2</number>
</property>
<property name="leftMargin">
<number>6</number>
</property>
<property name="topMargin">
<number>6</number>
</property>
<property name="rightMargin">
<number>6</number>
</property>
<property name="bottomMargin">
<number>6</number>
</property>
<item>
<widget class="QGroupBox" name="groupBox">
<property name="title">
Expand All @@ -29,6 +44,21 @@
<bool>false</bool>
</property>
<layout class="QGridLayout" name="gridLayout">
<property name="leftMargin">
<number>6</number>
</property>
<property name="topMargin">
<number>6</number>
</property>
<property name="rightMargin">
<number>6</number>
</property>
<property name="bottomMargin">
<number>6</number>
</property>
<property name="spacing">
<number>4</number>
</property>
<item row="6" column="2">
<widget class="QComboBox" name="myRigCombo">
<property name="sizePolicy">
Expand Down Expand Up @@ -390,13 +420,43 @@
</property>
<widget class="QWidget" name="graphPage">
<layout class="QVBoxLayout" name="verticalLayout_2">
<property name="spacing">
<number>2</number>
</property>
<property name="leftMargin">
<number>2</number>
</property>
<property name="topMargin">
<number>2</number>
</property>
<property name="rightMargin">
<number>2</number>
</property>
<property name="bottomMargin">
<number>2</number>
</property>
<item>
<widget class="QChartView" name="graphView"/>
</item>
</layout>
</widget>
<widget class="QWidget" name="mapPage">
<layout class="QVBoxLayout" name="verticalLayout_3">
<property name="spacing">
<number>2</number>
</property>
<property name="leftMargin">
<number>2</number>
</property>
<property name="topMargin">
<number>2</number>
</property>
<property name="rightMargin">
<number>2</number>
</property>
<property name="bottomMargin">
<number>2</number>
</property>
<item>
<widget class="QWebEngineView" name="mapView">
<property name="contextMenuPolicy">
Expand Down

0 comments on commit b93218f

Please sign in to comment.