mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-06-11 09:07:05 -04:00
29 lines
708 B
C++
29 lines
708 B
C++
#pragma once
|
|
|
|
#include "game_list.h"
|
|
|
|
class game_list_grid_delegate;
|
|
|
|
class game_list_grid : public game_list
|
|
{
|
|
Q_OBJECT
|
|
|
|
QSize m_icon_size;
|
|
QColor m_icon_color;
|
|
qreal m_margin_factor;
|
|
qreal m_text_factor;
|
|
bool m_text_enabled = true;
|
|
|
|
public:
|
|
explicit game_list_grid(const QSize& icon_size, QColor icon_color, const qreal& margin_factor, const qreal& text_factor, const bool& showText);
|
|
|
|
void enableText(const bool& enabled);
|
|
void setIconSize(const QSize& size) const;
|
|
movie_item* addItem(const game_info& app, const QString& name, const QString& movie_path, const int& row, const int& col);
|
|
|
|
[[nodiscard]] qreal getMarginFactor() const;
|
|
|
|
private:
|
|
game_list_grid_delegate* grid_item_delegate;
|
|
};
|