added icons, pagination

This commit is contained in:
master
2025-11-16 01:39:39 -05:00
parent f2cf0d7d89
commit af8784a15e
53 changed files with 57448 additions and 4794 deletions
@@ -9,6 +9,7 @@
#include "../../../src/imagegallery.h"
#include <QtGui/qtextcursor.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QList>
#include <QtCore/qtmochelpers.h>
@@ -134,7 +135,17 @@ template <> constexpr inline auto ImageGallery::qt_create_metaobjectdata<qt_meta
"handleThumbnailClicked",
"filePath",
"handleContainerResized",
"updateGridLayout"
"updateGridLayout",
"handleSearchResults",
"QList<DatabaseManager::ImageItem>",
"results",
"offset",
"limit",
"totalCount",
"handleSearchStarted",
"updateSearchTextDisplay",
"handleScrolledToBottom",
"handleLoadMoreClicked"
};
QtMocHelpers::UintData qt_methods {
@@ -150,6 +161,23 @@ template <> constexpr inline auto ImageGallery::qt_create_metaobjectdata<qt_meta
QtMocHelpers::SlotData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
// Slot 'updateGridLayout'
QtMocHelpers::SlotData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
// Slot 'handleSearchResults'
QtMocHelpers::SlotData<void(const QList<DatabaseManager::ImageItem> &, const QString &, int, int, int)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
{ 0x80000000 | 9, 10 }, { QMetaType::QString, 3 }, { QMetaType::Int, 11 }, { QMetaType::Int, 12 },
{ QMetaType::Int, 13 },
}}),
// Slot 'handleSearchStarted'
QtMocHelpers::SlotData<void(const QString &)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
{ QMetaType::QString, 3 },
}}),
// Slot 'updateSearchTextDisplay'
QtMocHelpers::SlotData<void(const QString &)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
{ QMetaType::QString, 3 },
}}),
// Slot 'handleScrolledToBottom'
QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPublic, QMetaType::Void),
// Slot 'handleLoadMoreClicked'
QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessPublic, QMetaType::Void),
};
QtMocHelpers::UintData qt_properties {
};
@@ -177,6 +205,11 @@ void ImageGallery::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id
case 1: _t->handleThumbnailClicked((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
case 2: _t->handleContainerResized(); break;
case 3: _t->updateGridLayout(); break;
case 4: _t->handleSearchResults((*reinterpret_cast<std::add_pointer_t<QList<DatabaseManager::ImageItem>>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[5]))); break;
case 5: _t->handleSearchStarted((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
case 6: _t->updateSearchTextDisplay((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
case 7: _t->handleScrolledToBottom(); break;
case 8: _t->handleLoadMoreClicked(); break;
default: ;
}
}
@@ -201,14 +234,14 @@ int ImageGallery::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 4)
if (_id < 9)
qt_static_metacall(this, _c, _id, _a);
_id -= 4;
_id -= 9;
}
if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 4)
if (_id < 9)
*reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
_id -= 4;
_id -= 9;
}
return _id;
}