mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-22 01:05:53 -05:00
Adapt to enable testing and add more tests
This commit is contained in:
55
tests/stubs/ui-helpers.cpp
Normal file
55
tests/stubs/ui-helpers.cpp
Normal file
@@ -0,0 +1,55 @@
|
||||
#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 QueueUITask(void (*task)(void *param), void *) {}
|
||||
|
||||
QWidget *GetSettingsWindow()
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
bool IsCursorInWidgetArea(QWidget *widget)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace advss
|
||||
Reference in New Issue
Block a user