aboutsummaryrefslogtreecommitdiff
path: root/lib/configuration/qt_specialization.h
blob: 8aabf6b9083eaa5ca98aa3f595f922b14cb15f97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include <QString>
#include <QStringList>

template <>
callable_when(unconsumed) [[nodiscard]] std::optional<QString> Configuration::value(const char *path) const;
template <>
callable_when(unconsumed) [[nodiscard]] std::optional<QStringList> Configuration::value(const char *path) const;

template <>
callable_when(unconsumed) QAction &Configuration::shortcut(QAction &, const char *) const;
template <>
callable_when(unconsumed) QKeySequence &Configuration::shortcut(QKeySequence &, const char *) const;

[[deprecated("Use Configuration::shortcut<QAction>(name) instead")]] void setShortcut(QAction *action, const char *name);