#include "gui/formwelcome.h" #include "core/defs.h" #if !defined(Q_OS_WIN) #include "gui/messagebox.h" #endif #include #include #include #include FormWelcome::FormWelcome(QWidget *parent) : QDialog(parent), m_ui(new Ui::FormWelcome) { m_ui->setupUi(this); // Set flags. setWindowFlags(Qt::MSWindowsFixedSizeDialogHint | Qt::Dialog); #if !defined(Q_OS_WIN) MessageBox::iconify(m_ui->m_buttonBox); #endif // Set icon. setWindowIcon(QIcon(APP_ICON_PATH)); m_ui->m_lblLogo->setPixmap(QPixmap(APP_ICON_PATH)); // Move the dialog into the middle of the screen. QRect screen = qApp->desktop()->screenGeometry(); move(screen.center() - rect().center()); // Make sure that clicked hyperlinks are opened in defult web browser. connect(m_ui->m_lblInfo, SIGNAL(linkActivated(QString)), this, SLOT(openLink(QString))); // Setup the text. m_ui->m_lblInfo->setText( tr("

RSS Guard is a (very) easy-to-use feed reader. " "It supports all major feed formats, including RSS, " "ATOM and RDF.

" "

Make sure you explore all available features. " "If you find a bug or if you want to propose new " "feature, then create new " "issue " "report.

" "

RSS Guard can be translated to any language. " "Contact its author " "in case of your interest.


").arg(APP_URL_ISSUES, APP_EMAIL)); } void FormWelcome::openLink(const QString &link) { QDesktopServices::openUrl(QUrl(link)); } FormWelcome::~FormWelcome() { delete m_ui; }