bool AboutDialog::eventFilter(QObject *obj, QEvent *event) { if (event->type() == QEvent::MouseButtonPress ) { if( obj == ui.version ) { if( !b_advanced ) { ui.version->setText(qfu( VLC_CompileBy() )+ "@" + qfu( VLC_CompileHost() ) + " " + __DATE__ + " " + __TIME__); b_advanced = true; } else { ui.version->setText(qfu( " " VERSION_MESSAGE ) ); b_advanced = false; } return true; } else if( obj == ui.licenseButton ) showLicense(); else if( obj == ui.authorsButton ) showAuthors(); else if( obj == ui.creditsButton ) showCredit(); return false; } return QVLCDialog::eventFilter( obj, event); }
void AboutDialog::buttonClicked() { if (ui->authorsButton->text() == tr("Authors and Contributors")) { showAuthors(); } else if (ui->authorsButton->text() == tr("< About QupZilla")) { showAbout(); } }