Skip to content

Commit

Permalink
embedding the help file into the application.
Browse files Browse the repository at this point in the history
ignoring the autogenerated resource file
  • Loading branch information
x37v committed Jun 4, 2009
1 parent c811f7a commit 31b9b4c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,3 +5,4 @@ evolver_editor
.*.*.swp
*.*.gz
usr
qrc_evolver_editor.cpp
File renamed without changes.
1 change: 1 addition & 0 deletions evolver_editor.pro
Expand Up @@ -16,6 +16,7 @@ VERSION = 0.1
LIBS += -lporttime -lportmidi -lboost_program_options
DEPENDPATH += . include src
INCLUDEPATH += . include
RESOURCES = evolver_editor.qrc
MOC_DIR = moc
OBJECTS_DIR = obj

Expand Down
5 changes: 5 additions & 0 deletions evolver_editor.qrc
@@ -0,0 +1,5 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>doc/evolver_editor_help.txt</file>
</qresource>
</RCC>
2 changes: 1 addition & 1 deletion src/helpview.cpp
Expand Up @@ -6,7 +6,7 @@
HelpView::HelpView(QWidget * parent) : QTextEdit(parent) {
setReadOnly(true);

QFile help_file("HELP");
QFile help_file(":/doc/evolver_editor_help.txt");
if(help_file.open(QIODevice::ReadOnly | QIODevice::Text)){
QTextStream help_file_stream(&help_file);
setText(help_file_stream.readAll());
Expand Down

0 comments on commit 31b9b4c

Please sign in to comment.