summaryrefslogtreecommitdiff
blob: 8fc1680aacb0da0516f7cec0643034ee328a42ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
diff -Naur qtemu-1.0.5.orig/CMakeLists.txt qtemu-1.0.5/CMakeLists.txt
--- qtemu-1.0.5.orig/CMakeLists.txt	2008-02-22 19:32:43.000000000 +0100
+++ qtemu-1.0.5/CMakeLists.txt	2008-02-22 19:35:29.000000000 +0100
@@ -114,7 +114,7 @@
                    DEPENDS ${QM_FILES})
 
 INSTALL (FILES ${QM_FILES}
-         DESTINATION translations)
+         DESTINATION share/qtemu/translations)
 # translation end
 
 SET(QT_USE_QTXML)
@@ -146,13 +146,13 @@
 )
 
 FILE(GLOB helpfiles "${CMAKE_CURRENT_SOURCE_DIR}/help/*.png")
-INSTALL(FILES ${helpfiles} DESTINATION help)
+INSTALL(FILES ${helpfiles} DESTINATION share/qtemu/help)
 
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/help/main.htm DESTINATION help)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/help/main.htm DESTINATION share/qtemu/help)
 
 FILE(GLOB helpfiles_de "${CMAKE_CURRENT_SOURCE_DIR}/help/de/*.png")
-INSTALL(FILES ${helpfiles_de} DESTINATION help/de)
+INSTALL(FILES ${helpfiles_de} DESTINATION share/qtemu/help/de)
 
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/help/de/main.htm DESTINATION help/de)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/help/de/main.htm DESTINATION share/qtemu/help/de)
 
 INSTALL(TARGETS qtemu DESTINATION bin)
diff -Naur qtemu-1.0.5.orig/helpwindow.cpp qtemu-1.0.5/helpwindow.cpp
--- qtemu-1.0.5.orig/helpwindow.cpp	2008-02-22 19:32:44.000000000 +0100
+++ qtemu-1.0.5/helpwindow.cpp	2008-02-22 19:33:26.000000000 +0100
@@ -80,7 +80,7 @@
             return testUrl;
     
         //check for case when qtemu executable is in bin/ (installed on linux)
-        testUrl = QUrl(QCoreApplication::applicationDirPath()+"/../help/" + locale + "/main.htm");
+        testUrl = QUrl(QCoreApplication::applicationDirPath()+"/../share/qtemu/help/" + locale + "/main.htm");
         if (QFile::exists(testUrl.toString()))
             return testUrl;
     }
@@ -96,7 +96,7 @@
         return testUrl;
 
     //check for case when qtemu executable is in bin/ (installed on linux)
-    testUrl = QUrl(QCoreApplication::applicationDirPath()+"/../help/main.htm");
+    testUrl = QUrl(QCoreApplication::applicationDirPath()+"/../share/qtemu/help/main.htm");
     if (QFile::exists(testUrl.toString()))
         return testUrl;
 
diff -Naur qtemu-1.0.5.orig/main.cpp qtemu-1.0.5/main.cpp
--- qtemu-1.0.5.orig/main.cpp	2008-02-22 19:32:43.000000000 +0100
+++ qtemu-1.0.5/main.cpp	2008-02-22 19:36:32.000000000 +0100
@@ -45,7 +45,7 @@
         translator.load(path);
     else
     {
-        path = QCoreApplication::applicationDirPath()+"/../translations/qtemu_" + locale + ".qm";
+        path = QCoreApplication::applicationDirPath()+"/../share/qtemu/translations/qtemu_" + locale + ".qm";
         if (QFile::exists(path))
             translator.load(path);
     }