forked from qt-creator/qt-creator
Add addToLayout()-method to KitConfigWidget.
Provide default implementation to do a single-line layout and let the DebuggerKitConfigWidget span 3 rows, aligning label and button accordingly. Change-Id: I0fb3a3116a593822da9c4499c142b8a8255c02d0 Reviewed-by: Eike Ziller <eike.ziller@nokia.com> Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -100,6 +100,13 @@ DebuggerKitConfigWidget::DebuggerKitConfigWidget(ProjectExplorer::Kit *k,
|
||||
connect(m_comboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(refreshLabel()));
|
||||
}
|
||||
|
||||
void DebuggerKitConfigWidget::addToLayout(QGridLayout *layout, int row)
|
||||
{
|
||||
addLabel(layout, row);
|
||||
layout->addWidget(this, row, WidgetColumn, 3 , 1);
|
||||
addButtonWidget(layout, row + 2);
|
||||
}
|
||||
|
||||
QString DebuggerKitConfigWidget::displayName() const
|
||||
{
|
||||
return tr("Debugger:");
|
||||
|
||||
Reference in New Issue
Block a user