UserInterfaceUtility.h 906 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. #include <QElapsedTimer>
  11. class UserInterfaceUtility
  12. {
  13. public:
  14. static QBrush listViewItemBrush();
  15. static QColor customBlackColor();
  16. static QColor videoColor();
  17. static QColor mainWidgetBackgroundColor();
  18. static QColor multimediaAlphaColor();
  19. static void startTime();
  20. static void elapsed(const QString &str);
  21. static bool loadFromdata(const QString& path, QByteArray& data);
  22. private:
  23. UserInterfaceUtility() = delete;
  24. ~UserInterfaceUtility() = delete;
  25. UserInterfaceUtility(const UserInterfaceUtility &utility) = delete;
  26. UserInterfaceUtility& operator =(const UserInterfaceUtility &utility) = delete;
  27. static QElapsedTimer time;
  28. };
  29. #endif // USERINTERFACEUTILITY_H