From 263043d9bf21a543109746813d5ac0b7dbd93c0a Mon Sep 17 00:00:00 2001 From: Daniel Klaffenbach Date: Thu, 28 Oct 2010 10:30:32 +0200 Subject: [PATCH] Prepare 0.3.4 release * Install chinese locale correctly * Adjust Debian changelog * Remove QDebug include --- debian/changelog | 10 ++++++++++ src/help_zh.htm | 22 ---------------------- src/help_zh.html | 22 ++++++++++++++++++++++ src/mainwindow.cpp | 5 +---- src/resources.qrc | 1 + src/src.pro | 2 +- 6 files changed, 35 insertions(+), 27 deletions(-) delete mode 100644 src/help_zh.htm create mode 100644 src/help_zh.html diff --git a/debian/changelog b/debian/changelog index 27b76b5..3c894c7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 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 index a0cf249..0000000 --- a/src/help_zh.htm +++ /dev/null @@ -1,22 +0,0 @@ -

QCPUFreq 帮助

- - 这个程序能允许你降低或升高你的CPU频率。 -

- 这可能对某些程序很有用(比如emulators),但是有时没必要使你的CPU始终全速运行。你可以在不运行这些程序时降低CPU频率来节约电池电量。值得注意的是,降低CPU最大频率不是总能节约电池电量的,而且有时候不是最好的选择!

- -
- 重要事项: - \ No newline at end of file diff --git a/src/help_zh.html b/src/help_zh.html new file mode 100644 index 0000000..a0cf249 --- /dev/null +++ b/src/help_zh.html @@ -0,0 +1,22 @@ +

QCPUFreq 帮助

+ + 这个程序能允许你降低或升高你的CPU频率。 +

+ 这可能对某些程序很有用(比如emulators),但是有时没必要使你的CPU始终全速运行。你可以在不运行这些程序时降低CPU频率来节约电池电量。值得注意的是,降低CPU最大频率不是总能节约电池电量的,而且有时候不是最好的选择!

+ +
+ 重要事项: + \ No newline at end of file diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 3b96ee8..31d38d4 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -23,13 +23,12 @@ #include #include #include -#include #if defined(Q_WS_MAEMO_5) #include #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); diff --git a/src/resources.qrc b/src/resources.qrc index 1d3667c..c14a973 100644 --- a/src/resources.qrc +++ b/src/resources.qrc @@ -6,5 +6,6 @@ help_en.html help_de.html + help_zh.html diff --git a/src/src.pro b/src/src.pro index e6f8c60..c07d249 100644 --- a/src/src.pro +++ b/src/src.pro @@ -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 -- 1.7.9.5