aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer.src.d/qmphelpwindow.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-04-06 16:54:29 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-04-06 16:54:29 +0800
commit70fd2d85c1bd6fb8732e680e8fda9d36c317c732 (patch)
tree4f048e7af294a2d40d3cabb9ea0ff266aa1fc36c /qmidiplayer.src.d/qmphelpwindow.cpp
parentcf7eafca1fbc9aae495d7b7d7e1fb4bc92e6819f (diff)
downloadQMidiPlayer-70fd2d85c1bd6fb8732e680e8fda9d36c317c732.tar.xz
Too young too simple.
Diffstat (limited to 'qmidiplayer.src.d/qmphelpwindow.cpp')
-rw-r--r--qmidiplayer.src.d/qmphelpwindow.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/qmidiplayer.src.d/qmphelpwindow.cpp b/qmidiplayer.src.d/qmphelpwindow.cpp
deleted file mode 100644
index 10cf083..0000000
--- a/qmidiplayer.src.d/qmphelpwindow.cpp
+++ /dev/null
@@ -1,31 +0,0 @@
-#include <fluidsynth.h>
-#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);
- }
-}