This repository has been archived on 2020-04-18. You can view files and clone it, but cannot push or open issues or pull requests.
FediPotato/gui/src/dialog_about.cpp

30 lines
471 B
C++

#include "dialog_about.hpp"
#include <QFile>
namespace FediPotato
{
DialogAbout::DialogAbout(QDialog *parent)
: QDialog(parent)
{
setupUi(this);
display_authors();
}
void DialogAbout::display_authors() const
{
QFile file(":/AUTHORS");
if (file.open(QIODevice::ReadOnly))
{
label_authors->setText(file.readAll());
}
else
{
label_authors->setText(tr("Could not open :/AUTHORS."));
}
}
} // namespace FediPotato