Prepare 0.3.4 release v0.3.4
authorDaniel Klaffenbach <danielklaffenbach@gmail.com>
Thu, 28 Oct 2010 08:30:32 +0000 (10:30 +0200)
committerDaniel Klaffenbach <danielklaffenbach@gmail.com>
Thu, 28 Oct 2010 08:30:32 +0000 (10:30 +0200)
* Install chinese locale correctly
* Adjust Debian changelog
* Remove QDebug include

debian/changelog
src/help_zh.htm [deleted file]
src/help_zh.html [new file with mode: 0644]
src/mainwindow.cpp
src/resources.qrc
src/src.pro

index 27b76b5..3c894c7 100644 (file)
@@ -1,3 +1,13 @@
+qcpufreq (0.3.4-1) unstable; urgency=low
+
+  * Fix slider on PR 1.3
+  * Added chinese locale - thanks to willkr (雨落霜飞)
+  * Changed scaling step handling (not inverted any more)
+  * Read constant sysfs values only once
+
+ -- maintainer Daniel Klaffenbach <danielklaffenbach@gmail.com>  Thu, 28 Oct 2010 10:24:51 +0200
+
+
 qcpufreq (0.3.3-1) unstable; urgency=low
 
   * MainWindow: use non-pointer members where possible
diff --git a/src/help_zh.htm b/src/help_zh.htm
deleted file mode 100644 (file)
index a0cf249..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<h1>QCPUFreq 帮助</h1>\r
-    \r
-    这个程序能允许你降低或升高你的CPU频率。\r
-    <br><br>\r
-    这可能对某些程序很有用(比如emulators),但是有时没必要使你的CPU始终全速运行。你可以在不运行这些程序时降低CPU频率来节约电池电量。值得注意的是,降低CPU最大频率不是总能节约电池电量的,而且有时候不是最好的选择!<br><br>\r
-    \r
-    <hr>\r
-    <strong>重要事项:</strong>\r
-    <ul>\r
-    <li>变更失效:</li>\r
-    <ul>\r
-     <li>重启设备</li>\r
-     <li>拨打或者接听电话</li>\r
-    </ul>\r
-    如果你想永久改变CPU频率或者使用SmartReflex™设置,你必须编辑 <em>/etc/pmconfig</em> 。如果你知道该则么做!\r
-    </li>\r
-    <li>当最大CPU频率和最低CPU频率一样,内核可能使用下一个频率最为最大频率。以官方内核为例,如果你设置的最大频率为250MHz,那么实际使用500MHz作为最大频率。这是内核问题。</li>\r
-    <li>已知SmartReflex™ 会对一些设备造成不稳定,可能导致随机重启。</li>\r
-    <li>运行PR 1.2,为使得设备更加稳定 Nokia 已经禁用"VDD2 SR"。 这就是为何QCPUFreq只启用 VDD1 SmartReflex™。</li>\r
-    <li>官方内核的CPU温度非常不精确。Enhanced Linux 内核如果加载 <em>bq27x00_battery</em> 模块,可以精确获得温度。</li>\r
-    <li>CPU的温度有可能显示"Unknown"。这也是内核问题,而不是因为QCPUFreq存在BUG。</li>\r
-   </ul>
\ No newline at end of file
diff --git a/src/help_zh.html b/src/help_zh.html
new file mode 100644 (file)
index 0000000..a0cf249
--- /dev/null
@@ -0,0 +1,22 @@
+<h1>QCPUFreq 帮助</h1>\r
+    \r
+    这个程序能允许你降低或升高你的CPU频率。\r
+    <br><br>\r
+    这可能对某些程序很有用(比如emulators),但是有时没必要使你的CPU始终全速运行。你可以在不运行这些程序时降低CPU频率来节约电池电量。值得注意的是,降低CPU最大频率不是总能节约电池电量的,而且有时候不是最好的选择!<br><br>\r
+    \r
+    <hr>\r
+    <strong>重要事项:</strong>\r
+    <ul>\r
+    <li>变更失效:</li>\r
+    <ul>\r
+     <li>重启设备</li>\r
+     <li>拨打或者接听电话</li>\r
+    </ul>\r
+    如果你想永久改变CPU频率或者使用SmartReflex™设置,你必须编辑 <em>/etc/pmconfig</em> 。如果你知道该则么做!\r
+    </li>\r
+    <li>当最大CPU频率和最低CPU频率一样,内核可能使用下一个频率最为最大频率。以官方内核为例,如果你设置的最大频率为250MHz,那么实际使用500MHz作为最大频率。这是内核问题。</li>\r
+    <li>已知SmartReflex™ 会对一些设备造成不稳定,可能导致随机重启。</li>\r
+    <li>运行PR 1.2,为使得设备更加稳定 Nokia 已经禁用"VDD2 SR"。 这就是为何QCPUFreq只启用 VDD1 SmartReflex™。</li>\r
+    <li>官方内核的CPU温度非常不精确。Enhanced Linux 内核如果加载 <em>bq27x00_battery</em> 模块,可以精确获得温度。</li>\r
+    <li>CPU的温度有可能显示"Unknown"。这也是内核问题,而不是因为QCPUFreq存在BUG。</li>\r
+   </ul>
\ No newline at end of file
index 3b96ee8..31d38d4 100644 (file)
 #include <QMessageBox>
 #include <QTextStream>
 #include <QDesktopWidget>
-#include <QDebug>
 #if defined(Q_WS_MAEMO_5)
     #include <QMaemo5InformationBox>
 #endif
 
 #define APPNAME "QCPUFreq"
-#define APPVERSION "0.3.3"
+#define APPVERSION "0.3.4"
 
 MainWindow::MainWindow(QWidget *parent) :
     QMainWindow(parent),
@@ -322,7 +321,6 @@ void MainWindow::init()
 
     //set minFreq and check avoid_frequencies
     QString min = readSysFile( "devices/system/cpu/cpu0/cpufreq/scaling_min_freq" );
-    qDebug() << min;
     //check if avoid file exists (only on power kernel)
     QFile file( "/sys/devices/system/cpu/cpu0/cpufreq/ondemand/avoid_frequencies" );
     if (file.exists()) {
@@ -411,7 +409,6 @@ void MainWindow::refresh()
     //display frequency slider
     ui->freq_adjust->setMinimum( 1 );
     ui->freq_adjust->setMaximum( getScalingSteps() );
-    //ui->freq_adjust->setInvertedAppearance( true );
     ui->freq_adjust->setSliderPosition( getScalingStep(getMaxFreq()) );
 
     //ui->retranslateUi(this);
index 1d3667c..c14a973 100644 (file)
@@ -6,5 +6,6 @@
     <qresource prefix="/txt">
         <file alias="help_en">help_en.html</file>
         <file alias="help_de">help_de.html</file>
+        <file alias="help_zh">help_zh.html</file>
     </qresource>
 </RCC>
index e6f8c60..c07d249 100644 (file)
@@ -44,7 +44,7 @@ unix {
 
        #MAKE INSTALL
 
-       INSTALLS += target helper sudoers desktop icon48 icon64 locale_de
+       INSTALLS += target helper sudoers desktop icon48 icon64 locale_de locale_zh
        target.path =$$BINDIR
 
        desktop.path = /usr/share/applications/hildon