/* People who wrote the software */
ui.authorsPage->setText( qfu( psz_authors ) );
- BUTTONACT(ui.licenseButton, showLicense() );
- BUTTONACT(ui.authorsButton, showAuthors() );
- BUTTONACT(ui.creditsButton, showCredit() );
+ ui.licenseButton->installEventFilter( this );
+ ui.authorsButton->installEventFilter( this );
+ ui.creditsButton->installEventFilter( this );
ui.version->installEventFilter( this );
}
bool AboutDialog::eventFilter(QObject *obj, QEvent *event)
{
- if( obj == ui.version )
+ if (event->type() == QEvent::MouseButtonPress )
{
- if (event->type() == QEvent::MouseButtonPress )
+ if( obj == ui.version )
{
if( !b_advanced )
{
}
return true;
}
+ else if( obj == ui.licenseButton )
+ showLicense();
+ else if( obj == ui.authorsButton )
+ showAuthors();
+ else if( obj == ui.creditsButton )
+ showCredit();
+
return false;
}
<number>0</number>
</property>
<item>
- <widget class="QToolButton" name="authorsButton">
+ <widget class="QLabel" name="authorsButton">
+ <property name="cursor">
+ <cursorShape>PointingHandCursor</cursorShape>
+ </property>
<property name="styleSheet">
<string notr="true">padding: 10px</string>
</property>
<property name="text">
- <string>Authors</string>
+ <string><html><head/><body><p><span style=" text-decoration: underline; color:#0057ae;">Authors</span></p></body></html></string>
</property>
- <property name="autoRaise">
- <bool>true</bool>
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
- <widget class="QToolButton" name="licenseButton">
+ <widget class="QLabel" name="licenseButton">
+ <property name="cursor">
+ <cursorShape>PointingHandCursor</cursorShape>
+ </property>
<property name="styleSheet">
<string notr="true">padding: 10px</string>
</property>
<property name="text">
- <string>License</string>
+ <string><html><head/><body><p><span style=" text-decoration: underline; color:#0057ae;">License</span></p></body></html></string>
</property>
- <property name="autoRaise">
- <bool>true</bool>
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
- <widget class="QToolButton" name="creditsButton">
+ <widget class="QLabel" name="creditsButton">
+ <property name="cursor">
+ <cursorShape>PointingHandCursor</cursorShape>
+ </property>
<property name="styleSheet">
<string notr="true">padding: 10px;</string>
</property>
<property name="text">
- <string>Credits</string>
+ <string><html><head/><body><p><span style=" text-decoration: underline; color:#0057ae;">Credits</span></p></body></html></string>
</property>
- <property name="autoRaise">
- <bool>true</bool>
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
</property>
</widget>
</item>