Drop ClearablePoint
It's unused.
This commit is contained in:
parent
677f5fcb6e
commit
2979a850fa
1 changed files with 0 additions and 27 deletions
27
src/utils.h
27
src/utils.h
|
@ -170,33 +170,6 @@ Qt::MouseButton KWIN_EXPORT x11ToQtMouseButton(int button);
|
|||
Qt::MouseButtons KWIN_EXPORT x11ToQtMouseButtons(int state);
|
||||
Qt::KeyboardModifiers KWIN_EXPORT x11ToQtKeyboardModifiers(int state);
|
||||
|
||||
/**
|
||||
* Separate the concept of an unet QPoint and 0,0
|
||||
*/
|
||||
class ClearablePoint
|
||||
{
|
||||
public:
|
||||
inline bool isValid() const {
|
||||
return m_valid;
|
||||
}
|
||||
|
||||
inline void clear(){
|
||||
m_valid = false;
|
||||
}
|
||||
|
||||
inline void setPoint(const QPoint &point) {
|
||||
m_point = point; m_valid = true;
|
||||
}
|
||||
|
||||
inline QPoint point() const {
|
||||
return m_point;
|
||||
}
|
||||
|
||||
private:
|
||||
QPoint m_point;
|
||||
bool m_valid = false;
|
||||
};
|
||||
|
||||
/**
|
||||
* QProcess subclass which unblocks SIGUSR in the child process.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue