tabs to spaces

.. in Computrainer.cpp and TrainTool.cpp
This commit is contained in:
Mark Liversedge
2013-01-28 07:17:45 +00:00
parent 9a4c98c92f
commit d22baa98ce
2 changed files with 7 additions and 7 deletions

View File

@@ -879,9 +879,9 @@ int Computrainer::openPort()
QString portSpec;
int portnum = deviceFilename.midRef(3).toString().toInt();
if (portnum < 10)
portSpec = deviceFilename;
portSpec = deviceFilename;
else
portSpec = "\\\\.\\" + deviceFilename;
portSpec = "\\\\.\\" + deviceFilename;
wchar_t deviceFilenameW[32]; // \\.\COM32 needs 9 characters, 32 should be enough?
MultiByteToWideChar(CP_ACP, 0, portSpec.toAscii(), -1, (LPWSTR)deviceFilenameW,
sizeof(deviceFilenameW));

View File

@@ -360,7 +360,7 @@ TrainTool::TrainTool(MainWindow *parent, const QDir &home) : GcWindow(parent), h
recordFile = NULL;
status = 0;
status |= RT_MODE_ERGO; // ergo mode by default
mode = ERG;
mode = ERG;
displayWorkoutLap = displayLap = 0;
pwrcount = 0;
@@ -474,9 +474,9 @@ TrainTool::configChanged()
if (Devices.count()) {
deviceTree->setCurrentItem(allDevices->child(0));
}
// And select default workout to Ergo
QModelIndex firstWorkout = sortModel->index(0, 0, QModelIndex());
workoutTree->setCurrentIndex(firstWorkout);
// And select default workout to Ergo
QModelIndex firstWorkout = sortModel->index(0, 0, QModelIndex());
workoutTree->setCurrentIndex(firstWorkout);
// Athlete
FTP=285; // default to 285 if zones are not set
int range = main->zones()->whichRange(QDate::currentDate());
@@ -1075,7 +1075,7 @@ void TrainTool::guiUpdate() // refreshes the telemetry
displayHeartRate = rtData.getHr();
displaySpeed = rtData.getSpeed();
load = rtData.getLoad();
slope = rtData.getSlope();
slope = rtData.getSlope();
// virtual speed
double crr = 0.004f; // typical for asphalt surfaces