mirror of
				https://github.com/arcan1s/awesome-widgets.git
				synced 2025-10-31 05:13:40 +00:00 
			
		
		
		
	edit temp conversion
This commit is contained in:
		| @ -8,7 +8,7 @@ cmake_policy (SET CMP0015 NEW) | ||||
| project (awesome-widgets) | ||||
| set (PROJECT_VERSION_MAJOR 2) | ||||
| set (PROJECT_VERSION_MINOR 0) | ||||
| set (PROJECT_VERSION_PATCH 1) | ||||
| set (PROJECT_VERSION_PATCH 2) | ||||
| set (PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}) | ||||
| set (PROJECT_TRDPARTY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty) | ||||
|  | ||||
|  | ||||
| @ -134,11 +134,11 @@ float AwesomeWidget::getTemp(const float temp) | ||||
|     else if (configuration[QString("tempUnits")] == QString("Reaumur")) | ||||
|         convertedTemp = temp * 0.8; | ||||
|     else if (configuration[QString("tempUnits")] == QString("cm^-1")) | ||||
|         convertedTemp = temp * 0.695; | ||||
|         convertedTemp = (temp + 273.15) * 0.695; | ||||
|     else if (configuration[QString("tempUnits")] == QString("kJ/mol")) | ||||
|         convertedTemp = temp * 8.31; | ||||
|         convertedTemp = (temp + 273.15) * 8.31; | ||||
|     else if (configuration[QString("tempUnits")] == QString("kcal/mol")) | ||||
|         convertedTemp = temp * 1.98; | ||||
|         convertedTemp = (temp + 273.15) * 1.98; | ||||
|  | ||||
|     return convertedTemp; | ||||
| } | ||||
|  | ||||
| @ -211,6 +211,7 @@ void DesktopPanel::reinit() | ||||
|     for (int i=0; i<desktopNames.count(); i++) { | ||||
|         labels.append(new CustomPlasmaLabel(this, i)); | ||||
|         labels[i]->setWordWrap(false); | ||||
|         qDebug() << labels[i]->styleSheet(); | ||||
|         layout->addItem(labels[i]); | ||||
|     } | ||||
|     // right stretch | ||||
|  | ||||
		Reference in New Issue
	
	Block a user