Skip to content

Commit 953c06b

Browse files
committed
add documentation for QgsUserInputDockWidget
1 parent d94cd88 commit 953c06b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/gui/qgsuserinputdockwidget.h

+9-2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424
class QFrame;
2525
class QBoxLayout;
2626

27+
28+
/**
29+
* @brief The QgsUserInputDockWidget class is a dock widget that shall be used to display widgets for user inputs.
30+
* It can be used by map tools, plugins, etc.
31+
* Several widgets can be displayed at once, they will be separated by a separator. Widgets will be either layout horizontally or vertically.
32+
* The dock is automatically hidden if it contains no widget.
33+
*/
2734
class GUI_EXPORT QgsUserInputDockWidget : public QDockWidget
2835
{
2936
Q_OBJECT
@@ -35,6 +42,7 @@ class GUI_EXPORT QgsUserInputDockWidget : public QDockWidget
3542
void addUserInputWidget( QWidget* widget );
3643

3744
protected:
45+
//! will not display the dock if it contains no widget
3846
void paintEvent( QPaintEvent *event ) override;
3947

4048
private slots:
@@ -45,8 +53,7 @@ class GUI_EXPORT QgsUserInputDockWidget : public QDockWidget
4553
void floatingChanged( bool floating );
4654

4755
private:
48-
void createLayout();
49-
56+
//! change layout according to dock location
5057
void updateLayoutDirection();
5158

5259
// list of widget with their corresponding line separator

0 commit comments

Comments
 (0)