Changeset View
Changeset View
Standalone View
Standalone View
effects/windowgeometry/windowgeometry.cpp
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 47 | #define myCoordString_1 "Window geometry display, %1 and %2 are the cartesian x and y coordinates," \ | |||
---|---|---|---|---|---|
51 | QAction* a = new QAction(this); | 51 | QAction* a = new QAction(this); | ||
52 | a->setObjectName(QStringLiteral("WindowGeometry")); | 52 | a->setObjectName(QStringLiteral("WindowGeometry")); | ||
53 | a->setText(i18n("Toggle window geometry display (effect only)")); | 53 | a->setText(i18n("Toggle window geometry display (effect only)")); | ||
54 | 54 | | |||
55 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::CTRL + Qt::SHIFT + Qt::Key_F11); | 55 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::CTRL + Qt::SHIFT + Qt::Key_F11); | ||
56 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::CTRL + Qt::SHIFT + Qt::Key_F11); | 56 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::CTRL + Qt::SHIFT + Qt::Key_F11); | ||
57 | effects->registerGlobalShortcut(Qt::CTRL + Qt::SHIFT + Qt::Key_F11, a); | 57 | effects->registerGlobalShortcut(Qt::CTRL + Qt::SHIFT + Qt::Key_F11, a); | ||
58 | 58 | | |||
59 | connect(a, SIGNAL(triggered(bool)), this, SLOT(toggle())); | 59 | connect(a, &QAction::triggered, this, &WindowGeometry::toggle); | ||
60 | 60 | | |||
61 | connect(effects, SIGNAL(windowStartUserMovedResized(KWin::EffectWindow*)), this, SLOT(slotWindowStartUserMovedResized(KWin::EffectWindow*))); | 61 | connect(effects, &EffectsHandler::windowStartUserMovedResized, this, &WindowGeometry::slotWindowStartUserMovedResized); | ||
62 | connect(effects, SIGNAL(windowFinishUserMovedResized(KWin::EffectWindow*)), this, SLOT(slotWindowFinishUserMovedResized(KWin::EffectWindow*))); | 62 | connect(effects, &EffectsHandler::windowFinishUserMovedResized, this, &WindowGeometry::slotWindowFinishUserMovedResized); | ||
63 | connect(effects, SIGNAL(windowStepUserMovedResized(KWin::EffectWindow*,QRect)), this, SLOT(slotWindowStepUserMovedResized(KWin::EffectWindow*,QRect))); | 63 | connect(effects, &EffectsHandler::windowStepUserMovedResized, this, &WindowGeometry::slotWindowStepUserMovedResized); | ||
64 | } | 64 | } | ||
65 | 65 | | |||
66 | WindowGeometry::~WindowGeometry() | 66 | WindowGeometry::~WindowGeometry() | ||
67 | { | 67 | { | ||
68 | for (int i = 0; i < 3; ++i) | 68 | for (int i = 0; i < 3; ++i) | ||
69 | delete myMeasure[i]; | 69 | delete myMeasure[i]; | ||
70 | } | 70 | } | ||
71 | 71 | | |||
▲ Show 20 Lines • Show All 166 Lines • Show Last 20 Lines |