Skip to content

Commit fd5ca9f

Browse files
committed
Building against Qt6 and adding webp support
1 parent 83153a3 commit fd5ca9f

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

QtFileExplorer.pro

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
#
55
#-------------------------------------------------
66
config += static
7-
QT += core gui
8-
9-
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
7+
QT += core gui
8+
QT += widgets
109

1110
TARGET = QtFileExplorer
1211
TEMPLATE = app

main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ int main(int argc, char *argv[]) {
1010

1111
a.setObjectName("TEST");
1212
return a.exec();
13-
}
13+
}

mywindows.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ myWindows::myWindows(QWidget *parent) : QWidget(parent) {
9191
spinBox->setMaximum(5);
9292
spinBox->setMinimum(0);
9393
spinBox->setValue(MAX_DEPTH);
94-
spinBox->setFixedWidth(50);
9594

9695
// Keyboard
9796

@@ -222,7 +221,7 @@ bool myWindows::parseFolderAndUpdate(QString path, int depth) {
222221

223222
bool myWindows::isImage(QString suffix) {
224223
QString lowSuffix = suffix.toLower();
225-
return (lowSuffix == "jpg" || lowSuffix == "jpeg" || lowSuffix == "png");
224+
return (lowSuffix == "jpg" || lowSuffix == "jpeg" || lowSuffix == "png" || lowSuffix == "webp");
226225
}
227226

228227
void myWindows::updateImage() { updateImage(lastFilePath); }

0 commit comments

Comments
 (0)