You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
747 B
38 lines
747 B
4 years ago
|
// (C) 2005 Max Howell (max.howell@methylblue.com)
|
||
|
// 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
|