]> git.sesse.net Git - nageru/blob - aboutdialog.cpp
Only report disk space anew every second. Saves 20% CPU or so on the UI thread (!).
[nageru] / aboutdialog.cpp
1 #include "aboutdialog.h"
2
3 #include <QDialogButtonBox>
4
5 #include "ui_aboutdialog.h"
6
7 using namespace std;
8
9 AboutDialog::AboutDialog()
10         : ui(new Ui::AboutDialog)
11 {
12         ui->setupUi(this);
13
14         connect(ui->button_box, &QDialogButtonBox::accepted, [this]{ this->close(); });
15 }
16