File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 24
24
class QFrame ;
25
25
class QBoxLayout ;
26
26
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
+ */
27
34
class GUI_EXPORT QgsUserInputDockWidget : public QDockWidget
28
35
{
29
36
Q_OBJECT
@@ -35,6 +42,7 @@ class GUI_EXPORT QgsUserInputDockWidget : public QDockWidget
35
42
void addUserInputWidget ( QWidget* widget );
36
43
37
44
protected:
45
+ // ! will not display the dock if it contains no widget
38
46
void paintEvent ( QPaintEvent *event ) override ;
39
47
40
48
private slots:
@@ -45,8 +53,7 @@ class GUI_EXPORT QgsUserInputDockWidget : public QDockWidget
45
53
void floatingChanged ( bool floating );
46
54
47
55
private:
48
- void createLayout ();
49
-
56
+ // ! change layout according to dock location
50
57
void updateLayoutDirection ();
51
58
52
59
// list of widget with their corresponding line separator
You can’t perform that action at this time.
0 commit comments