Changeset View
Changeset View
Standalone View
Standalone View
src/gtkconfigkcmodule.cpp
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Line(s) | 61 | { | |||
---|---|---|---|---|---|
74 | appareance = new AppearenceGTK; | 74 | appareance = new AppearenceGTK; | ||
75 | m_cursorsModel = new CursorThemesModel(this); | 75 | m_cursorsModel = new CursorThemesModel(this); | ||
76 | ui->cb_cursor->setModel(m_cursorsModel); | 76 | ui->cb_cursor->setModel(m_cursorsModel); | ||
77 | m_iconsModel = new IconThemesModel(false, this); | 77 | m_iconsModel = new IconThemesModel(false, this); | ||
78 | ui->cb_icon->setModel(m_iconsModel); | 78 | ui->cb_icon->setModel(m_iconsModel); | ||
79 | ui->cb_icon_fallback->setModel(m_iconsModel); | 79 | ui->cb_icon_fallback->setModel(m_iconsModel); | ||
80 | 80 | | |||
81 | m_tempGtk2Preview = QStandardPaths::writableLocation(QStandardPaths::TempLocation)+ "/gtkrc-2.0"; | 81 | m_tempGtk2Preview = QStandardPaths::writableLocation(QStandardPaths::TempLocation)+ "/gtkrc-2.0"; | ||
82 | m_tempGtk3Preview = QStandardPaths::writableLocation(QStandardPaths::TempLocation)+ ".config/gtk-3.0/settings.ini"; | 82 | m_tempGtk3Preview = QStandardPaths::writableLocation(QStandardPaths::TempLocation)+ "/.config/gtk-3.0/settings.ini"; | ||
83 | 83 | | |||
84 | const QIcon previewIcon = QIcon::fromTheme("document-preview"); | 84 | const QIcon previewIcon = QIcon::fromTheme("document-preview"); | ||
85 | ui->gtk2Preview->setIcon(previewIcon); | 85 | ui->gtk2Preview->setIcon(previewIcon); | ||
86 | ui->gtk3Preview->setIcon(previewIcon); | 86 | ui->gtk3Preview->setIcon(previewIcon); | ||
87 | 87 | | |||
88 | QString gtk2Preview = QStandardPaths::findExecutable("gtk_preview", {CMAKE_INSTALL_FULL_LIBEXECDIR}); | 88 | QString gtk2Preview = QStandardPaths::findExecutable("gtk_preview", {CMAKE_INSTALL_FULL_LIBEXECDIR}); | ||
89 | QString gtk3Preview = QStandardPaths::findExecutable("gtk3_preview", {CMAKE_INSTALL_FULL_LIBEXECDIR}); | 89 | QString gtk3Preview = QStandardPaths::findExecutable("gtk3_preview", {CMAKE_INSTALL_FULL_LIBEXECDIR}); | ||
90 | 90 | | |||
▲ Show 20 Lines • Show All 379 Lines • Show Last 20 Lines |