Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
3f32a78a
Commit
3f32a78a
authored
Apr 16, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
About: make the label look like links
parent
d63309d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
17 deletions
+33
-17
modules/gui/qt4/dialogs/help.cpp
modules/gui/qt4/dialogs/help.cpp
+12
-5
modules/gui/qt4/ui/about.ui
modules/gui/qt4/ui/about.ui
+21
-12
No files found.
modules/gui/qt4/dialogs/help.cpp
View file @
3f32a78a
...
@@ -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
;
}
}
...
...
modules/gui/qt4/ui/about.ui
View file @
3f32a78a
...
@@ -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>
<
html
><
head/
><
body
><
p
><
span style=
"
text-decoration: underline; color:#0057ae;
">
Authors
<
/span
><
/p
><
/body
><
/html
>
</string>
</property>
</property>
<property
name=
"a
utoRaise
"
>
<property
name=
"a
lignment
"
>
<
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>
<
html
><
head/
><
body
><
p
><
span style=
"
text-decoration: underline; color:#0057ae;
">
License
<
/span
><
/p
><
/body
><
/html
>
</string>
</property>
</property>
<property
name=
"a
utoRaise
"
>
<property
name=
"a
lignment
"
>
<
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>
<
html
><
head/
><
body
><
p
><
span style=
"
text-decoration: underline; color:#0057ae;
">
Credits
<
/span
><
/p
><
/body
><
/html
>
</string>
</property>
</property>
<property
name=
"a
utoRaise
"
>
<property
name=
"a
lignment
"
>
<
bool>
true
</bool
>
<
set>
Qt::AlignCenter
</set
>
</property>
</property>
</widget>
</widget>
</item>
</item>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment