Skip to content

Commit

Permalink
add documentation for QgsUserInputDockWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jun 2, 2015
1 parent d94cd88 commit 953c06b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/gui/qgsuserinputdockwidget.h
Expand Up @@ -24,6 +24,13 @@
class QFrame;
class QBoxLayout;


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

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

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

private:
void createLayout();

//! change layout according to dock location
void updateLayoutDirection();

// list of widget with their corresponding line separator
Expand Down

0 comments on commit 953c06b

Please sign in to comment.