Skip to content

Commit

Permalink
Merge pull request #8 from khumnath/devlopment
Browse files Browse the repository at this point in the history
Devlopment
  • Loading branch information
khumnath authored Jun 21, 2024
2 parents d923adb + fa68893 commit 419a3b2
Show file tree
Hide file tree
Showing 3 changed files with 316 additions and 426 deletions.
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

0 comments on commit 419a3b2

Please sign in to comment.