Commit 3f32a78a authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

About: make the label look like links

parent d63309d4
...@@ -110,9 +110,9 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf) ...@@ -110,9 +110,9 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf)
/* People who wrote the software */ /* People who wrote the software */
ui.authorsPage->setText( qfu( psz_authors ) ); ui.authorsPage->setText( qfu( psz_authors ) );
BUTTONACT(ui.licenseButton, showLicense() ); ui.licenseButton->installEventFilter( this );
BUTTONACT(ui.authorsButton, showAuthors() ); ui.authorsButton->installEventFilter( this );
BUTTONACT(ui.creditsButton, showCredit() ); ui.creditsButton->installEventFilter( this );
ui.version->installEventFilter( this ); ui.version->installEventFilter( this );
} }
...@@ -134,9 +134,9 @@ void AboutDialog::showCredit() ...@@ -134,9 +134,9 @@ void AboutDialog::showCredit()
bool AboutDialog::eventFilter(QObject *obj, QEvent *event) 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 ) if( !b_advanced )
{ {
...@@ -151,6 +151,13 @@ bool AboutDialog::eventFilter(QObject *obj, QEvent *event) ...@@ -151,6 +151,13 @@ bool AboutDialog::eventFilter(QObject *obj, QEvent *event)
} }
return true; return true;
} }
else if( obj == ui.licenseButton )
showLicense();
else if( obj == ui.authorsButton )
showAuthors();
else if( obj == ui.creditsButton )
showCredit();
return false; return false;
} }
......
...@@ -279,41 +279,50 @@ background-color: rgb(230, 230, 230);</string> ...@@ -279,41 +279,50 @@ background-color: rgb(230, 230, 230);</string>
<number>0</number> <number>0</number>
</property> </property>
<item> <item>
<widget class="QToolButton" name="authorsButton"> <widget class="QLabel" name="authorsButton">
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="styleSheet"> <property name="styleSheet">
<string notr="true">padding: 10px</string> <string notr="true">padding: 10px</string>
</property> </property>
<property name="text"> <property name="text">
<string>Authors</string> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; text-decoration: underline; color:#0057ae;&quot;&gt;Authors&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
<property name="autoRaise"> <property name="alignment">
<bool>true</bool> <set>Qt::AlignCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QToolButton" name="licenseButton"> <widget class="QLabel" name="licenseButton">
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="styleSheet"> <property name="styleSheet">
<string notr="true">padding: 10px</string> <string notr="true">padding: 10px</string>
</property> </property>
<property name="text"> <property name="text">
<string>License</string> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; text-decoration: underline; color:#0057ae;&quot;&gt;License&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
<property name="autoRaise"> <property name="alignment">
<bool>true</bool> <set>Qt::AlignCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QToolButton" name="creditsButton"> <widget class="QLabel" name="creditsButton">
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="styleSheet"> <property name="styleSheet">
<string notr="true">padding: 10px;</string> <string notr="true">padding: 10px;</string>
</property> </property>
<property name="text"> <property name="text">
<string>Credits</string> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; text-decoration: underline; color:#0057ae;&quot;&gt;Credits&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
<property name="autoRaise"> <property name="alignment">
<bool>true</bool> <set>Qt::AlignCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment