QTfrontend/ui/page/AbstractPage.cpp
changeset 12250 5206f9a803d1
parent 11823 b421923c2577
equal deleted inserted replaced
12249:45c83c88ac4b 12250:5206f9a803d1
   139     QPushButtonWithSound * btn = formattedButton(name, hasIcon);
   139     QPushButtonWithSound * btn = formattedButton(name, hasIcon);
   140     box->addWidget(btn, where, alignment);
   140     box->addWidget(btn, where, alignment);
   141     return btn;
   141     return btn;
   142 }
   142 }
   143 
   143 
       
   144 QPushButton* AbstractPage::addSoundlessButton(const QString & name, QGridLayout * grid, int row, int column, int rowSpan, int columnSpan, bool hasIcon, Qt::Alignment alignment)
       
   145 {
       
   146     QPushButton * btn = formattedSoundlessButton(name, hasIcon);
       
   147     grid->addWidget(btn, row, column, rowSpan, columnSpan, alignment);
       
   148     return btn;
       
   149 }
       
   150 
   144 QPushButton* AbstractPage::addSoundlessButton(const QString & name, QBoxLayout * box, int where, bool hasIcon, Qt::Alignment alignment)
   151 QPushButton* AbstractPage::addSoundlessButton(const QString & name, QBoxLayout * box, int where, bool hasIcon, Qt::Alignment alignment)
   145 {
   152 {
   146     QPushButton* btn = formattedSoundlessButton(name, hasIcon);
   153     QPushButton* btn = formattedSoundlessButton(name, hasIcon);
   147     box->addWidget(btn, where, alignment);
   154     box->addWidget(btn, where, alignment);
   148     return btn;
   155     return btn;