Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
f2104a37
Commit
f2104a37
authored
Jan 28, 2010
by
Jean-Philippe André
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extensions/Qt: use a QTextBrowser instead of QTextEdit
Now you can click on URLs
parent
3534ae61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
modules/gui/qt4/dialogs/extensions.cpp
modules/gui/qt4/dialogs/extensions.cpp
+6
-7
No files found.
modules/gui/qt4/dialogs/extensions.cpp
View file @
f2104a37
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
#include <QLabel>
#include <QLabel>
#include <QPixmap>
#include <QPixmap>
#include <QLineEdit>
#include <QLineEdit>
#include <QText
Edit
>
#include <QText
Browser
>
#include <QCheckBox>
#include <QCheckBox>
#include <QListWidget>
#include <QListWidget>
#include <QComboBox>
#include <QComboBox>
...
@@ -205,7 +205,7 @@ QWidget* ExtensionDialog::CreateWidget( extension_widget_t *p_widget )
...
@@ -205,7 +205,7 @@ QWidget* ExtensionDialog::CreateWidget( extension_widget_t *p_widget )
{
{
QLabel
*
label
=
NULL
;
QLabel
*
label
=
NULL
;
QPushButton
*
button
=
NULL
;
QPushButton
*
button
=
NULL
;
QText
Edit
*
textArea
=
NULL
;
QText
Browser
*
textArea
=
NULL
;
QLineEdit
*
textInput
=
NULL
;
QLineEdit
*
textInput
=
NULL
;
QCheckBox
*
checkBox
=
NULL
;
QCheckBox
*
checkBox
=
NULL
;
QComboBox
*
comboBox
=
NULL
;
QComboBox
*
comboBox
=
NULL
;
...
@@ -242,9 +242,8 @@ QWidget* ExtensionDialog::CreateWidget( extension_widget_t *p_widget )
...
@@ -242,9 +242,8 @@ QWidget* ExtensionDialog::CreateWidget( extension_widget_t *p_widget )
return
label
;
return
label
;
case
EXTENSION_WIDGET_HTML
:
case
EXTENSION_WIDGET_HTML
:
textArea
=
new
QTextEdit
(
this
);
textArea
=
new
QTextBrowser
(
this
);
textArea
->
setAcceptRichText
(
true
);
textArea
->
setOpenExternalLinks
(
true
);
textArea
->
setReadOnly
(
true
);
textArea
->
setHtml
(
qfu
(
p_widget
->
psz_text
)
);
textArea
->
setHtml
(
qfu
(
p_widget
->
psz_text
)
);
p_widget
->
p_sys_intf
=
textArea
;
p_widget
->
p_sys_intf
=
textArea
;
return
textArea
;
return
textArea
;
...
@@ -547,7 +546,7 @@ QWidget* ExtensionDialog::UpdateWidget( extension_widget_t *p_widget )
...
@@ -547,7 +546,7 @@ QWidget* ExtensionDialog::UpdateWidget( extension_widget_t *p_widget )
{
{
QLabel
*
label
=
NULL
;
QLabel
*
label
=
NULL
;
QPushButton
*
button
=
NULL
;
QPushButton
*
button
=
NULL
;
QText
Edit
*
textArea
=
NULL
;
QText
Browser
*
textArea
=
NULL
;
QLineEdit
*
textInput
=
NULL
;
QLineEdit
*
textInput
=
NULL
;
QCheckBox
*
checkBox
=
NULL
;
QCheckBox
*
checkBox
=
NULL
;
QComboBox
*
comboBox
=
NULL
;
QComboBox
*
comboBox
=
NULL
;
...
@@ -578,7 +577,7 @@ QWidget* ExtensionDialog::UpdateWidget( extension_widget_t *p_widget )
...
@@ -578,7 +577,7 @@ QWidget* ExtensionDialog::UpdateWidget( extension_widget_t *p_widget )
return
label
;
return
label
;
case
EXTENSION_WIDGET_HTML
:
case
EXTENSION_WIDGET_HTML
:
textArea
=
static_cast
<
QText
Edit
*
>
(
p_widget
->
p_sys_intf
);
textArea
=
static_cast
<
QText
Browser
*
>
(
p_widget
->
p_sys_intf
);
textArea
->
setHtml
(
qfu
(
p_widget
->
psz_text
)
);
textArea
->
setHtml
(
qfu
(
p_widget
->
psz_text
)
);
return
textArea
;
return
textArea
;
...
...
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