SceneSwitcher/tests/mocks/ui-helpers.cpp
WarmUpTill 3e1fdbde45 Add option to set and check list source settings by name
This makes it easier to select the intended settings value as the
underlying value often has no direct connection to the user facing name.

It also makes it possible to select list entries whos underlying value
changes frequently, but the user facing value does not.
(E.g. device IDs based on the input port compared to the device name)
2025-06-20 22:29:35 +02:00

51 lines
873 B
C++

#include "ui-helpers.hpp"
class QObejct;
namespace advss {
QObject *HighlightWidget(QWidget *widget, QColor startColor, QColor endColor,
bool once)
{
return nullptr;
}
void SetHeightToContentHeight(QListWidget *list) {}
void SetButtonIcon(QAbstractButton *button, const char *path) {}
int FindIdxInRagne(QComboBox *list, int start, int stop,
const std::string &value, Qt::MatchFlags flags)
{
return -1;
}
void SetRowMatchingValueVisible(QComboBox *list, const QString &value,
bool show)
{
}
bool DisplayMessage(const QString &msg, bool question, bool modal)
{
return false;
}
void DisplayTrayMessage(const QString &title, const QString &msg,
const QIcon &icon)
{
}
std::string GetThemeTypeName()
{
return "Dark";
}
void QeueUITask(void (*task)(void *param), void *) {}
QWidget *GetSettingsWindow()
{
return nullptr;
}
} // namespace advss