Use Q_SLOTS and Q_SIGNALS instead of slots and signals
Fixes compilation with Qt5/KF5 setup.
This commit is contained in:
parent
7d25f2a858
commit
1d2c2d5982
56 changed files with 75 additions and 76 deletions
8
client.h
8
client.h
|
@ -647,11 +647,11 @@ public:
|
||||||
template <typename T>
|
template <typename T>
|
||||||
void print(T &stream) const;
|
void print(T &stream) const;
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
void closeWindow();
|
void closeWindow();
|
||||||
void updateCaption();
|
void updateCaption();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void autoRaise();
|
void autoRaise();
|
||||||
void shadeHover();
|
void shadeHover();
|
||||||
void shadeUnhover();
|
void shadeUnhover();
|
||||||
|
@ -696,7 +696,7 @@ protected:
|
||||||
virtual void debug(QDebug& stream) const;
|
virtual void debug(QDebug& stream) const;
|
||||||
virtual bool shouldUnredirect() const;
|
virtual bool shouldUnredirect() const;
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void delayedSetShortcut();
|
void delayedSetShortcut();
|
||||||
void performMoveResize();
|
void performMoveResize();
|
||||||
void removeSyncSupport();
|
void removeSyncSupport();
|
||||||
|
@ -706,7 +706,7 @@ private slots:
|
||||||
//Signals make an excellent way for communication
|
//Signals make an excellent way for communication
|
||||||
//in between objects as compared to simple function
|
//in between objects as compared to simple function
|
||||||
//calls
|
//calls
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void clientManaging(KWin::Client*);
|
void clientManaging(KWin::Client*);
|
||||||
void clientFullScreenSet(KWin::Client*, bool, bool);
|
void clientFullScreenSet(KWin::Client*, bool, bool);
|
||||||
void clientMaximizedStateChanged(KWin::Client*, KDecorationDefines::MaximizeMode);
|
void clientMaximizedStateChanged(KWin::Client*, KDecorationDefines::MaximizeMode);
|
||||||
|
|
|
@ -45,7 +45,7 @@ public:
|
||||||
private:
|
private:
|
||||||
friend class Compositor;
|
friend class Compositor;
|
||||||
bool owning;
|
bool owning;
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void looseOwnership();
|
void looseOwnership();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
2
cursor.h
2
cursor.h
|
@ -189,7 +189,7 @@ protected:
|
||||||
virtual void doStartCursorTracking();
|
virtual void doStartCursorTracking();
|
||||||
virtual void doStopCursorTracking();
|
virtual void doStopCursorTracking();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
/**
|
/**
|
||||||
* Because of QTimer's and the impossibility to get events for all mouse
|
* Because of QTimer's and the impossibility to get events for all mouse
|
||||||
* movements (at least I haven't figured out how) the position needs
|
* movements (at least I haven't figured out how) the position needs
|
||||||
|
|
|
@ -42,7 +42,7 @@ class CoverSwitchEffectConfig : public KCModule
|
||||||
public:
|
public:
|
||||||
explicit CoverSwitchEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
explicit CoverSwitchEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
virtual void save();
|
virtual void save();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -125,7 +125,7 @@ public:
|
||||||
bool isTexturedCaps() const {
|
bool isTexturedCaps() const {
|
||||||
return texturedCaps;
|
return texturedCaps;
|
||||||
}
|
}
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void toggleCube();
|
void toggleCube();
|
||||||
void toggleCylinder();
|
void toggleCylinder();
|
||||||
void toggleSphere();
|
void toggleSphere();
|
||||||
|
|
|
@ -42,10 +42,10 @@ class CubeEffectConfig : public KCModule
|
||||||
public:
|
public:
|
||||||
explicit CubeEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
explicit CubeEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
virtual void save();
|
virtual void save();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void capsSelectionChanged();
|
void capsSelectionChanged();
|
||||||
private:
|
private:
|
||||||
CubeEffectConfigForm* m_ui;
|
CubeEffectConfigForm* m_ui;
|
||||||
|
|
|
@ -42,7 +42,7 @@ class CubeSlideEffectConfig : public KCModule
|
||||||
public:
|
public:
|
||||||
explicit CubeSlideEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
explicit CubeSlideEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
virtual void save();
|
virtual void save();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -92,7 +92,7 @@ public:
|
||||||
bool isUsePresentWindows() const {
|
bool isUsePresentWindows() const {
|
||||||
return m_usePresentWindows;
|
return m_usePresentWindows;
|
||||||
}
|
}
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void toggle();
|
void toggle();
|
||||||
// slots for global shortcut changed
|
// slots for global shortcut changed
|
||||||
// needed to toggle the effect
|
// needed to toggle the effect
|
||||||
|
|
|
@ -44,12 +44,12 @@ public:
|
||||||
explicit DesktopGridEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
explicit DesktopGridEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
||||||
~DesktopGridEffectConfig();
|
~DesktopGridEffectConfig();
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
virtual void save();
|
virtual void save();
|
||||||
virtual void load();
|
virtual void load();
|
||||||
virtual void defaults();
|
virtual void defaults();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void layoutSelectionChanged();
|
void layoutSelectionChanged();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -44,7 +44,7 @@ public:
|
||||||
explicit FlipSwitchEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
explicit FlipSwitchEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
||||||
~FlipSwitchEffectConfig();
|
~FlipSwitchEffectConfig();
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
virtual void save();
|
virtual void save();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -49,7 +49,7 @@ public:
|
||||||
|
|
||||||
static bool supported();
|
static bool supported();
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
void toggleScreenInversion();
|
void toggleScreenInversion();
|
||||||
void toggleWindow();
|
void toggleWindow();
|
||||||
void slotWindowClosed(KWin::EffectWindow *w);
|
void slotWindowClosed(KWin::EffectWindow *w);
|
||||||
|
|
|
@ -35,7 +35,7 @@ public:
|
||||||
explicit InvertEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
explicit InvertEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
||||||
~InvertEffectConfig();
|
~InvertEffectConfig();
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
virtual void save();
|
virtual void save();
|
||||||
virtual void load();
|
virtual void load();
|
||||||
virtual void defaults();
|
virtual void defaults();
|
||||||
|
|
|
@ -57,7 +57,7 @@ public:
|
||||||
int initialRadius() const {
|
int initialRadius() const {
|
||||||
return initialradius;
|
return initialradius;
|
||||||
}
|
}
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
void toggle();
|
void toggle();
|
||||||
void zoomIn();
|
void zoomIn();
|
||||||
void zoomOut();
|
void zoomOut();
|
||||||
|
|
|
@ -42,7 +42,7 @@ class MagicLampEffectConfig : public KCModule
|
||||||
public:
|
public:
|
||||||
explicit MagicLampEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
explicit MagicLampEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
virtual void save();
|
virtual void save();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -54,7 +54,7 @@ public:
|
||||||
qreal targetZoom() const {
|
qreal targetZoom() const {
|
||||||
return target_zoom;
|
return target_zoom;
|
||||||
}
|
}
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void zoomIn();
|
void zoomIn();
|
||||||
void zoomOut();
|
void zoomOut();
|
||||||
void toggle();
|
void toggle();
|
||||||
|
|
|
@ -139,7 +139,7 @@ public:
|
||||||
return m_enabled;
|
return m_enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void toggleEnabled();
|
void toggleEnabled();
|
||||||
void slotMouseChanged(const QPoint& pos, const QPoint& old,
|
void slotMouseChanged(const QPoint& pos, const QPoint& old,
|
||||||
Qt::MouseButtons buttons, Qt::MouseButtons oldbuttons,
|
Qt::MouseButtons buttons, Qt::MouseButtons oldbuttons,
|
||||||
|
|
|
@ -50,7 +50,7 @@ public:
|
||||||
QColor configuredColor() const {
|
QColor configuredColor() const {
|
||||||
return color;
|
return color;
|
||||||
}
|
}
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void clear();
|
void clear();
|
||||||
void clearLast();
|
void clearLast();
|
||||||
void slotMouseChanged(const QPoint& pos, const QPoint& old,
|
void slotMouseChanged(const QPoint& pos, const QPoint& old,
|
||||||
|
|
|
@ -39,7 +39,7 @@ public:
|
||||||
explicit CloseWindowView(QWidget *parent = 0);
|
explicit CloseWindowView(QWidget *parent = 0);
|
||||||
void windowInputMouseEvent(QMouseEvent* e);
|
void windowInputMouseEvent(QMouseEvent* e);
|
||||||
void disarm();
|
void disarm();
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
void arm();
|
void arm();
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
|
@ -185,7 +185,7 @@ public:
|
||||||
bool isDragToClose() const {
|
bool isDragToClose() const {
|
||||||
return m_dragToClose;
|
return m_dragToClose;
|
||||||
}
|
}
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
void setActive(bool active);
|
void setActive(bool active);
|
||||||
void toggleActive() {
|
void toggleActive() {
|
||||||
m_mode = ModeCurrentDesktop;
|
m_mode = ModeCurrentDesktop;
|
||||||
|
@ -210,7 +210,7 @@ public slots:
|
||||||
// atoms
|
// atoms
|
||||||
void slotPropertyNotify(KWin::EffectWindow* w, long atom);
|
void slotPropertyNotify(KWin::EffectWindow* w, long atom);
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void closeWindow();
|
void closeWindow();
|
||||||
void elevateCloseWindow();
|
void elevateCloseWindow();
|
||||||
void screenCountChanged();
|
void screenCountChanged();
|
||||||
|
|
|
@ -44,7 +44,7 @@ public:
|
||||||
explicit PresentWindowsEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
explicit PresentWindowsEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
||||||
~PresentWindowsEffectConfig();
|
~PresentWindowsEffectConfig();
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
virtual void save();
|
virtual void save();
|
||||||
virtual void defaults();
|
virtual void defaults();
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ class ResizeEffectConfig : public KCModule
|
||||||
public:
|
public:
|
||||||
explicit ResizeEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
explicit ResizeEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
virtual void save();
|
virtual void save();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -74,7 +74,7 @@ public Q_SLOTS:
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
Q_SCRIPTABLE void screenshotCreated(qulonglong handle);
|
Q_SCRIPTABLE void screenshotCreated(qulonglong handle);
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void windowClosed( KWin::EffectWindow* w );
|
void windowClosed( KWin::EffectWindow* w );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -35,7 +35,7 @@ public:
|
||||||
explicit ShowFpsEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
explicit ShowFpsEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
||||||
~ShowFpsEffectConfig();
|
~ShowFpsEffectConfig();
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
virtual void save();
|
virtual void save();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -62,7 +62,7 @@ public:
|
||||||
int configuredScreen() const {
|
int configuredScreen() const {
|
||||||
return screen;
|
return screen;
|
||||||
}
|
}
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void toggleCurrentThumbnail();
|
void toggleCurrentThumbnail();
|
||||||
void slotWindowClosed(KWin::EffectWindow *w);
|
void slotWindowClosed(KWin::EffectWindow *w);
|
||||||
void slotWindowGeometryShapeChanged(KWin::EffectWindow *w, const QRect &old);
|
void slotWindowGeometryShapeChanged(KWin::EffectWindow *w, const QRect &old);
|
||||||
|
|
|
@ -52,7 +52,7 @@ public:
|
||||||
bool isMousePolling() const {
|
bool isMousePolling() const {
|
||||||
return m_mousePolling;
|
return m_mousePolling;
|
||||||
}
|
}
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void toggle();
|
void toggle();
|
||||||
void slotMouseChanged(const QPoint& pos, const QPoint& old,
|
void slotMouseChanged(const QPoint& pos, const QPoint& old,
|
||||||
Qt::MouseButtons buttons, Qt::MouseButtons oldbuttons,
|
Qt::MouseButtons buttons, Qt::MouseButtons oldbuttons,
|
||||||
|
|
|
@ -46,11 +46,11 @@ public:
|
||||||
explicit TrackMouseEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
explicit TrackMouseEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
||||||
~TrackMouseEffectConfig();
|
~TrackMouseEffectConfig();
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
virtual void save();
|
virtual void save();
|
||||||
virtual void load();
|
virtual void load();
|
||||||
virtual void defaults();
|
virtual void defaults();
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void shortcutChanged(const QKeySequence &seq);
|
void shortcutChanged(const QKeySequence &seq);
|
||||||
private:
|
private:
|
||||||
void checkModifiers();
|
void checkModifiers();
|
||||||
|
|
|
@ -49,7 +49,7 @@ public:
|
||||||
bool isHandlesResizes() const {
|
bool isHandlesResizes() const {
|
||||||
return iHandleResizes;
|
return iHandleResizes;
|
||||||
}
|
}
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void toggle();
|
void toggle();
|
||||||
void slotWindowStartUserMovedResized(KWin::EffectWindow *w);
|
void slotWindowStartUserMovedResized(KWin::EffectWindow *w);
|
||||||
void slotWindowFinishUserMovedResized(KWin::EffectWindow *w);
|
void slotWindowFinishUserMovedResized(KWin::EffectWindow *w);
|
||||||
|
|
|
@ -43,7 +43,7 @@ public:
|
||||||
explicit WindowGeometryConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
explicit WindowGeometryConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
||||||
~WindowGeometryConfig();
|
~WindowGeometryConfig();
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
void save();
|
void save();
|
||||||
void defaults();
|
void defaults();
|
||||||
|
|
||||||
|
|
|
@ -38,10 +38,10 @@ public:
|
||||||
explicit WobblyWindowsEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
explicit WobblyWindowsEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
||||||
~WobblyWindowsEffectConfig();
|
~WobblyWindowsEffectConfig();
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
virtual void save();
|
virtual void save();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void wobblinessChanged();
|
void wobblinessChanged();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -77,7 +77,7 @@ public:
|
||||||
qreal targetZoom() const {
|
qreal targetZoom() const {
|
||||||
return target_zoom;
|
return target_zoom;
|
||||||
}
|
}
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
inline void zoomIn() { zoomIn(-1.0); };
|
inline void zoomIn() { zoomIn(-1.0); };
|
||||||
void zoomIn(double to);
|
void zoomIn(double to);
|
||||||
void zoomOut();
|
void zoomOut();
|
||||||
|
|
|
@ -44,7 +44,7 @@ public:
|
||||||
explicit ZoomEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
explicit ZoomEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
|
||||||
virtual ~ZoomEffectConfig();
|
virtual ~ZoomEffectConfig();
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
virtual void save();
|
virtual void save();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -165,7 +165,7 @@ public:
|
||||||
**/
|
**/
|
||||||
Client *firstMostRecentlyUsed() const;
|
Client *firstMostRecentlyUsed() const;
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
/**
|
/**
|
||||||
* @brief Resizes the per virtual desktop focus chains from @p previousSize to @p newSize.
|
* @brief Resizes the per virtual desktop focus chains from @p previousSize to @p newSize.
|
||||||
* This means that for each virtual desktop between previous and new size a new focus chain is
|
* This means that for each virtual desktop between previous and new size a new focus chain is
|
||||||
|
|
|
@ -74,7 +74,7 @@ public:
|
||||||
*/
|
*/
|
||||||
bool isEnabled() const;
|
bool isEnabled() const;
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
/**
|
/**
|
||||||
* Enables or disables color correction. Compositing should be restarted
|
* Enables or disables color correction. Compositing should be restarted
|
||||||
* for changes to take effect.
|
* for changes to take effect.
|
||||||
|
@ -83,7 +83,7 @@ public slots:
|
||||||
*/
|
*/
|
||||||
bool setEnabled(bool enabled);
|
bool setEnabled(bool enabled);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
/**
|
/**
|
||||||
* Emitted when some changes happened to the color correction settings, and
|
* Emitted when some changes happened to the color correction settings, and
|
||||||
* a full repaint of the scene should be done to make the new settings visible.
|
* a full repaint of the scene should be done to make the new settings visible.
|
||||||
|
|
|
@ -85,7 +85,7 @@ public:
|
||||||
bool deleteCCTextures();
|
bool deleteCCTextures();
|
||||||
static bool setupCCTexture(GLuint texture, const Clut &clut);
|
static bool setupCCTexture(GLuint texture, const Clut &clut);
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
void colorServerUpdateSucceededSlot();
|
void colorServerUpdateSucceededSlot();
|
||||||
void colorServerUpdateFailedSlot();
|
void colorServerUpdateFailedSlot();
|
||||||
|
|
||||||
|
@ -131,10 +131,10 @@ public:
|
||||||
const ClutList& outputCluts() const;
|
const ClutList& outputCluts() const;
|
||||||
const RegionalClutMap& regionCluts() const;
|
const RegionalClutMap& regionCluts() const;
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
void update();
|
void update();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void updateSucceeded();
|
void updateSucceeded();
|
||||||
void updateFailed();
|
void updateFailed();
|
||||||
void outputClutsChanged();
|
void outputClutsChanged();
|
||||||
|
@ -145,7 +145,7 @@ private:
|
||||||
QDBusPendingReply< ClutList > getOutputCluts();
|
QDBusPendingReply< ClutList > getOutputCluts();
|
||||||
QDBusPendingReply< RegionalClutMap > getRegionCluts();
|
QDBusPendingReply< RegionalClutMap > getRegionCluts();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void callFinishedSlot(QDBusPendingCallWatcher *watcher);
|
void callFinishedSlot(QDBusPendingCallWatcher *watcher);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
2
main.h
2
main.h
|
@ -55,7 +55,7 @@ protected:
|
||||||
bool notify(QObject* o, QEvent* e);
|
bool notify(QObject* o, QEvent* e);
|
||||||
static void crashHandler(int signal);
|
static void crashHandler(int signal);
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void lostSelection();
|
void lostSelection();
|
||||||
void resetCrashesCount();
|
void resetCrashesCount();
|
||||||
|
|
||||||
|
|
|
@ -86,7 +86,7 @@ public:
|
||||||
void reparent(Deleted *d);
|
void reparent(Deleted *d);
|
||||||
static PaintRedirector *create(Client *c, QWidget* widget);
|
static PaintRedirector *create(Client *c, QWidget* widget);
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
void ensurePixmapsPainted();
|
void ensurePixmapsPainted();
|
||||||
protected:
|
protected:
|
||||||
PaintRedirector(Client *c, QWidget* widget);
|
PaintRedirector(Client *c, QWidget* widget);
|
||||||
|
|
|
@ -45,7 +45,7 @@ public:
|
||||||
GenericScriptedConfig(const KComponentData &data, const QString &keyword, QWidget *parent, const QVariantList &args);
|
GenericScriptedConfig(const KComponentData &data, const QString &keyword, QWidget *parent, const QVariantList &args);
|
||||||
virtual ~GenericScriptedConfig();
|
virtual ~GenericScriptedConfig();
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
virtual void save();
|
virtual void save();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
|
@ -234,7 +234,7 @@ public Q_SLOTS:
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
Q_SCRIPTABLE void printError(const QString &text);
|
Q_SCRIPTABLE void printError(const QString &text);
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
/**
|
/**
|
||||||
* A nice clean way to handle exceptions in scripting.
|
* A nice clean way to handle exceptions in scripting.
|
||||||
* TODO: Log to file, show from notifier..
|
* TODO: Log to file, show from notifier..
|
||||||
|
|
|
@ -71,7 +71,7 @@ class WorkspaceWrapper : public QObject
|
||||||
private:
|
private:
|
||||||
Q_DISABLE_COPY(WorkspaceWrapper)
|
Q_DISABLE_COPY(WorkspaceWrapper)
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void desktopPresenceChanged(KWin::Client *client, int desktop);
|
void desktopPresenceChanged(KWin::Client *client, int desktop);
|
||||||
void currentDesktopChanged(int desktop, KWin::Client *client);
|
void currentDesktopChanged(int desktop, KWin::Client *client);
|
||||||
void clientAdded(KWin::Client *client);
|
void clientAdded(KWin::Client *client);
|
||||||
|
|
2
sm.h
2
sm.h
|
@ -91,7 +91,7 @@ public:
|
||||||
}
|
}
|
||||||
void saveDone();
|
void saveDone();
|
||||||
void close();
|
void close();
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void processData();
|
void processData();
|
||||||
private:
|
private:
|
||||||
QSocketNotifier* notifier;
|
QSocketNotifier* notifier;
|
||||||
|
|
|
@ -99,7 +99,7 @@ public:
|
||||||
**/
|
**/
|
||||||
uint next(uint indexDesktop) const;
|
uint next(uint indexDesktop) const;
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
/**
|
/**
|
||||||
* Adds the @p currentDesktop to the currently used desktop chain.
|
* Adds the @p currentDesktop to the currently used desktop chain.
|
||||||
* @param previousDesktop The previously used desktop, should be the top element of the chain
|
* @param previousDesktop The previously used desktop, should be the top element of the chain
|
||||||
|
|
|
@ -175,7 +175,7 @@ public:
|
||||||
static TabBox *self();
|
static TabBox *self();
|
||||||
static TabBox *create(QObject *parent);
|
static TabBox *create(QObject *parent);
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
void show();
|
void show();
|
||||||
/**
|
/**
|
||||||
* Only for DBus Interface to start primary KDE Walk through windows.
|
* Only for DBus Interface to start primary KDE Walk through windows.
|
||||||
|
@ -236,7 +236,7 @@ public slots:
|
||||||
|
|
||||||
bool toggle(ElectricBorder eb);
|
bool toggle(ElectricBorder eb);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void tabBoxAdded(int);
|
void tabBoxAdded(int);
|
||||||
Q_SCRIPTABLE void tabBoxClosed();
|
Q_SCRIPTABLE void tabBoxClosed();
|
||||||
Q_SCRIPTABLE void itemSelected();
|
Q_SCRIPTABLE void itemSelected();
|
||||||
|
|
|
@ -335,7 +335,7 @@ public:
|
||||||
Qt::Alignment embeddedAlignment() const;
|
Qt::Alignment embeddedAlignment() const;
|
||||||
void resetEmbedded();
|
void resetEmbedded();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
/**
|
/**
|
||||||
* This signal is fired when the TabBoxConfig changes
|
* This signal is fired when the TabBoxConfig changes
|
||||||
* @see setConfig
|
* @see setConfig
|
||||||
|
@ -344,7 +344,7 @@ signals:
|
||||||
void embeddedChanged(bool enabled);
|
void embeddedChanged(bool enabled);
|
||||||
void selectedIndexChanged();
|
void selectedIndexChanged();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void updateHighlightWindows();
|
void updateHighlightWindows();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -28,7 +28,7 @@ using namespace KWin::TabBox;
|
||||||
class TestDesktopChain : public QObject
|
class TestDesktopChain : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void chainInit_data();
|
void chainInit_data();
|
||||||
void chainInit();
|
void chainInit();
|
||||||
void chainAdd_data();
|
void chainAdd_data();
|
||||||
|
|
|
@ -25,7 +25,7 @@ using namespace KWin::TabBox;
|
||||||
class TestTabBoxConfig : public QObject
|
class TestTabBoxConfig : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void testDefaultCtor();
|
void testDefaultCtor();
|
||||||
void testAssignmentOperator();
|
void testAssignmentOperator();
|
||||||
};
|
};
|
||||||
|
|
|
@ -146,7 +146,7 @@ public:
|
||||||
*/
|
*/
|
||||||
void updateMinMaxSize();
|
void updateMinMaxSize();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void minSizeChanged();
|
void minSizeChanged();
|
||||||
void maxSizeChanged();
|
void maxSizeChanged();
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ using namespace KWin;
|
||||||
class TestClientMachine : public QObject
|
class TestClientMachine : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void initTestCase();
|
void initTestCase();
|
||||||
void cleanupTestCase();
|
void cleanupTestCase();
|
||||||
void hostName_data();
|
void hostName_data();
|
||||||
|
|
|
@ -30,7 +30,7 @@ using namespace KWin;
|
||||||
class TestScreenPaintData : public QObject
|
class TestScreenPaintData : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
|
|
||||||
void testCtor();
|
void testCtor();
|
||||||
void testCopyCtor();
|
void testCopyCtor();
|
||||||
|
|
|
@ -27,7 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
class TestUpdateKWin49 : public QObject
|
class TestUpdateKWin49 : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
/**
|
/**
|
||||||
* Tests that migrating the Present Windows TabBox settings
|
* Tests that migrating the Present Windows TabBox settings
|
||||||
* does not affect an empty configuration.
|
* does not affect an empty configuration.
|
||||||
|
|
|
@ -38,7 +38,7 @@ using namespace KWin;
|
||||||
class TestVirtualDesktops : public QObject
|
class TestVirtualDesktops : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void init();
|
void init();
|
||||||
void cleanup();
|
void cleanup();
|
||||||
void count_data();
|
void count_data();
|
||||||
|
|
|
@ -161,7 +161,7 @@ void MockEffectWindow::unrefWindow()
|
||||||
class TestWindowPaintData : public QObject
|
class TestWindowPaintData : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void testCtor();
|
void testCtor();
|
||||||
void testCopyCtor();
|
void testCopyCtor();
|
||||||
void testOperatorMultiplyAssign();
|
void testOperatorMultiplyAssign();
|
||||||
|
|
|
@ -31,7 +31,7 @@ using namespace KWin;
|
||||||
class TestXcbWindow : public QObject
|
class TestXcbWindow : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void defaultCtor();
|
void defaultCtor();
|
||||||
void ctor();
|
void ctor();
|
||||||
void classCtor();
|
void classCtor();
|
||||||
|
|
|
@ -32,7 +32,7 @@ using namespace KWin::Xcb;
|
||||||
class TestXcbWrapper : public QObject
|
class TestXcbWrapper : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void init();
|
void init();
|
||||||
void cleanup();
|
void cleanup();
|
||||||
void defaultCtor();
|
void defaultCtor();
|
||||||
|
|
|
@ -306,7 +306,7 @@ public:
|
||||||
*/
|
*/
|
||||||
void getDamageRegionReply();
|
void getDamageRegionReply();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void opacityChanged(KWin::Toplevel* toplevel, qreal oldOpacity);
|
void opacityChanged(KWin::Toplevel* toplevel, qreal oldOpacity);
|
||||||
void damaged(KWin::Toplevel* toplevel, const QRect& damage);
|
void damaged(KWin::Toplevel* toplevel, const QRect& damage);
|
||||||
void propertyNotify(KWin::Toplevel* toplevel, long a);
|
void propertyNotify(KWin::Toplevel* toplevel, long a);
|
||||||
|
|
|
@ -95,7 +95,7 @@ public:
|
||||||
**/
|
**/
|
||||||
void show(const QRect &pos, const QWeakPointer<Client> &client);
|
void show(const QRect &pos, const QWeakPointer<Client> &client);
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
/**
|
/**
|
||||||
* Delayed initialization of the activity menu.
|
* Delayed initialization of the activity menu.
|
||||||
*
|
*
|
||||||
|
@ -107,7 +107,7 @@ public slots:
|
||||||
**/
|
**/
|
||||||
void showHideActivityMenu();
|
void showHideActivityMenu();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
/**
|
/**
|
||||||
* The menu will become visible soon.
|
* The menu will become visible soon.
|
||||||
*
|
*
|
||||||
|
@ -270,7 +270,7 @@ public:
|
||||||
QKeySequence shortcut() const;
|
QKeySequence shortcut() const;
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
void keySequenceChanged(const QKeySequence &seq);
|
void keySequenceChanged(const QKeySequence &seq);
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void dialogDone(bool ok);
|
void dialogDone(bool ok);
|
||||||
protected:
|
protected:
|
||||||
virtual void done(int r);
|
virtual void done(int r);
|
||||||
|
|
|
@ -185,7 +185,7 @@ public:
|
||||||
*/
|
*/
|
||||||
static uint maximum();
|
static uint maximum();
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
/**
|
/**
|
||||||
* Set the number of available desktops to @a count. This function overrides any previous
|
* Set the number of available desktops to @a count. This function overrides any previous
|
||||||
* grid layout.
|
* grid layout.
|
||||||
|
@ -267,7 +267,7 @@ Q_SIGNALS:
|
||||||
**/
|
**/
|
||||||
void navigationWrappingAroundChanged();
|
void navigationWrappingAroundChanged();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
/**
|
/**
|
||||||
* Common slot for all "Switch to Desktop n" shortcuts.
|
* Common slot for all "Switch to Desktop n" shortcuts.
|
||||||
* This method uses the sender() method to access some data.
|
* This method uses the sender() method to access some data.
|
||||||
|
|
|
@ -294,7 +294,7 @@ public:
|
||||||
**/
|
**/
|
||||||
bool compositing() const;
|
bool compositing() const;
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
// Keybindings
|
// Keybindings
|
||||||
//void slotSwitchToWindow( int );
|
//void slotSwitchToWindow( int );
|
||||||
void slotWindowToDesktop();
|
void slotWindowToDesktop();
|
||||||
|
@ -375,7 +375,7 @@ public slots:
|
||||||
void slotActivatePrevTab(); // Slot to move right the active Client.
|
void slotActivatePrevTab(); // Slot to move right the active Client.
|
||||||
void slotUntab(); // Slot to remove the active client from its group.
|
void slotUntab(); // Slot to remove the active client from its group.
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void desktopResized();
|
void desktopResized();
|
||||||
void slotUpdateToolWindows();
|
void slotUpdateToolWindows();
|
||||||
void delayFocus();
|
void delayFocus();
|
||||||
|
@ -395,7 +395,6 @@ Q_SIGNALS:
|
||||||
void workspaceInitialized();
|
void workspaceInitialized();
|
||||||
|
|
||||||
//Signals required for the scripting interface
|
//Signals required for the scripting interface
|
||||||
signals:
|
|
||||||
void desktopPresenceChanged(KWin::Client*, int);
|
void desktopPresenceChanged(KWin::Client*, int);
|
||||||
void currentDesktopChanged(int, KWin::Client*);
|
void currentDesktopChanged(int, KWin::Client*);
|
||||||
void clientAdded(KWin::Client*);
|
void clientAdded(KWin::Client*);
|
||||||
|
|
Loading…
Reference in a new issue