Fix compilation on MSVC2013 by moving unicode strings to

"unicodestrings.h". Closes #3059.
This commit is contained in:
Chocobo1
2015-06-15 17:36:14 +08:00
parent bc97208516
commit e739e81205
8 changed files with 187 additions and 99 deletions

View File

@@ -29,6 +29,7 @@
*/
#include "speedlimitdlg.h"
#include "core/unicodestrings.h"
SpeedLimitDialog::SpeedLimitDialog(QWidget *parent): QDialog(parent)
{
@@ -69,7 +70,7 @@ void SpeedLimitDialog::updateSpinValue(int val) const
qDebug("Called updateSpinValue with %d", val);
if (val <= 0) {
spinBandwidth->setValue(0);
spinBandwidth->setSpecialValueText(QString::fromUtf8(""));
spinBandwidth->setSpecialValueText(QString::fromUtf8(C_INFINITY));
spinBandwidth->setSuffix(QString::fromUtf8(""));
}
else {
@@ -82,7 +83,7 @@ void SpeedLimitDialog::updateSliderValue(int val) const
{
if (val <= 0) {
spinBandwidth->setValue(0);
spinBandwidth->setSpecialValueText(QString::fromUtf8(""));
spinBandwidth->setSpecialValueText(QString::fromUtf8(C_INFINITY));
spinBandwidth->setSuffix(QString::fromUtf8(""));
}
if (val > bandwidthSlider->maximum())