Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devlopment #8

Merged
merged 3 commits into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions calendarwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,14 +257,19 @@ void CalendarWindow::showAbout() {
<p>nepali calendar</p>
<p><b>Author:</b> <span style="font-weight: bold;">khumnath</span></p>
<p><b>Version:</b> 1.0.0</p>
<p>This application is written in C++ and Qt framework. For more information, visit my <a href="https://github.com/khumnath/nepdate" style="color: blue; text-decoration: underline;">GitHub page</a>.</p>
<p>This application is written in C++ and Qt framework. For more information, visit my <a href="https://khumnath.com.np/posts/2024-06-20-post3" style="color: blue; text-decoration: underline;">Website</a>.</p>
</center>)";

QMessageBox msgBox(QMessageBox::Information, "About", aboutText, QMessageBox::Ok);
msgBox.setStyleSheet("QDialog { background-color: white; color: black; }"
"QLabel { color: black; }"
"QPushButton { background-color: white; color: black; }");
msgBox.exec();
QMessageBox *msgBox = new QMessageBox(QMessageBox::Information, "About", aboutText, QMessageBox::Ok, this);
msgBox->setStyleSheet("QDialog { background-color: white; color: black; }"
"QLabel { color: black; }"
"QPushButton { background-color: white; color: black; }");

msgBox->setWindowModality(Qt::WindowModal);
QAbstractButton *okButton = msgBox->button(QMessageBox::Ok);
connect(okButton, &QAbstractButton::clicked, msgBox, &QMessageBox::close);
msgBox->exec();
delete msgBox;
}

void CalendarWindow::openSourceCode() {
Expand Down
Loading