diff options
author | Michele Calgaro <[email protected]> | 2020-06-13 22:45:28 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-06-13 22:45:28 +0900 |
commit | 5f44f7b187093ef290315b7f8766b540a31de35f (patch) | |
tree | 27ffb7b218199ca04f240c390c52426c65f45dce /src/app/adjustSizeButton.h | |
download | codeine-5f44f7b187093ef290315b7f8766b540a31de35f.tar.gz codeine-5f44f7b187093ef290315b7f8766b540a31de35f.zip |
Initial code import from debian snapshot
https://snapshot.debian.org/package/codeine/1.0.1-3.dfsg-3.1/
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/app/adjustSizeButton.h')
-rw-r--r-- | src/app/adjustSizeButton.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/app/adjustSizeButton.h b/src/app/adjustSizeButton.h new file mode 100644 index 0000000..6eed27c --- /dev/null +++ b/src/app/adjustSizeButton.h @@ -0,0 +1,37 @@ +// (C) 2005 Max Howell ([email protected]) +// See COPYING file for licensing information + +#ifndef CODEINE_ADJUST_SIZE_BUTTON_H +#define CODEINE_ADJUST_SIZE_BUTTON_H + +#include <qframe.h> + +namespace Codeine +{ + class AdjustSizeButton : public QFrame + { + int m_counter; + int m_stage; + int m_offset; + int m_timerId; + + QWidget *m_preferred; + QWidget *m_oneToOne; + + QFrame *m_thingy; + + public: + AdjustSizeButton( QWidget *parent ); + + private: + virtual void timerEvent( QTimerEvent* ); + virtual bool eventFilter( QObject*, QEvent* ); + + inline void move() + { + QWidget::move( parentWidget()->width() - width(), parentWidget()->height() - m_offset ); + } + }; +} + +#endif |