43 void updateStatus(
const QString& gameId,
const QString& gameName,
int runningSeconds,
44 double fps,
double frametime,
const std::vector<double>& frametimeHistory,
45 const QString& trackedProcessName = QString());
53 void setLaunchInfo(
const QStringList& optimizations,
const QString& runner,
54 const QString& protonVersion);
66 return !currentGameId_.isEmpty();
74 return currentGameId_;
101 void updateTooltip();
102 void updateStyleSheet();
103 void drawSparkline(QPainter& painter,
const QRect& rect);
104 QString formatDuration(
int seconds)
const;
107 QString currentGameId_;
109 QString trackedProcessName_;
110 int runningSeconds_ = 0;
112 double frametime_ = 0.0;
113 std::vector<double> frametimeHistory_;
116 QStringList optimizations_;
118 QString protonVersion_;
121 bool hovered_ =
false;
124 QHBoxLayout* layout_ =
nullptr;
125 QLabel* iconLabel_ =
nullptr;
126 QLabel* nameLabel_ =
nullptr;
127 QLabel* timeLabel_ =
nullptr;
128 QLabel* fpsLabel_ =
nullptr;
129 QWidget* sparklineWidget_ =
nullptr;
132 static constexpr int SPARKLINE_WIDTH = 50;
133 static constexpr int SPARKLINE_HEIGHT = 16;