WSJT-X/widgets/HelpTextWindow.cpp
2020-07-29 18:44:34 +01:00

22 lines
602 B
C++

#include "HelpTextWindow.hpp"
#include <QApplication>
#include <QString>
#include <QPalette>
#include "qt_helpers.hpp"
#include "moc_HelpTextWindow.cpp"
HelpTextWindow::HelpTextWindow (QString const& title, QString const& text, QFont const& font, QWidget * parent)
: QLabel {parent, Qt::WindowCloseButtonHint | Qt::WindowMinimizeButtonHint}
{
setWindowTitle(QApplication::applicationName () + " - " + title);
setMargin (10);
setBackgroundRole (QPalette::Base);
setAutoFillBackground (true);
setStyleSheet (font_as_stylesheet (font));
setText (text);
setMinimumSize (sizeHint ());
}