78 setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
79 setWindowTitle(tr(
"Tip Of The Day"));
80 setWindowIcon(CResMgr::mainMenu::help::tipOfTheDay::icon());
83 QVBoxLayout *mainLayout =
new QVBoxLayout;
86 m_tipView->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
89 QStringLiteral(
"QTextEdit{background-color:rgb(255,255,255)}"));
91 font.setPointSize(font.pointSize()+2);
95 QHBoxLayout* hLayout =
new QHBoxLayout;
100 btConfig().value<bool>(QStringLiteral(
"GUI/showTipAtStartup"),
104 m_buttonBox =
new QDialogButtonBox(QDialogButtonBox::Close,
109 QPushButton *nextButton;
110 nextButton =
m_buttonBox->addButton(tr(
"Next Tip"),
111 QDialogButtonBox::ActionRole);
114 mainLayout->addLayout(hLayout);
115 setLayout(mainLayout);
120 this, &BtTipDialog::reject);
128 [](QUrl
const & url) { QDesktopServices::openUrl(url); });