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
fc41a15c
Commit
fc41a15c
authored
Apr 16, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
About: show advanced info on click
parent
9ea4f58e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletion
+31
-1
modules/gui/qt4/dialogs/help.cpp
modules/gui/qt4/dialogs/help.cpp
+25
-1
modules/gui/qt4/dialogs/help.hpp
modules/gui/qt4/dialogs/help.hpp
+6
-0
No files found.
modules/gui/qt4/dialogs/help.cpp
View file @
fc41a15c
...
@@ -79,7 +79,7 @@ HelpDialog::~HelpDialog()
...
@@ -79,7 +79,7 @@ HelpDialog::~HelpDialog()
}
}
AboutDialog
::
AboutDialog
(
intf_thread_t
*
_p_intf
)
AboutDialog
::
AboutDialog
(
intf_thread_t
*
_p_intf
)
:
QVLCDialog
(
(
QWidget
*
)
_p_intf
->
p_sys
->
p_mi
,
_p_intf
)
:
QVLCDialog
(
(
QWidget
*
)
_p_intf
->
p_sys
->
p_mi
,
_p_intf
)
,
b_advanced
(
false
)
{
{
/* Build UI */
/* Build UI */
ui
.
setupUi
(
this
);
ui
.
setupUi
(
this
);
...
@@ -113,6 +113,8 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf)
...
@@ -113,6 +113,8 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf)
BUTTONACT
(
ui
.
licenseButton
,
showLicense
()
);
BUTTONACT
(
ui
.
licenseButton
,
showLicense
()
);
BUTTONACT
(
ui
.
authorsButton
,
showAuthors
()
);
BUTTONACT
(
ui
.
authorsButton
,
showAuthors
()
);
BUTTONACT
(
ui
.
creditsButton
,
showCredit
()
);
BUTTONACT
(
ui
.
creditsButton
,
showCredit
()
);
ui
.
version
->
installEventFilter
(
this
);
}
}
void
AboutDialog
::
showLicense
()
void
AboutDialog
::
showLicense
()
...
@@ -130,6 +132,28 @@ void AboutDialog::showCredit()
...
@@ -130,6 +132,28 @@ void AboutDialog::showCredit()
ui
.
stackedWidget
->
setCurrentWidget
(
ui
.
creditPage
);
ui
.
stackedWidget
->
setCurrentWidget
(
ui
.
creditPage
);
}
}
bool
AboutDialog
::
eventFilter
(
QObject
*
obj
,
QEvent
*
event
)
{
if
(
obj
==
ui
.
version
)
{
if
(
event
->
type
()
==
QEvent
::
MouseButtonPress
)
{
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
;
}
}
return
false
;
}
#ifdef UPDATE_CHECK
#ifdef UPDATE_CHECK
/*****************************************************************************
/*****************************************************************************
...
...
modules/gui/qt4/dialogs/help.hpp
View file @
fc41a15c
...
@@ -60,6 +60,12 @@ private:
...
@@ -60,6 +60,12 @@ private:
public
slots
:
public
slots
:
friend
class
Singleton
<
AboutDialog
>
;
friend
class
Singleton
<
AboutDialog
>
;
protected:
bool
eventFilter
(
QObject
*
obj
,
QEvent
*
event
);
private:
bool
b_advanced
;
private
slots
:
private
slots
:
void
showLicense
();
void
showLicense
();
void
showAuthors
();
void
showAuthors
();
...
...
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