Skip to content

Commit 09d58f1

Browse files
refactor: drop some conditional compile
since Qt 5.7 at least
1 parent 9cdd8ff commit 09d58f1

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

makespec/BUILDVERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
93
1+
94

src/exttestcasemodifier.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -399,11 +399,7 @@ void ExtTestCaseModifier::appendNewSub() {
399399
}
400400

401401
void ExtTestCaseModifier::appendNewCase() {
402-
#if QT_VERSION < QT_VERSION_CHECK(5, 6, 0)
403-
int who = ui->testCaseTable->getSelectedHaveSub().back();
404-
#else
405402
int who = ui->testCaseTable->getSelectedHaveSub().constLast();
406-
#endif
407403

408404
auto *dialog = new ExtTestCaseUpdaterDialog(this, editTask, editSettings, who + 1, NO_EDIT, 1, NO_EDIT,
409405
NO_EDIT, NO_EDIT);

src/main.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@
2020
#define LEMON_MODULE_NAME "Main"
2121

2222
int main(int argc, char *argv[]) {
23-
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
2423
#ifndef LEMON_QT6
2524
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // High DPI supported
2625
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true);
27-
#endif
2826
#endif
2927

3028
LemonBaseApplication app(argc, argv);

0 commit comments

Comments
 (0)