forked from qt-creator/qt-creator
KitManager: spacing in dialog
Change-Id: I243de278cd964c9aa51e7ff091a2c33e8043a562 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -65,20 +65,12 @@ static const char dgbToolsDownloadLink64C[] = "http://www.microsoft.com/whdc/dev
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
DebuggerKitConfigWidget::DebuggerKitConfigWidget(ProjectExplorer::Kit *workingCopy,
|
||||
const DebuggerKitInformation *ki,
|
||||
QWidget *parent) :
|
||||
ProjectExplorer::KitConfigWidget(parent),
|
||||
m_kit(workingCopy),
|
||||
const DebuggerKitInformation *ki)
|
||||
: KitConfigWidget(workingCopy),
|
||||
m_info(ki),
|
||||
m_label(new QLabel(this)),
|
||||
m_button(new QPushButton(tr("Manage..."), this))
|
||||
m_label(new QLabel),
|
||||
m_button(new QPushButton(tr("Manage...")))
|
||||
{
|
||||
setToolTip(tr("The debugger to use for this kit."));
|
||||
|
||||
QHBoxLayout *layout = new QHBoxLayout(this);
|
||||
layout->setMargin(0);
|
||||
layout->addWidget(m_label);
|
||||
|
||||
// ToolButton with Menu, defaulting to 'Autodetect'.
|
||||
QMenu *buttonMenu = new QMenu(m_button);
|
||||
QAction *autoDetectAction = buttonMenu->addAction(tr("Auto-detect"));
|
||||
@@ -90,6 +82,16 @@ DebuggerKitConfigWidget::DebuggerKitConfigWidget(ProjectExplorer::Kit *workingCo
|
||||
refresh();
|
||||
}
|
||||
|
||||
QString DebuggerKitConfigWidget::toolTip() const
|
||||
{
|
||||
return tr("The debugger to use for this kit.");
|
||||
}
|
||||
|
||||
QWidget *DebuggerKitConfigWidget::mainWidget() const
|
||||
{
|
||||
return m_label;
|
||||
}
|
||||
|
||||
QWidget *DebuggerKitConfigWidget::buttonWidget() const
|
||||
{
|
||||
return m_button;
|
||||
|
||||
Reference in New Issue
Block a user