summaryrefslogtreecommitdiff
path: root/src/yuzu/game_list_p.h
diff options
context:
space:
mode:
authorfearlessTobi <thm.frey@gmail.com>2019-05-05 01:52:17 +0200
committerFearlessTobi <thm.frey@gmail.com>2019-09-04 16:47:32 +0200
commitdfec9c9a437b7478abd8b280f6ce513da595ba73 (patch)
tree37c126892697f63d7c2a74f6df411bc7f0662396 /src/yuzu/game_list_p.h
parent7a8f4840205799d837ac32401b4143c716a8bc3d (diff)
Address more trivial review comments
Diffstat (limited to 'src/yuzu/game_list_p.h')
-rw-r--r--src/yuzu/game_list_p.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/yuzu/game_list_p.h b/src/yuzu/game_list_p.h
index 13623f526..047061e6c 100644
--- a/src/yuzu/game_list_p.h
+++ b/src/yuzu/game_list_p.h
@@ -228,13 +228,13 @@ public:
.pixmap(icon_size)
.scaled(icon_size, icon_size, Qt::IgnoreAspectRatio, Qt::SmoothTransformation),
Qt::DecorationRole);
- setData("Installed Titles", Qt::DisplayRole);
+ setData(QObject::tr("Installed Titles"), Qt::DisplayRole);
break;
case GameListItemType::SystemDir:
setData(QIcon::fromTheme("chip").pixmap(icon_size).scaled(
icon_size, icon_size, Qt::IgnoreAspectRatio, Qt::SmoothTransformation),
Qt::DecorationRole);
- setData("System Titles", Qt::DisplayRole);
+ setData(QObject::tr("System Titles"), Qt::DisplayRole);
break;
case GameListItemType::CustomDir:
const QString icon_name = QFileInfo::exists(game_dir->path)
@@ -266,7 +266,7 @@ public:
.pixmap(icon_size)
.scaled(icon_size, icon_size, Qt::IgnoreAspectRatio, Qt::SmoothTransformation),
Qt::DecorationRole);
- setData("Add New Game Directory", Qt::DisplayRole);
+ setData(QObject::tr("Add New Game Directory"), Qt::DisplayRole);
}
int type() const override {
@@ -292,9 +292,6 @@ public:
void clear();
void setFocus();
- int visible;
- int total;
-
private:
class KeyReleaseEater : public QObject {
public:
@@ -308,6 +305,9 @@ private:
// EventFilter in order to process systemkeys while editing the searchfield
bool eventFilter(QObject* obj, QEvent* event) override;
};
+ int visible;
+ int total;
+
QHBoxLayout* layout_filter = nullptr;
QTreeView* tree_view = nullptr;
QLabel* label_filter = nullptr;