File indexing completed on 2024-05-12 08:20:31
0001 // SPDX-FileCopyrightText: 2003-2010 Jesper K. Pedersen <blackie@kde.org> 0002 // SPDX-FileCopyrightText: 2022 Johannes Zarl-Zierl <johannes@zarl-zierl.at> 0003 // 0004 // SPDX-License-Identifier: GPL-2.0-or-later 0005 0006 #ifndef INFOBOXRESIZER_H 0007 #define INFOBOXRESIZER_H 0008 0009 #include <QPoint> 0010 namespace Viewer 0011 { 0012 class InfoBox; 0013 } 0014 0015 namespace Viewer 0016 { 0017 0018 class InfoBoxResizer 0019 { 0020 public: 0021 explicit InfoBoxResizer(Viewer::InfoBox *infoBox); 0022 void setup(bool left, bool right, bool top, bool bottom); 0023 void setPos(QPoint pos); 0024 void deactivate(); 0025 bool isActive() const; 0026 0027 private: 0028 InfoBox *m_infoBox; 0029 bool m_left = false; 0030 bool m_right = false; 0031 bool m_top = false; 0032 bool m_bottom = false; 0033 bool m_active = false; 0034 }; 0035 0036 } 0037 0038 #endif /* INFOBOXRESIZER_H */ 0039 0040 // vi:expandtab:tabstop=4 shiftwidth=4: