mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
Mod doc set style de same
This commit is contained in:
@@ -23,18 +23,18 @@
|
||||
#include <QRect>
|
||||
|
||||
/**
|
||||
* @brief The QWidgetAnimation class
|
||||
* This class animate the show and hide function of a QWidget.
|
||||
@brief The QWidgetAnimation class
|
||||
This class animate the show and hide function of a QWidget.
|
||||
*
|
||||
* The role of @behavior is to calcul as best the animation process when widget is show.
|
||||
* Because this class don't change the current and final size of the widget but her maximum size during the animation process,
|
||||
* we must to know in advance the final size of the widget.
|
||||
* Behavior minimumSizeHint : the final size of the widget will be his minimum size hint.
|
||||
* Behavior availableSpace : the final size of widget will be the available size of her parent.
|
||||
* Since parent can have other widgets you can add a QVector of widget to subtract of the final size.
|
||||
* Because we suppose the animated widget will take the maximum available space, we subtract the minimum size hint of widgets in QVector.
|
||||
* Behavior lastSize : The widget will have the same size as the last time he was showed.
|
||||
*/
|
||||
The role of @behavior is to calcul as best the animation process when widget is show.
|
||||
Because this class don't change the current and final size of the widget but her maximum size during the animation process,
|
||||
we must to know in advance the final size of the widget.
|
||||
Behavior minimumSizeHint : the final size of the widget will be his minimum size hint.
|
||||
Behavior availableSpace : the final size of widget will be the available size of her parent.
|
||||
Since parent can have other widgets you can add a QVector of widget to subtract of the final size.
|
||||
Because we suppose the animated widget will take the maximum available space, we subtract the minimum size hint of widgets in QVector.
|
||||
Behavior lastSize : The widget will have the same size as the last time he was showed.
|
||||
*/
|
||||
class QWidgetAnimation : public QPropertyAnimation
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
Reference in New Issue
Block a user