UserInterfaceUtility.h 873 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef USERINTERFACEUTILITY_H
  2. #define USERINTERFACEUTILITY_H
  3. #include <QObject>
  4. #include <QBrush>
  5. #include <QColor>
  6. #include <QTime>
  7. #include <QDebug>
  8. #include <QByteArray>
  9. #include <QString>
  10. class UserInterfaceUtility
  11. {
  12. public:
  13. static QBrush listViewItemBrush();
  14. static QColor customBlackColor();
  15. static QColor videoColor();
  16. static QColor mainWidgetBackgroundColor();
  17. static QColor multimediaAlphaColor();
  18. static void startTime();
  19. static void elapsed(const QString &str);
  20. static bool loadFromdata(const QString& path, QByteArray& data);
  21. private:
  22. UserInterfaceUtility() = delete;
  23. ~UserInterfaceUtility() = delete;
  24. UserInterfaceUtility(const UserInterfaceUtility &utility) = delete;
  25. UserInterfaceUtility& operator =(const UserInterfaceUtility &utility) = delete;
  26. static QTime time;
  27. };
  28. #endif // USERINTERFACEUTILITY_H