QTfrontend/ui/page/AbstractPage.h
changeset 11818 b421923c2577
parent 11046 47a8c19ecb60
child 12245 5206f9a803d1
equal deleted inserted replaced
11817:5f21387edff1 11818:b421923c2577
   183          * @param row layout row index in which to insert the button.
   183          * @param row layout row index in which to insert the button.
   184          * @param column layout column index in which to insert the button.
   184          * @param column layout column index in which to insert the button.
   185          * @param rowSpan how many layout rows the button will span.
   185          * @param rowSpan how many layout rows the button will span.
   186          * @param columnSpan how many layout columns the button will span.
   186          * @param columnSpan how many layout columns the button will span.
   187          * @param hasIcon set to true if this is a picture button.
   187          * @param hasIcon set to true if this is a picture button.
       
   188          * @param alignment alignment of the button in the layout.
   188          *
   189          *
   189          * @return the button.
   190          * @return the button.
   190          */
   191          */
   191         QPushButtonWithSound * addButton(const QString & name, QGridLayout * grid, int row, int column, int rowSpan = 1, int columnSpan = 1, bool hasIcon = false);
   192         QPushButtonWithSound * addButton(const QString & name, QGridLayout * grid, int row, int column, int rowSpan = 1, int columnSpan = 1, bool hasIcon = false, Qt::Alignment alignment = 0);
   192 
   193 
   193         /**
   194         /**
   194          * @brief Creates a default formatted button and adds it to a
   195          * @brief Creates a default formatted button and adds it to a
   195          * grid layout at the location specified.
   196          * grid layout at the location specified.
   196          *
   197          *
   197          * @param name label or path to icon of the button (depends on hasIcon)
   198          * @param name label or path to icon of the button (depends on hasIcon)
   198          * @param box pointer of the box layout in which to insert the button.
   199          * @param box pointer of the box layout in which to insert the button.
   199          * @param where layout ndex in which to insert the button.
   200          * @param where layout ndex in which to insert the button.
   200          * @param hasIcon set to true if this is a picture button.
   201          * @param hasIcon set to true if this is a picture button.
       
   202          * @param alignment alignment of the button in the layout.
   201          *
   203          *
   202          * @return the button.
   204          * @return the button.
   203          */
   205          */
   204         QPushButtonWithSound * addButton(const QString & name, QBoxLayout * box, int where, bool hasIcon = false);
   206         QPushButtonWithSound * addButton(const QString & name, QBoxLayout * box, int where, bool hasIcon = false, Qt::Alignment alignment = 0);
   205         QPushButton* addSoundlessButton(const QString & name, QBoxLayout * box, int where, bool hasIcon = false);
   207         QPushButton* addSoundlessButton(const QString & name, QBoxLayout * box, int where, bool hasIcon = false, Qt::Alignment alignment = 0);
   206 
   208 
   207         /**
   209         /**
   208          * @brief Changes visibility of the back-button.
   210          * @brief Changes visibility of the back-button.
   209          *
   211          *
   210          * @param visible set to true if the button should be visible.
   212          * @param visible set to true if the button should be visible.