forked from qt-creator/qt-creator
Target options layout fixes.
* smaller icon button (waste less space) * align manage/choose buttons Change-Id: Idb2cb111a40353f2405cd964c2ec4f5cf8b24d78 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
6473d7b611
commit
d8d5efcd40
@@ -96,15 +96,8 @@ DebuggerProfileConfigWidget::DebuggerProfileConfigWidget(ProjectExplorer::Profil
|
||||
|
||||
m_chooser->setContentsMargins(0, 0, 0, 0);
|
||||
m_chooser->setExpectedKind(Utils::PathChooser::ExistingCommand);
|
||||
m_chooser->insertButton(0, tr("Auto detect"), this, SLOT(autoDetectDebugger()));
|
||||
|
||||
QPushButton *button = new QPushButton(tr("Auto detect"));
|
||||
button->setContentsMargins(0, 0, 0, 0);
|
||||
connect(button, SIGNAL(clicked()), this, SLOT(autoDetectDebugger()));
|
||||
|
||||
QHBoxLayout *box = dynamic_cast<QHBoxLayout *>(m_chooser->layout());
|
||||
QTC_CHECK(box);
|
||||
if (box)
|
||||
box->insertWidget(1, button);
|
||||
layout->addWidget(m_chooser);
|
||||
|
||||
discard();
|
||||
@@ -137,6 +130,11 @@ bool DebuggerProfileConfigWidget::isDirty() const
|
||||
return m_chooser->fileName() != DebuggerProfileInformation::debuggerCommand(m_profile);
|
||||
}
|
||||
|
||||
QWidget *DebuggerProfileConfigWidget::buttonWidget() const
|
||||
{
|
||||
return m_chooser->buttonAtIndex(1);
|
||||
}
|
||||
|
||||
void DebuggerProfileConfigWidget::autoDetectDebugger()
|
||||
{
|
||||
QVariant v = m_info->defaultValue(m_profile);
|
||||
|
||||
Reference in New Issue
Block a user