Files
Sourcetrail/src/lib_gui/qt/utility/utilityQt.h
T

29 lines
675 B
C++

#ifndef UTILITY_QT_H
#define UTILITY_QT_H
#include <string>
class FilePath;
class QColor;
class QIcon;
class QPixmap;
class QString;
class QWidget;
namespace utility
{
void setWidgetBackgroundColor(QWidget* widget, const std::string& color);
void setWidgetRetainsSpaceWhenHidden(QWidget* widget);
void loadFontsFromDirectory(const FilePath& path, const std::wstring& extension = L".otf");
std::string getStyleSheet(const FilePath& path);
QPixmap colorizePixmap(const QPixmap& pixmap, QColor color);
QIcon createButtonIcon(const FilePath& iconPath, const std::string& colorId);
void copyNewFilesFromDirectory(QString src, QString dst);
}
#endif // UTILITY_QT_H