on xenial help sign in
Few more fixes
commitc74ed712e7e3297842d2b9291deb8a12050c2f3d authorMichal Hruby <michal.mhr@gmail.com> dateThu 4 Jul 2013, 12:26 (13 years ago) parent740f52b
5 files changed+11−8
plugins/Unity/categories.cpp+1 plugins/Unity/categories.h+1 plugins/Unity/categoryresults.cpp+6−6 plugins/Unity/categoryresults.h+2−2 plugins/Unity/scope.cpp+1
plugins/Unity/categories.cpp+1
@@ -3,6 +3,7 @@
33 *
44 * Authors:
55 * Michał Sawicz <michal.sawicz@canonical.com>
6+ * Michal Hruby <michal.hruby@canonical.com>
67 *
78 * This program is free software; you can redistribute it and/or modify
89 * it under the terms of the GNU General Public License as published by
plugins/Unity/categories.h+1
@@ -3,6 +3,7 @@
33 *
44 * Authors:
55 * Michał Sawicz <michal.sawicz@canonical.com>
6+ * Michal Hruby <michal.hruby@canonical.com>
67 *
78 * This program is free software; you can redistribute it and/or modify
89 * it under the terms of the GNU General Public License as published by
plugins/Unity/categoryresults.cpp+6−6
@@ -2,7 +2,7 @@
22 * Copyright (C) 2013 Canonical, Ltd.
33 *
44 * Authors:
5− * Michał Sawicz <michal.sawicz@canonical.com>
5+ * Michał Hruby <michal.hruby@canonical.com>
66 *
77 * This program is free software; you can redistribute it and/or modify
88 * it under the terms of the GNU General Public License as published by
@@ -35,7 +35,7 @@ enum ResultsColumn {
3535
3636CategoryResults::CategoryResults(QObject* parent)
3737 : DeeListModel(parent)
38− , m_category_index(-1)
38+ , m_categoryIndex(-1)
3939{
4040 m_roles[CategoryResults::RoleUri] = "uri";
4141 m_roles[CategoryResults::RoleIconHint] = "icon";
@@ -49,14 +49,14 @@ CategoryResults::CategoryResults(QObject* parent)
4949
5050int CategoryResults::categoryIndex() const
5151{
52− return m_category_index;
52+ return m_categoryIndex;
5353}
5454
5555void CategoryResults::setCategoryIndex(int index)
5656{
57− if (m_category_index != index) {
58− m_category_index = index;
59− Q_EMIT categoryIndexChanged(m_category_index);
57+ if (m_categoryIndex != index) {
58+ m_categoryIndex = index;
59+ Q_EMIT categoryIndexChanged(m_categoryIndex);
6060 }
6161}
6262
plugins/Unity/categoryresults.h+2−2
@@ -2,7 +2,7 @@
22 * Copyright (C) 2013 Canonical, Ltd.
33 *
44 * Authors:
5− * Michał Sawicz <michal.sawicz@canonical.com>
5+ * Michal Hruby <michal.hruby@canonical.com>
66 *
77 * This program is free software; you can redistribute it and/or modify
88 * it under the terms of the GNU General Public License as published by
@@ -61,7 +61,7 @@ Q_SIGNALS:
6161
6262private:
6363 QHash<int, QByteArray> m_roles;
64− int m_category_index;
64+ int m_categoryIndex;
6565};
6666
6767#endif // CATEGORY_RESULTS_H
plugins/Unity/scope.cpp+1
@@ -3,6 +3,7 @@
33 *
44 * Authors:
55 * Florian Boucault <florian.boucault@canonical.com>
6+ * Michal Hruby <michal.hruby@canonical.com>
67 *
78 * This program is free software; you can redistribute it and/or modify
89 * it under the terms of the GNU General Public License as published by