Revert to old renderer
This commit is contained in:
@@ -39,7 +39,6 @@ ENDIF()
|
|||||||
FIND_PACKAGE( Qt4 REQUIRED )
|
FIND_PACKAGE( Qt4 REQUIRED )
|
||||||
SET( QT_USE_QTNETWORK True )
|
SET( QT_USE_QTNETWORK True )
|
||||||
SET( QT_USE_QTXML True )
|
SET( QT_USE_QTXML True )
|
||||||
SET( QT_USE_QTWEBKIT True )
|
|
||||||
INCLUDE( ${QT_USE_FILE} )
|
INCLUDE( ${QT_USE_FILE} )
|
||||||
|
|
||||||
IF ( APPLE )
|
IF ( APPLE )
|
||||||
|
|||||||
@@ -70,8 +70,8 @@ contributorsDialog::contributorsDialog(QWidget *parent, int contest, QString rnu
|
|||||||
str.append("<tr><td colspan=3 class=\"mycss\">"+tr("Thank you all !!!")+"</td></tr>");
|
str.append("<tr><td colspan=3 class=\"mycss\">"+tr("Thank you all !!!")+"</td></tr>");
|
||||||
str.append("</table>");
|
str.append("</table>");
|
||||||
str.append("</body></html>");
|
str.append("</body></html>");
|
||||||
ui->webBrowser->setHtml(str,QUrl(""));
|
ui->textEditor->setHtml(str);
|
||||||
ui->webBrowser->scroll(0,0);
|
ui->textEditor->scroll(0,0);
|
||||||
this->setWindowTitle(tr("Contributors"));
|
this->setWindowTitle(tr("Contributors"));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -79,9 +79,9 @@ contributorsDialog::contributorsDialog(QWidget *parent, int contest, QString rnu
|
|||||||
case 1:{
|
case 1:{
|
||||||
QFile file(":/releasenotes.txt");
|
QFile file(":/releasenotes.txt");
|
||||||
if(file.open( QIODevice::ReadOnly | QIODevice::Text ) ) {
|
if(file.open( QIODevice::ReadOnly | QIODevice::Text ) ) {
|
||||||
ui->webBrowser->setHtml(file.readAll(),QUrl(""));
|
ui->textEditor->setHtml(file.readAll());
|
||||||
}
|
}
|
||||||
ui->webBrowser->scroll(0,0);
|
ui->textEditor->scroll(0,0);
|
||||||
this->setWindowTitle(tr("Companion9x Release Notes"));
|
this->setWindowTitle(tr("Companion9x Release Notes"));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -104,7 +104,7 @@ contributorsDialog::contributorsDialog(QWidget *parent, int contest, QString rnu
|
|||||||
|
|
||||||
void contributorsDialog::showEvent ( QShowEvent * )
|
void contributorsDialog::showEvent ( QShowEvent * )
|
||||||
{
|
{
|
||||||
ui->webBrowser->scroll(0,0);
|
ui->textEditor->scroll(0,0);
|
||||||
}
|
}
|
||||||
|
|
||||||
contributorsDialog::~contributorsDialog()
|
contributorsDialog::~contributorsDialog()
|
||||||
@@ -114,7 +114,7 @@ contributorsDialog::~contributorsDialog()
|
|||||||
|
|
||||||
void contributorsDialog::replyFinished(QNetworkReply * reply)
|
void contributorsDialog::replyFinished(QNetworkReply * reply)
|
||||||
{
|
{
|
||||||
ui->webBrowser->setHtml(reply->readAll(),QUrl(""));
|
ui->textEditor->setHtml(reply->readAll());
|
||||||
}
|
}
|
||||||
|
|
||||||
void contributorsDialog::forceClose() {
|
void contributorsDialog::forceClose() {
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>926</width>
|
<width>788</width>
|
||||||
<height>333</height>
|
<height>528</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@@ -19,23 +19,10 @@
|
|||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QWebView" name="webBrowser">
|
<widget class="QTextEdit" name="textEditor"/>
|
||||||
<property name="url">
|
|
||||||
<url>
|
|
||||||
<string>about:blank</string>
|
|
||||||
</url>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
|
||||||
<customwidget>
|
|
||||||
<class>QWebView</class>
|
|
||||||
<extends>QWidget</extends>
|
|
||||||
<header>QtWebKit/QWebView</header>
|
|
||||||
</customwidget>
|
|
||||||
</customwidgets>
|
|
||||||
<resources>
|
<resources>
|
||||||
<include location="companion9x.qrc"/>
|
<include location="companion9x.qrc"/>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
Reference in New Issue
Block a user