mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-15 13:53:19 -05:00
Add more tests
This commit is contained in:
36
tests/mocks/ui-helpers.cpp
Normal file
36
tests/mocks/ui-helpers.cpp
Normal file
@@ -0,0 +1,36 @@
|
||||
#include "ui-helpers.hpp"
|
||||
|
||||
namespace advss {
|
||||
|
||||
QMetaObject::Connection PulseWidget(QWidget *widget, QColor startColor,
|
||||
QColor endColor, bool once)
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
||||
void SetHeightToContentHeight(QListWidget *list) {}
|
||||
|
||||
void SetButtonIcon(QPushButton *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";
|
||||
}
|
||||
|
||||
} // namespace advss
|
||||
Reference in New Issue
Block a user