Performance improvement on ARM

This commit is contained in:
Christophe Dumez
2011-01-25 17:07:15 +00:00
parent 895d5151e1
commit 2a44ec9b91
23 changed files with 52 additions and 51 deletions

View File

@@ -467,7 +467,7 @@ void options_imp::setStyle(QString style) {
void options_imp::loadOptions(){
int intValue;
float floatValue;
qreal floatValue;
QString strValue;
// General preferences
const Preferences pref;
@@ -754,7 +754,7 @@ int options_imp::getDHTPort() const {
}
// Return Share ratio
float options_imp::getMaxRatio() const{
qreal options_imp::getMaxRatio() const{
if(checkMaxRatio->isChecked()){
return spinMaxRatio->value();
}

View File

@@ -129,7 +129,7 @@ private:
int getDHTPort() const;
bool isLSDEnabled() const;
int getEncryptionSetting() const;
float getMaxRatio() const;
qreal getMaxRatio() const;
// Proxy options
bool isProxyEnabled() const;
bool isProxyAuthEnabled() const;

View File

@@ -546,11 +546,11 @@ public:
setValue(QString::fromUtf8("Preferences/Bittorrent/Encryption"), val);
}
float getMaxRatio() const {
qreal getMaxRatio() const {
return value(QString::fromUtf8("Preferences/Bittorrent/MaxRatio"), -1).toDouble();
}
void setMaxRatio(float ratio) {
void setMaxRatio(qreal ratio) {
setValue(QString::fromUtf8("Preferences/Bittorrent/MaxRatio"), ratio);
}