aboutsummaryrefslogtreecommitdiff
path: root/launcher/meta
diff options
context:
space:
mode:
authorRedsonBr140 <redson@riseup.net>2022-11-14 21:09:37 -0300
committerGitHub <noreply@github.com>2022-11-14 21:09:37 -0300
commit1e4ee02cbc0f44f390b33b5b85418f4eadffbae4 (patch)
tree6191253cc260c8ee6a5030d4b73f3cbed642d973 /launcher/meta
parentbe765f8d883697d2284343f9ee6c858987622857 (diff)
parentcedc7754d96e4c53d50bcce2b2a0f139b840f3d0 (diff)
downloadPrismLauncher-1e4ee02cbc0f44f390b33b5b85418f4eadffbae4.tar.gz
PrismLauncher-1e4ee02cbc0f44f390b33b5b85418f4eadffbae4.tar.bz2
PrismLauncher-1e4ee02cbc0f44f390b33b5b85418f4eadffbae4.zip
Merge branch 'PrismLauncher:develop' into menu-themes
Diffstat (limited to 'launcher/meta')
-rw-r--r--launcher/meta/Index.cpp4
-rw-r--r--launcher/meta/JsonFormat.h5
2 files changed, 2 insertions, 7 deletions
diff --git a/launcher/meta/Index.cpp b/launcher/meta/Index.cpp
index eec1b329..242aad9f 100644
--- a/launcher/meta/Index.cpp
+++ b/launcher/meta/Index.cpp
@@ -58,11 +58,11 @@ QVariant Index::data(const QModelIndex &index, int role) const
}
int Index::rowCount(const QModelIndex &parent) const
{
- return m_lists.size();
+ return parent.isValid() ? 0 : m_lists.size();
}
int Index::columnCount(const QModelIndex &parent) const
{
- return 1;
+ return parent.isValid() ? 0 : 1;
}
QVariant Index::headerData(int section, Qt::Orientation orientation, int role) const
{
diff --git a/launcher/meta/JsonFormat.h b/launcher/meta/JsonFormat.h
index 93217b7e..63128a4e 100644
--- a/launcher/meta/JsonFormat.h
+++ b/launcher/meta/JsonFormat.h
@@ -60,11 +60,6 @@ struct Require
QString suggests;
};
-inline Q_DECL_PURE_FUNCTION uint qHash(const Require &key, uint seed = 0) Q_DECL_NOTHROW
-{
- return qHash(key.uid, seed);
-}
-
using RequireSet = std::set<Require>;
void parseIndex(const QJsonObject &obj, Index *ptr);