Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/plugin/systemmodel.cpp
Show All 13 Lines | |||||
14 | * You should have received a copy of the GNU General Public License * | 14 | * You should have received a copy of the GNU General Public License * | ||
15 | * along with this program; if not, write to the * | 15 | * along with this program; if not, write to the * | ||
16 | * Free Software Foundation, Inc., * | 16 | * Free Software Foundation, Inc., * | ||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * | 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * | ||
18 | ***************************************************************************/ | 18 | ***************************************************************************/ | ||
19 | 19 | | |||
20 | #include "systemmodel.h" | 20 | #include "systemmodel.h" | ||
21 | #include "actionlist.h" | 21 | #include "actionlist.h" | ||
22 | #include "favoritesmodel.h" | 22 | #include "simplefavoritesmodel.h" | ||
23 | #include "systementry.h" | 23 | #include "systementry.h" | ||
24 | 24 | | |||
25 | #include <QStandardPaths> | 25 | #include <QStandardPaths> | ||
26 | 26 | | |||
27 | #include <KDirWatch> | 27 | #include <KDirWatch> | ||
28 | #include <KLocalizedString> | 28 | #include <KLocalizedString> | ||
29 | 29 | | |||
30 | SystemModel::SystemModel(QObject *parent) : AbstractModel(parent) | 30 | SystemModel::SystemModel(QObject *parent) : AbstractModel(parent) | ||
31 | { | 31 | { | ||
32 | init(); | 32 | init(); | ||
33 | 33 | | |||
34 | m_favoritesModel = new FavoritesModel(this); | 34 | m_favoritesModel = new SimpleFavoritesModel(this); | ||
35 | 35 | | |||
36 | const QString configFile = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + "/ksmserverrc"; | 36 | const QString configFile = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + "/ksmserverrc"; | ||
37 | 37 | | |||
38 | KDirWatch *watch = new KDirWatch(this); | 38 | KDirWatch *watch = new KDirWatch(this); | ||
39 | 39 | | |||
40 | watch->addFile(configFile); | 40 | watch->addFile(configFile); | ||
41 | 41 | | |||
42 | connect(watch, &KDirWatch::dirty, this, &SystemModel::refresh); | 42 | connect(watch, &KDirWatch::dirty, this, &SystemModel::refresh); | ||
▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines |