15 #include <QDialogButtonBox>
19 #include <QPushButton>
20 #include <QVBoxLayout>
21 #include "../../util/btconnect.h"
22 #include "../../util/bticons.h"
23 #include "../../util/cresmgr.h"
29 setWindowModality(Qt::ApplicationModal);
30 setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
31 setWindowIcon(CResMgr::mainMenu::help::tipOfTheDay::icon());
34 QVBoxLayout * mainLayout =
new QVBoxLayout(
this);
38 mainLayout->addWidget(
m_iconLabel, 0, Qt::AlignHCenter);
44 mainLayout->addStretch();
46 m_buttonBox =
new QDialogButtonBox(Qt::Horizontal,
this);
49 QDialogButtonBox::AcceptRole);
52 QDialogButtonBox::RejectRole);
56 setLayout(mainLayout);
61 this, &BtWelcomeDialog::reject);
63 this, &BtWelcomeDialog::accept);
67 setWindowTitle(tr(
"Welcome to BibleTime"));
70 QStringLiteral(
"<p>%1</p><p>%2</p><p>%3</p>")
71 .arg(tr(
"BibleTime is an easy to use but powerful Bible "
73 .arg(tr(
"Before you can use this application some works "
74 "must be installed. Various works such as Bibles, "
75 "books, commentaries, and lexicons are available "
76 "from remote libraries."))
77 .arg(tr(
"Choose the \"Install works\" button to download "
78 "works. The menu \"Settings > Bookshelf Manager\" "
79 "also installs works and can be used later.")));
84 QStringLiteral(
" %1 ").arg(tr(
"Install works...")));
static BtIcons & instance()