mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-08 14:49:58 +01:00
Mod doc set style de same
This commit is contained in:
@@ -19,11 +19,11 @@
|
||||
#include <QWidget>
|
||||
|
||||
/**
|
||||
* @brief QWidgetAnimation::QWidgetAnimation
|
||||
* @param widget : widget to animate
|
||||
* @param orientation : animate widget horizontally or vertically
|
||||
* @param duration : the duration of animation @see void QVariantAnimation::setDuration(int msecs)
|
||||
*/
|
||||
@brief QWidgetAnimation::QWidgetAnimation
|
||||
@param widget : widget to animate
|
||||
@param orientation : animate widget horizontally or vertically
|
||||
@param duration : the duration of animation @see void QVariantAnimation::setDuration(int msecs)
|
||||
*/
|
||||
QWidgetAnimation::QWidgetAnimation(QWidget *widget, Qt::Orientation orientation, QWidgetAnimation::Behavior behavior, int duration) :
|
||||
QPropertyAnimation(widget),
|
||||
m_orientation(orientation),
|
||||
@@ -51,10 +51,10 @@ QWidgetAnimation::QWidgetAnimation(QWidget *widget, Qt::Orientation orientation,
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief QWidgetAnimation::widgetToSubtract
|
||||
* Widget to subtract the size when the behavior is availableSpace
|
||||
* @param widgets
|
||||
*/
|
||||
@brief QWidgetAnimation::widgetToSubtract
|
||||
Widget to subtract the size when the behavior is availableSpace
|
||||
@param widgets
|
||||
*/
|
||||
void QWidgetAnimation::widgetToSubtract(QVector<QWidget *> widgets)
|
||||
{
|
||||
m_widget_to_substract.clear();
|
||||
@@ -62,9 +62,9 @@ void QWidgetAnimation::widgetToSubtract(QVector<QWidget *> widgets)
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief QWidgetAnimation::show
|
||||
* show the widget
|
||||
*/
|
||||
@brief QWidgetAnimation::show
|
||||
show the widget
|
||||
*/
|
||||
void QWidgetAnimation::show()
|
||||
{
|
||||
if (m_state == QWidgetAnimation::Showing)
|
||||
@@ -113,9 +113,9 @@ void QWidgetAnimation::show()
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief QWidgetAnimation::hide
|
||||
* Hide the widget
|
||||
*/
|
||||
@brief QWidgetAnimation::hide
|
||||
Hide the widget
|
||||
*/
|
||||
void QWidgetAnimation::hide()
|
||||
{
|
||||
if (m_state == QWidgetAnimation::Hidding)
|
||||
@@ -135,10 +135,10 @@ void QWidgetAnimation::hide()
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief QWidgetAnimation::setHidden
|
||||
* true hide, false show
|
||||
* @param hidden
|
||||
*/
|
||||
@brief QWidgetAnimation::setHidden
|
||||
true hide, false show
|
||||
@param hidden
|
||||
*/
|
||||
void QWidgetAnimation::setHidden(bool hidden)
|
||||
{
|
||||
if (hidden)
|
||||
@@ -148,10 +148,10 @@ void QWidgetAnimation::setHidden(bool hidden)
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief QWidgetAnimation::setLastShowSize
|
||||
* Force the last show size value to @size
|
||||
* @param size
|
||||
*/
|
||||
@brief QWidgetAnimation::setLastShowSize
|
||||
Force the last show size value to @size
|
||||
@param size
|
||||
*/
|
||||
void QWidgetAnimation::setLastShowSize(int size)
|
||||
{
|
||||
if (m_orientation == Qt::Vertical) {
|
||||
|
||||
@@ -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