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:
Friedemann Kleint
2012-09-07 16:30:18 +02:00
committed by hjk
parent f278a87adb
commit ddb1c96650
4 changed files with 50 additions and 13 deletions

View File

@@ -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:");