Changeset View
Changeset View
Standalone View
Standalone View
effects/windowgeometry/windowgeometry_config.cpp
Show All 15 Lines | |||||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | 20 | | |||
21 | #include "windowgeometry_config.h" | 21 | #include "windowgeometry_config.h" | ||
22 | // KConfigSkeleton | 22 | // KConfigSkeleton | ||
23 | #include "windowgeometryconfig.h" | 23 | #include "windowgeometryconfig.h" | ||
24 | #include <config-kwin.h> | ||||
24 | #include <kwineffects_interface.h> | 25 | #include <kwineffects_interface.h> | ||
25 | 26 | | |||
26 | #include <QAction> | 27 | #include <QAction> | ||
27 | #include <KActionCollection> | 28 | #include <KActionCollection> | ||
28 | #include <KGlobalAccel> | 29 | #include <KGlobalAccel> | ||
29 | #include <KLocalizedString> | 30 | #include <KLocalizedString> | ||
30 | #include <kconfiggroup.h> | 31 | #include <kconfiggroup.h> | ||
31 | #include <KAboutData> | 32 | #include <KAboutData> | ||
Show All 9 Lines | |||||
41 | WindowGeometryConfigForm::WindowGeometryConfigForm(QWidget* parent) : QWidget(parent) | 42 | WindowGeometryConfigForm::WindowGeometryConfigForm(QWidget* parent) : QWidget(parent) | ||
42 | { | 43 | { | ||
43 | setupUi(this); | 44 | setupUi(this); | ||
44 | } | 45 | } | ||
45 | 46 | | |||
46 | WindowGeometryConfig::WindowGeometryConfig(QWidget* parent, const QVariantList& args) | 47 | WindowGeometryConfig::WindowGeometryConfig(QWidget* parent, const QVariantList& args) | ||
47 | : KCModule(KAboutData::pluginData(QStringLiteral("windowgeometry")), parent, args) | 48 | : KCModule(KAboutData::pluginData(QStringLiteral("windowgeometry")), parent, args) | ||
48 | { | 49 | { | ||
50 | WindowGeometryConfiguration::instance(KWIN_CONFIG); | ||||
49 | QVBoxLayout* layout = new QVBoxLayout(this); | 51 | QVBoxLayout* layout = new QVBoxLayout(this); | ||
50 | layout->addWidget(myUi = new WindowGeometryConfigForm(this)); | 52 | layout->addWidget(myUi = new WindowGeometryConfigForm(this)); | ||
51 | 53 | | |||
52 | // Shortcut config. The shortcut belongs to the component "kwin"! | 54 | // Shortcut config. The shortcut belongs to the component "kwin"! | ||
53 | myActionCollection = new KActionCollection(this, QStringLiteral("kwin")); | 55 | myActionCollection = new KActionCollection(this, QStringLiteral("kwin")); | ||
54 | myActionCollection->setComponentDisplayName(i18n("KWin")); | 56 | myActionCollection->setComponentDisplayName(i18n("KWin")); | ||
55 | QAction* a = myActionCollection->addAction(QStringLiteral("WindowGeometry")); | 57 | QAction* a = myActionCollection->addAction(QStringLiteral("WindowGeometry")); | ||
56 | a->setText(i18n("Toggle KWin composited geometry display")); | 58 | a->setText(i18n("Toggle KWin composited geometry display")); | ||
Show All 37 Lines |