add Application::aboutQt to about dialog

This commit is contained in:
Garux 2023-07-31 14:09:34 +06:00
parent b9c537f40b
commit affe89e774

View File

@ -52,6 +52,7 @@
#include <QDialogButtonBox> #include <QDialogButtonBox>
#include <QPushButton> #include <QPushButton>
#include <QGroupBox> #include <QGroupBox>
#include <QApplication>
#include "gtkutil/spinbox.h" #include "gtkutil/spinbox.h"
#include "gtkutil/guisettings.h" #include "gtkutil/guisettings.h"
#include <QPlainTextEdit> #include <QPlainTextEdit>
@ -371,6 +372,10 @@ void DoAbout(){
QObject::connect( button, &QPushButton::clicked, [](){ OpenURL( StringOutputStream( 256 )( AppPath_get(), "changelog.txt" ) ); } ); QObject::connect( button, &QPushButton::clicked, [](){ OpenURL( StringOutputStream( 256 )( AppPath_get(), "changelog.txt" ) ); } );
button->setEnabled( false ); button->setEnabled( false );
} }
{
auto button = buttons->addButton( "About Qt", QDialogButtonBox::ButtonRole::NoRole );
QObject::connect( button, &QPushButton::clicked, &QApplication::aboutQt );
}
} }
} }
{ {