Compare commits
1 Commits
20250915
...
6c7e078340
| Author | SHA1 | Date | |
|---|---|---|---|
| 6c7e078340 |
@@ -5,9 +5,21 @@
|
|||||||
#include <QCommandLineParser>
|
#include <QCommandLineParser>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "../thumbnailer/genthumbnail.h"
|
#include "../thumbnailer/genthumbnail.h"
|
||||||
|
#include <QTreeView>
|
||||||
|
#include <QFileSystemModel>
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
|
QApplication app(argc, argv);
|
||||||
|
QFileSystemModel model;
|
||||||
|
model.setRootPath("/home");
|
||||||
|
QTreeView treeView;
|
||||||
|
treeView.setModel(&model);
|
||||||
|
treeView.resize(800, 600);
|
||||||
|
treeView.show();
|
||||||
|
return app.exec();
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
setenv("LC_NUMERIC", "C", 1);
|
setenv("LC_NUMERIC", "C", 1);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user