Albert
Loading...
Searching...
No Matches
indexitem.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2025 Manuel Schneider
2// SPDX-License-Identifier: MIT
3
4#pragma once
5#include <QString>
6#include <albert/export.h>
7#include <albert/item.h>
8#include <memory>
9
10namespace albert
11{
12
18class ALBERT_EXPORT IndexItem
19{
20public:
22 IndexItem(std::shared_ptr<Item> item, QString string);
23
25 std::shared_ptr<Item> item;
26
28 QString string;
29};
30
31}
An item utlized by ItemIndex.
Definition indexitem.h:19
std::shared_ptr< Item > item
The item to be indexed.
Definition indexitem.h:25
QString string
The corresponding lookup string.
Definition indexitem.h:28
IndexItem(std::shared_ptr< Item > item, QString string)
Constructs an index item with the given item and string.
Definition app.h:56