#include <QLabel>
#include <QPixmap>
#include <QLineEdit>
-#include <QTextEdit>
+#include <QTextBrowser>
#include <QCheckBox>
#include <QListWidget>
#include <QComboBox>
{
QLabel *label = NULL;
QPushButton *button = NULL;
- QTextEdit *textArea = NULL;
+ QTextBrowser *textArea = NULL;
QLineEdit *textInput = NULL;
QCheckBox *checkBox = NULL;
QComboBox *comboBox = NULL;
return label;
case EXTENSION_WIDGET_HTML:
- textArea = new QTextEdit( this );
- textArea->setAcceptRichText( true );
- textArea->setReadOnly( true );
+ textArea = new QTextBrowser( this );
+ textArea->setOpenExternalLinks( true );
textArea->setHtml( qfu( p_widget->psz_text ) );
p_widget->p_sys_intf = textArea;
return textArea;
{
QLabel *label = NULL;
QPushButton *button = NULL;
- QTextEdit *textArea = NULL;
+ QTextBrowser *textArea = NULL;
QLineEdit *textInput = NULL;
QCheckBox *checkBox = NULL;
QComboBox *comboBox = NULL;
return label;
case EXTENSION_WIDGET_HTML:
- textArea = static_cast< QTextEdit* >( p_widget->p_sys_intf );
+ textArea = static_cast< QTextBrowser* >( p_widget->p_sys_intf );
textArea->setHtml( qfu( p_widget->psz_text ) );
return textArea;