Mercurial > public > ostc_companion
comparison MainWindow.cpp @ 4:e30f00f760d3 default tip
Cleanup OSTC label and removed url
The computer type will now show OSTC 4/5 instead of only 4. The url has
been removed because it is no longer maintained. The ui header have been
deleted because they are generated files shich should not be under
version controll. Delete locally if you want to force an update of the
dialog layout.
| author | Ideenmodellierer |
|---|---|
| date | Sun, 30 Nov 2025 18:37:32 +0100 |
| parents | 0b3630a29ad8 |
| children |
comparison
equal
deleted
inserted
replaced
| 3:4ace58a7c03c | 4:e30f00f760d3 |
|---|---|
| 145 .arg(MINOR_VERSION) // kein sprintf nötig, arg konvertiert automatisch | 145 .arg(MINOR_VERSION) // kein sprintf nötig, arg konvertiert automatisch |
| 146 .arg(BETA_VERSION | 146 .arg(BETA_VERSION |
| 147 ? QString(" beta %1").arg(PATCH_VERSION) | 147 ? QString(" beta %1").arg(PATCH_VERSION) |
| 148 : QString::number(PATCH_VERSION)) | 148 : QString::number(PATCH_VERSION)) |
| 149 ); | 149 ); |
| 150 | |
| 151 _ui->companionUrlL->setText( QString("<html>%1 " | |
| 152 "<a href='https://ostc-planner.net/wp/companion" | |
| 153 #if defined(Q_OS_IOS) | |
| 154 "?os=ios" | |
| 155 #elif defined(Q_OS_OSX) | |
| 156 "?os=mac" | |
| 157 #elif defined(Q_OS_WIN) | |
| 158 "?os=win" | |
| 159 #elif defined(Q_OS_ANDROID) | |
| 160 "?os=android" | |
| 161 #elif defined(Q_OS_LINUX) | |
| 162 "?os=linux" | |
| 163 #else | |
| 164 "?os=other" | |
| 165 #endif | |
| 166 #if defined(Q_OS_DARWIN64) || defined(Q_OS_WIN64) || defined(Q_OS_LINUX ) | |
| 167 "&arch=64" | |
| 168 #else | |
| 169 "&arch=32" | |
| 170 #endif | |
| 171 "&version=%2.%3.%4" | |
| 172 "&model=%6" | |
| 173 "'>ostc-planner.net/wp/companion" | |
| 174 "</a>" | |
| 175 "</html>") | |
| 176 .arg( tr("Official web site") ) | |
| 177 .arg(QString::number(MAJOR_VERSION)) | |
| 178 .arg(QString::number(MINOR_VERSION)) | |
| 179 .arg(BETA_VERSION ? QString("beta%1").arg(PATCH_VERSION) | |
| 180 : QString("%1") .arg(PATCH_VERSION)) | |
| 181 .arg(_op->model()) | |
| 182 ); | |
| 183 } | 150 } |
| 184 | 151 |
| 185 | 152 |
| 186 ////////////////////////////////////////////////////////////////////////////// | 153 ////////////////////////////////////////////////////////////////////////////// |
| 187 | 154 |
| 250 settings->setValue("Interface/computerType", name); | 217 settings->setValue("Interface/computerType", name); |
| 251 settings->sync(); | 218 settings->sync(); |
| 252 | 219 |
| 253 // backword compatibility >= translate name if necessary | 220 // backword compatibility >= translate name if necessary |
| 254 if ( name =="hwOS (Bluetooth)") name = "ostc3p"; | 221 if ( name =="hwOS (Bluetooth)") name = "ostc3p"; |
| 255 if( name =="hwOS (USB)") name = "ostc3"; | 222 if( name =="hwOS (USB)") name = "ostc3"; |
| 256 | 223 if( name =="ostc 4/5") name = "ostc4"; |
| 257 | 224 |
| 258 _ui->computerImage->setPixmap( QPixmap(":/Images/" + name + "_160x120.png")); | 225 _ui->computerImage->setPixmap( QPixmap(":/Images/" + name + "_160x120.png")); |
| 259 | 226 |
| 260 updateStatus(); | 227 updateStatus(); |
| 261 } | 228 } |
