SceneSwitcher/tests/mocks/ui-helpers.cpp
WarmUpTill 3bc15e585c Switch QPushButton to QToolButton
This will be more consistent with the widget styles used throughout OBS
and solves a few layout issues
2024-06-20 21:41:28 +02:00

46 lines
782 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;
}
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