From cf7eafca1fbc9aae495d7b7d7e1fb4bc92e6819f Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Wed, 6 Apr 2016 09:46:52 +0800 Subject: Sometimes Naïve! MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qmphelpwindow.cpp | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 qmphelpwindow.cpp (limited to 'qmphelpwindow.cpp') diff --git a/qmphelpwindow.cpp b/qmphelpwindow.cpp deleted file mode 100644 index 10cf083..0000000 --- a/qmphelpwindow.cpp +++ /dev/null @@ -1,31 +0,0 @@ -#include -#include "qmphelpwindow.hpp" -#include "ui_qmphelpwindow.h" - -qmpHelpWindow::qmpHelpWindow(QWidget *parent) : - QDialog(parent), - ui(new Ui::qmpHelpWindow) -{ - ui->setupUi(this); - ui->textBrowser->setSearchPaths(QStringList(QString(":/doc"))+QStringList(QString(":/img"))); - ui->textBrowser->setSource(QUrl("qrc:///doc/index.html")); -} - -qmpHelpWindow::~qmpHelpWindow() -{ - delete ui; -} - -void qmpHelpWindow::on_textBrowser_sourceChanged(const QUrl &src) -{ - if(src.fileName()==QString("version.html")) - { - QString s=ui->textBrowser->toHtml(); - s.replace("CT_QT_VERSION_STR",QT_VERSION_STR); - s.replace("RT_QT_VERSION_STR",qVersion()); - s.replace("CT_FLUIDSYNTH_VERSION",FLUIDSYNTH_VERSION); - s.replace("RT_FLUIDSYNTH_VERSION",fluid_version_str()); - s.replace("APP_VERSION",APP_VERSION); - ui->textBrowser->setHtml(s); - } -} -- cgit v1.2.3