Advance Wayland and KDE package bring-up
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
#include <QApplication>
|
||||
#include <kiconloader.h>
|
||||
|
||||
#include <QDate>
|
||||
#include <QDebug>
|
||||
#include <QElapsedTimer>
|
||||
#include <QPixmap>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
|
||||
KIconLoader *mpLoader = KIconLoader::global();
|
||||
KIconLoader::Context mContext = KIconLoader::Application;
|
||||
QElapsedTimer dt;
|
||||
dt.start();
|
||||
int count = 0;
|
||||
for (int mGroup = 0; mGroup < KIconLoader::LastGroup; ++mGroup) {
|
||||
qDebug() << "queryIcons " << mGroup << "," << mContext;
|
||||
const QStringList filelist = mpLoader->queryIcons(mGroup, mContext);
|
||||
qDebug() << " -> found " << filelist.count() << " icons.";
|
||||
// int i = 0;
|
||||
for (const auto &icon : filelist) {
|
||||
// qDebug() << ( i==9 ? "..." : (*it) );
|
||||
mpLoader->loadIcon(icon, (KIconLoader::Group)mGroup);
|
||||
++count;
|
||||
}
|
||||
}
|
||||
qDebug() << "Loading " << count << " icons took " << (float)(dt.elapsed()) / 1000 << " seconds";
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
Reference in New Issue
Block a user