Files
Sourcetrail/src/lib_gui/qt/utility/utilityQt.h
T
malte_langkabel 054b8fab17 logic: reduce access to filesystem while indexing
* use canonical filepath cache in cxx indexer
* made constructors of FilePath explicit
* use FilePath at more places instead of string
* forward declares FilePath wherever possible
2017-05-04 10:55:16 +02:00

29 lines
677 B
C++

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